Skip to content

Commit

Permalink
Added Login Page
Browse files Browse the repository at this point in the history
  • Loading branch information
VulpoTheDev committed Feb 13, 2023
1 parent eaaf50f commit 0f191b0
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 42 deletions.
2 changes: 1 addition & 1 deletion website/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ useCalcViewport()
body {
@apply bg-zinc-900 text-zinc-50;
}
</style>
</style>
12 changes: 12 additions & 0 deletions website/components/Landing/Login/Form.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<template>
<form>
<div>
<label for="username">Username</label>
<input name="username" id="username" type="username" />
</div>
<div>
<label for="password">Password</label>
<input name="password" id="password" type="password" />
</div>
</form>
</template>
75 changes: 34 additions & 41 deletions website/components/TheBaseNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const isScrolled = ref(false)
function handleScroll() {
isScrolled.value = window.scrollY < 10 ? false : true
isScrolled.value = window.scrollY < 10 ? false : true
}
onBeforeMount(() => window.addEventListener("scroll", handleScroll))
Expand All @@ -11,61 +11,54 @@ onUnmounted(() => window.removeEventListener("scroll", handleScroll))
</script>

<template>
<header :class="['navbar-sticky', isScrolled ? 'scrolled' : '']">
<nav class="flex items-center justify-between px-8 py-4">
<div class="left-side">
<NuxtLink to="/" class="logo">
<div
role="img"
aria-label="MyFursona"
class="flex items-center gap-x-2.5"
>
<IconMono class="w-[3.25rem] h-[3.25rem] text-white" />
<span>MyFursona</span>
</div>
</NuxtLink>
</div>
<ul class="right-side">
<header :class="['navbar-sticky', isScrolled ? 'scrolled' : '']">
<nav class="flex items-center justify-between px-8 py-4">
<div class="left-side">
<NuxtLink to="/" class="logo">
<div role="img" aria-label="MyFursona" class="flex items-center gap-x-2.5">
<IconMono class="w-[3.25rem] h-[3.25rem] text-white" />
<span>MyFursona</span>
</div>
</NuxtLink>
</div>
<ul class="right-side">
<li>
<NuxtLink to="/upload">Upload</NuxtLink>
</li>
<li>
<NuxtLink to="/about">About</NuxtLink>
</li>
<li class="font-inter">
<NuxtLink
to="/login"
class="px-5 py-2.5 rounded-3xl hover:bg-purple-700 border-zinc-200 border font-bold"
>
Sign In
</NuxtLink>
</li>
</ul>
</nav>
</header>
</li>
<li>
<NuxtLink to="/about">About</NuxtLink>
</li>
<li class="font-inter">
<NuxtLink to="/login" class="px-5 py-2.5 rounded-3xl hover:bg-purple-700 border-zinc-200 border font-bold">
Sign In
</NuxtLink>
</li>
</ul>
</nav>
</header>
</template>

<style lang="scss">
.navbar-sticky {
@apply fixed top-0 left-0 right-0 z-[9999] border-0 border-b border-transparent;
transition-property: backdrop-filter, background, border;
transition-duration: 300ms;
@apply fixed top-0 left-0 right-0 z-[9999] border-0 border-b border-transparent;
transition-property: backdrop-filter, background, border;
transition-duration: 300ms;
&.scrolled {
@apply backdrop-blur-md border-zinc-500;
background-color: rgba(24, 5, 72, 0.775);
}
&.scrolled {
@apply backdrop-blur-md border-zinc-500;
background-color: rgba(24, 5, 72, 0.775);
}
}
.left-side {
@apply flex items-center;
@apply flex items-center;
}
.right-side {
@apply flex items-center gap-x-10;
@apply flex items-center gap-x-10;
}
.logo {
@apply text-3xl font-bold text-white select-none font-inter;
@apply text-3xl font-bold text-white select-none font-inter;
}
</style>
5 changes: 5 additions & 0 deletions website/pages/login.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<template>
<Container title="MyFursona | Login">
<Form />
</Container>
</template>
Binary file modified website/public/images/hero/ozzy-sniff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0f191b0

Please sign in to comment.