Skip to content

Commit

Permalink
fix login form UI lol
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroji-fusky committed Feb 13, 2023
1 parent a16a4b5 commit 4d13171
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 22 deletions.
2 changes: 1 addition & 1 deletion website/components/Landing/LandingThird.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ onMounted(() => {
</script>

<template>
<section class="h-screen px-12">
<section class="px-12">
<h1 class="my-6 mt-[6.5rem] text-5xl font-bold text-center font-inter">
You're in control
</h1>
Expand Down
66 changes: 49 additions & 17 deletions website/components/Login/LoginForm.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,53 @@

<template>
<form class="w-3/6 p-48 m-auto">
<div class="flex flex-col relative my-3">
<label for="username" class="hidden absolute top-[-33px] text-white ">Username</label>
<input name="username" id="username" type="username" class="text-black px-3 py-2 outline-none border-none"
v-model="username" placeholder="Username" />
</div>
<div class="flex flex-col bg-transparent border border-solid border-[#1834c9]">
<label for="password" class="peer-placeholder-shown:block ">Password</label>
<input name="password" id="password" class="peer text-black" type="password" placeholder="Password"
v-model="password" />
</div>
</form>
</template>
<script lang="tsx" setup>
import { ref } from 'vue'
const username = ref("")
const password = ref("")
</script>

<template>
<div>

</div>
<form class="form-container">
<div class="field">
<label for="username" class="form-label">Username</label>
<input
name="username"
type="username"
class="form-textbox"
v-model="username"
placeholder="Username"
/>
</div>
<div
class="field"
>
<label for="password" class="form-label">Password</label>
<input
name="password"
class="form-textbox"
type="password"
placeholder="Password"
v-model="password"
/>
</div>
</form>
</template>

<style lang="scss" scoped>
.form-container {
@apply flex flex-col justify-center w-3/6 h-screen m-auto gap-y-3;
}
.field {
@apply flex flex-col relative py-4;
}
.form-label {
@apply absolute -top-4 text-white font-inter uppercase font-bold;
}
.form-textbox {
@apply px-3 py-2 text-black border-none outline-none rounded-md bg-zinc-800;
}
</style>
4 changes: 0 additions & 4 deletions website/pages/login.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<script setup lang="ts">
import Form from '~~/components/Landing/Login/Form.vue';
</script>

<template>
<Container title="MyFursona | Login" class="login-wrapper">
<LoginForm />
Expand Down

0 comments on commit 4d13171

Please sign in to comment.