Skip to content
Snippets Groups Projects
Commit ce914c8e authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

feat: add form widget for claim and register

parent e905fb12
No related branches found
No related tags found
3 merge requests!85Recette,!84Dev,!81Feat/update typeform
...@@ -48,33 +48,8 @@ ...@@ -48,33 +48,8 @@
} }
.structureSection { .structureSection {
margin-bottom: 108px; margin-bottom: 108px;
.structureCard {
border: 1px solid $grey-4;
border-radius: 6px;
.structureInfo {
border-radius: 6px;
background: $white;
min-height: 100px;
padding: 33px 55px;
@media #{$large-phone} {
padding: 33px 25px;
}
a {
margin: 0;
&.structureName {
@include cn-bold-26;
color: $secondary-color;
text-decoration: underline;
}
}
.ownerName {
@include cn-regular-18;
color: $grey-2;
}
}
@include background-hash($grey-2);
}
} }
.addSection { .addSection {
button { button {
background: $red-default; background: $red-default;
......
...@@ -11,25 +11,31 @@ ...@@ -11,25 +11,31 @@
Votre compte a bien été créé. Votre compte a bien été créé.
</h3> </h3>
</div> </div>
<div *ngIf="structure" class="structureInfoBlock" fxLayout="row" fxLayoutAlign=" center"> <div *ngIf="structure" class="structureCard">
<div class="structureInfoContent" fxLayout="column"> <div class="structureInfo" fxLayout="column" fxLayoutGap="14px">
{{ structure.structureName }} <div fxLayout="row" fxLayoutAlign="space-between start" fxLayoutGap="20px">
<span>{{ structure.getLabelTypeStructure() }}</span> <a class="structureName" routerLink="/home" [state]="{ data: structure }">{{ structure.structureName }}</a>
</div> </div>
<div class="validateSvg">
<svg class="validate" aria-hidden="true">
<use [attr.xlink:href]="'assets/form/sprite.svg#checkVector'"></use>
</svg>
</div> </div>
</div> </div>
</div> </div>
<p *ngIf="verificationIssue"> <p *ngIf="verificationIssue">
Une erreur est survenue lors de la validation de votre email... Veuillez envoyer un mail au support. Une erreur est survenue lors de la validation de votre email... Veuillez envoyer un mail au support.
</p> </p>
<div <!-- TypeForm -->
class="typeform-widget test" <div *ngIf="!verificationIssue">
data-url="https://form.typeform.com/to/m7DV3CdW?typeform-medium=embed-snippet" <iframe
></div> *ngIf="structure"
class="typeform-widget custom-form"
title="typeform"
src="https://form.typeform.com/to/m7DV3CdW?typeform-medium=embed-snippet"
></iframe>
<div
*ngIf="!structure"
class="typeform-widget custom-form"
data-url="https://form.typeform.com/to/ASJH3B7Z?typeform-medium=embed-snippet"
></div>
</div>
<div class="btnSection" fxLayout="row" fxLayoutAlign="space-around center"> <div class="btnSection" fxLayout="row" fxLayoutAlign="space-around center">
<button *ngIf="structure && verificationSuccess" class="btn" routerLink="/home" [state]="{ data: structure }"> <button *ngIf="structure && verificationSuccess" class="btn" routerLink="/home" [state]="{ data: structure }">
Voir ma structure Voir ma structure
......
...@@ -7,28 +7,7 @@ ...@@ -7,28 +7,7 @@
padding: 18px; padding: 18px;
margin: auto; margin: auto;
} }
.structureInfoBlock {
background: $green-1;
color: $white;
padding: 16px;
border-radius: 6px;
@include cn-bold-18;
.structureInfoContent {
width: 100%;
}
span {
font-style: italic;
@include cn-regular-14;
}
.validateSvg {
stroke: $white;
text-align: right;
svg {
height: 14px;
width: 14px;
}
}
}
.btn { .btn {
background: $secondary-color; background: $secondary-color;
border-radius: 4px; border-radius: 4px;
...@@ -58,8 +37,18 @@ ...@@ -58,8 +37,18 @@
} }
} }
.test { .custom-form {
width: 100%; width: 100%;
height: 300px; height: 480px;
transform: scale(0.75); border: none;
}
// Override button style to be the same as typeform button
button {
margin: 0px;
max-width: 100%;
font-size: 24px !important;
line-height: 32px !important;
min-height: 48px;
width: 245px !important;
} }
...@@ -239,3 +239,30 @@ button { ...@@ -239,3 +239,30 @@ button {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
} }
.structureCard {
border: 1px solid $grey-4;
border-radius: 6px;
.structureInfo {
border-radius: 6px;
background: $white;
min-height: 100px;
padding: 33px 55px;
@media #{$large-phone} {
padding: 33px 25px;
}
a {
margin: 0;
&.structureName {
@include cn-bold-26;
color: $secondary-color;
text-decoration: underline;
}
}
.ownerName {
@include cn-regular-18;
color: $grey-2;
}
}
@include background-hash($grey-2);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment