refactor: improve login form and button styling
- Replace hardcoded credentials with appropriate placeholders - Add descriptive Finnish placeholders for login inputs - Style 'Start game' button with primary button class and center alignment - Improve security by removing exposed default credentials
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
class="input-text"
|
class="input-text"
|
||||||
required
|
required
|
||||||
minlength="3"
|
minlength="3"
|
||||||
value="admin"
|
placeholder="käyttäjätunnus"
|
||||||
/>
|
/>
|
||||||
<label for="password">Salasana</label>
|
<label for="password">Salasana</label>
|
||||||
<input
|
<input
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
id="password"
|
id="password"
|
||||||
class="input-text"
|
class="input-text"
|
||||||
required
|
required
|
||||||
value="password"
|
|
||||||
minlength="5"
|
minlength="5"
|
||||||
|
placeholder="salasana"
|
||||||
/>
|
/>
|
||||||
<hr class="my-4 border-0" />
|
<hr class="my-4 border-0" />
|
||||||
<button type="submit" class="button button-primary">Sisään</button>
|
<button type="submit" class="button button-primary">Sisään</button>
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
name="selected_bonus_cliches"
|
name="selected_bonus_cliches"
|
||||||
value={JSON.stringify(selected_bonus_cliches)}
|
value={JSON.stringify(selected_bonus_cliches)}
|
||||||
/>
|
/>
|
||||||
<button type="submit">Aloita peli</button>
|
<button type="submit" class="button button-primary mx-auto">Aloita peli</button>
|
||||||
</form>
|
</form>
|
||||||
{:else}
|
{:else}
|
||||||
<button class="button button-disabled mx-auto" disabled>Korjaa valintaa</button>
|
<button class="button button-disabled mx-auto" disabled>Korjaa valintaa</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user