replacing placeholder and feature table display improvement

pull/984/head
Rigel Kent 2018-08-28 22:58:13 +02:00 committed by Rigel Kent
parent 8b60488020
commit 07872fdf74
3 changed files with 63 additions and 46 deletions

View File

@ -20,4 +20,8 @@ input[type=submit] {
.create-an-account, .forgot-password-button {
color: #000;
cursor: pointer;
&:hover {
text-decoration: underline !important;
}
}

View File

@ -4,17 +4,16 @@
Create an account
</div>
<my-instance-features-table></my-instance-features-table>
<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
<div class="d-flex justify-content-left flex-wrap">
<form role="form" (ngSubmit)="signup()" [formGroup]="form">
<div class="form-group">
<label for="username" i18n>Username</label>
<div class="input-group">
<input
type="text" id="username" i18n-placeholder placeholder="Example: neil_amstrong"
type="text" id="username" i18n-placeholder placeholder="Example: jane_doe"
formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }"
>
<div class="input-group-append">
@ -63,4 +62,10 @@
<input type="submit" i18n-value value="Signup" [disabled]="!form.valid">
</form>
<div>
<label for="email" i18n>Features found on this instance</label>
<my-instance-features-table></my-instance-features-table>
</div>
</div>
</div>

View File

@ -7,6 +7,10 @@ my-instance-features-table {
margin-bottom: 40px;
}
form {
margin: 0 60px 40px 0;
}
.form-group-terms {
margin: 30px 0;
}
@ -15,6 +19,10 @@ my-instance-features-table {
@include peertube-input-group(400px);
}
.input-group-append {
height: 30px;
}
input:not([type=submit]) {
@include peertube-input-text(400px);
display: block;