-
Notifications
You must be signed in to change notification settings - Fork 61
Modified contact us page to the current version of EvalAI #133
Changes from 9 commits
fdad8aa
e81ae3e
d9a777e
fc4e78c
1346a65
84c9cf6
be89790
482ce41
e3fb904
dbfb4be
6266ec4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
<app-header-static></app-header-static> | ||
<div class="container-top container contact-container white"> | ||
<div class="contact-form"> | ||
<div class="contact-form-inner"> | ||
<span class="contact-title">Get in touch</span> | ||
<br> | ||
<div class="contact-form-elements"> | ||
<app-input [label]="'name'" [placeholder]="'Name'" [isRequired]="true" #formgroup></app-input> | ||
<app-input [label]="'email'" [placeholder]="'Email'" [isRequired]="true" [type]="'email'" #formgroup></app-input> | ||
<app-input [label]="'message'" [placeholder]="'Message'" [isRequired]="true" #formgroup></app-input> | ||
<span class="btn btn-fire" (click)="formValidate('formgroup')">SEND</span> | ||
<div class="contact-links"> | ||
<table> | ||
<tr> | ||
<td><a target="_blank" href="https://www.facebook.com/mlcloudcv/"><img src="assets/images/fb.png" /></a></td> | ||
<td><a target="_blank" href="https://github.com/Cloud-CV"><img src="assets/images/git_black.png" /></a></td> | ||
<td><a target="_blank" href="https://twitter.com/project_cloudcv"><img src="assets/images/twitter_black.png" /></a></td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="contact-map"> | ||
</div> | ||
<div class="contact-container"> | ||
<div class="row"> | ||
<div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 ev-mt-50"> | ||
<h4 class="contact-title ev-mt-17 ev-mb-13 fs-34 align-center fw-semibold">Contact Us</h4> | ||
<app-input [label]="'name'" [placeholder]="'Name*'" [isRequired]="true" [icon]="'fa fa-user'" #formgroup></app-input> | ||
<app-input [label]="'email'" [placeholder]="'Email*'" [isRequired]="true" [type]="'email'" [icon]="'fa fa-envelope'" #formgroup></app-input> | ||
<app-input [label]="'message'" [placeholder]="'Message*'" [isRequired]="true" [type]="'textarea'" [icon]="'fa fa-comment'" #formgroup></app-input><br> | ||
<button class="btn btn-waves-effect grad-btn grad-btn-dark ev-btn-dark" (click)="formValidate('formgroup')">Send</button> | ||
</div> | ||
<div class="rocket-container col-lg-4 col-md-4"> | ||
<div class="small-cloud cloud-1"> | ||
<img src="assets/images/cloud-1.png"> | ||
</div> | ||
<div class="small-cloud cloud-2"> | ||
<img src="assets/images/cloud-2.png"> | ||
</div> | ||
<div class="small-cloud cloud-3"> | ||
<img src="assets/images/cloud-1.png"> | ||
</div> | ||
<div class="small-cloud cloud-4"> | ||
<img src="assets/images/cloud-4.png"> | ||
</div> | ||
<div class="small-cloud cloud-2 bird-anim"> | ||
<img src="assets/images/bird.gif"> | ||
</div> | ||
<div class="rocket-anim"> | ||
<img src="assets/images/rocket.gif"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<app-footer></app-footer> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
<div class="input-group"> | ||
<div *ngIf="type!='file'"> | ||
<input class="input-field" (input)="validateInput($event.target.value)" [class.isValid]="isValid" [class.theme-dark]="theme=='dark'" type="{{type}}" [value]="value" [readonly]="isReadonly"> | ||
<span class="input-bar"></span> | ||
<label [class.is-not-empty]="!isEmpty" [class.theme-dark]="theme=='dark'">{{placeholder}}</label> | ||
<img class="input-icon" src="{{icon}}" *ngIf="isIconPresent" /> | ||
<div class="input-message" #textValue [class.hidden]="!(((isRequired && isEmpty)||(!isValid && !isEmpty)) && isDirty)">{{message}}</div> | ||
<div *ngIf="type!='file' && type!='textarea'"> | ||
<input class="input-field" (input)="validateInput($event.target.value)" [class.isValid]="isValid" [class.theme-dark]="theme=='dark'" type="{{type}}" [value]="value" [readonly]="isReadonly"> | ||
<span class="input-bar"></span> | ||
<label [class.is-not-empty]="!isEmpty" [class.theme-dark]="theme=='dark'">{{placeholder}}</label> | ||
<i class="input-icon {{icon}}" *ngIf="isIconPresent"></i> | ||
<div class="input-message" #textValue [class.hidden]="!(((isRequired && isEmpty)||(!isValid && !isEmpty)) && isDirty)">{{message}}</div> | ||
</div> | ||
|
||
<div *ngIf="type=='textarea'"> | ||
<textarea autosize class="input-field" (input)="validateInput($event.target.value)" [class.isValid]="isValid" [class.theme-dark]="theme=='dark'" [value]="value" [readonly]="isReadonly"></textarea> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please try to do this without adding new package. If it is required in multiple places or needed for other features which is not present in Angular then it is fine but for small improvement adding new package is not a good idea. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Shekharrajak I used this package thinking that it would be good if we have 'text-area' in other places in the future. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cool! Using more packages can slow down the website. Can you check whether it is behaving properly in all the device size or not? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Shekharrajak yeah it's working perfectly, please check if it's working on your side too |
||
<span class="input-bar"></span> | ||
<label [class.is-not-empty]="!isEmpty" [class.theme-dark]="theme=='dark'">{{placeholder}}</label> | ||
<i class="input-icon {{icon}}" *ngIf="isIconPresent"></i> | ||
<div class="input-message" #textValue [class.hidden]="!(((isRequired && isEmpty)||(!isValid && !isEmpty)) && isDirty)">{{message}}</div> | ||
</div> | ||
|
||
<div class="file-upload" *ngIf="type=='file'"> | ||
<span class="btn btn-filter" (click)="transferClick('file-upload-custom')" [class.theme-dark]="theme=='dark'" [class.selected]="fileSelected"><i class="fas fa-upload"></i> {{placeholder}}</span> | ||
<input type="file" accept=".json, .zip, .txt" class="transparent" id="file-upload-custom" (change)="handleFileInput($event.target.files)" name="fileupload" [readonly]="isReadonly"/> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
conditions like
!(((isRequired && isEmpty)||(!isValid && !isEmpty)) && isDirty)
is not looking good and readable. You can create a separate method to check it- which will return True/False.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Shekharrajak done