Skip to content

Commit

Permalink
chore added auth.css & a signup page
Browse files Browse the repository at this point in the history
  • Loading branch information
s2xon committed Feb 1, 2024
1 parent a854327 commit b73f6ae
Show file tree
Hide file tree
Showing 5 changed files with 473 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/.env
/.env
/go.mod
/go.sum
10 changes: 7 additions & 3 deletions src/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<body>
<nav>
<div class="logo">
<svg width="51" height="53" viewBox="0 0 51 53" fill="none" xmlns="http://www.w3.org/2000/svg">
<svg class='logo-svg' width="51" height="53" viewBox="0 0 51 53" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.429 0H5.09613C3.74457 0 2.44836 0.536926 1.49261 1.49261C0.536926 2.44836 0 3.74457 0 5.09613V14.429L14.429 0ZM0.525757 26.4725C3.69952 45.0619 20.2863 51.5477 23.8907 52.74C24.9224 53.0864 26.039 53.0864 27.0707 52.74C31.061 51.415 50.9614 43.6128 50.9614 20.0788V5.09613C50.9614 3.74457 50.4245 2.44836 49.4688 1.49261C48.5131 0.536926 47.2169 0 45.8653 0H26.5C26.5 1.2796 26.0118 2.5592 25.0355 3.53552L3.53552 25.0355C2.69312 25.8779 1.62494 26.3569 0.525757 26.4725Z" fill="url(#paint0_linear_2_18)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 17.571V22.7443C11 36.5095 22.3245 41.076 24.5952 41.848C25.1823 42.0507 25.8177 42.0507 26.4048 41.848C28.6755 41.073 40 36.5095 40 22.7443V13.9808C40 13.1902 39.6945 12.4321 39.1506 11.873C38.6068 11.314 37.8691 11 37.1 11H17.571L11 17.571Z" fill="url(#paint1_linear_2_18)"/>
<defs>
Expand All @@ -32,14 +32,18 @@ <h1>auth</h1>
<main>
<div class="hero">
<button class='github'><svg class='github-logo' viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m0 0h24v24h-24z" fill="#fff" opacity="0"/><path d="m16.24 22a1 1 0 0 1 -1-1v-2.6a2.15 2.15 0 0 0 -.54-1.66 1 1 0 0 1 .61-1.67c2.44-.29 4.69-1.07 4.69-5.3a4 4 0 0 0 -.67-2.22 2.75 2.75 0 0 1 -.41-2.06 3.71 3.71 0 0 0 0-1.41 7.65 7.65 0 0 0 -2.09 1.09 1 1 0 0 1 -.84.15 10.15 10.15 0 0 0 -5.52 0 1 1 0 0 1 -.84-.15 7.4 7.4 0 0 0 -2.11-1.09 3.52 3.52 0 0 0 0 1.41 2.84 2.84 0 0 1 -.43 2.08 4.07 4.07 0 0 0 -.67 2.23c0 3.89 1.88 4.93 4.7 5.29a1 1 0 0 1 .82.66 1 1 0 0 1 -.21 1 2.06 2.06 0 0 0 -.55 1.56v2.69a1 1 0 0 1 -2 0v-.57a6 6 0 0 1 -5.27-2.09 3.9 3.9 0 0 0 -1.16-.88 1 1 0 1 1 .5-1.94 4.93 4.93 0 0 1 2 1.36c1 1 2 1.88 3.9 1.52a3.89 3.89 0 0 1 .23-1.58c-2.06-.52-5-2-5-7a6 6 0 0 1 1-3.33.85.85 0 0 0 .13-.62 5.69 5.69 0 0 1 .33-3.21 1 1 0 0 1 .63-.57c.34-.1 1.56-.3 3.87 1.2a12.16 12.16 0 0 1 5.69 0c2.31-1.5 3.53-1.31 3.86-1.2a1 1 0 0 1 .63.57 5.71 5.71 0 0 1 .33 3.22.75.75 0 0 0 .11.57 6 6 0 0 1 1 3.34c0 5.07-2.92 6.54-5 7a4.28 4.28 0 0 1 .22 1.67v2.54a1 1 0 0 1 -.94 1z" fill="#231f20"/></svg>
Vist our GitHub
Vist the github repo
<svg class='arrow' width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.26946 7.6625L12.6817 1.95767C12.7826 1.85129 12.8626 1.72499 12.9173 1.586C12.9719 1.447 13 1.29803 13 1.14758C13 0.843741 12.8855 0.552344 12.6817 0.337496C12.5807 0.231114 12.4609 0.146727 12.3291 0.0891533C12.1972 0.0315797 12.0559 0.00194772 11.9131 0.00194772C11.6249 0.00194772 11.3484 0.122648 11.1446 0.337496L6.50092 5.24365L1.85725 0.337496C1.75662 0.230555 1.63691 0.145674 1.505 0.0877485C1.37309 0.0298231 1.23161 0 1.08872 0C0.945823 0 0.804342 0.0298231 0.672437 0.0877485C0.540531 0.145674 0.420813 0.230555 0.320186 0.337496C0.21873 0.443564 0.138201 0.569756 0.0832472 0.708793C0.0282927 0.847831 9.53674e-07 0.996961 9.53674e-07 1.14758C9.53674e-07 1.2982 0.0282927 1.44733 0.0832472 1.58637C0.138201 1.72541 0.21873 1.8516 0.320186 1.95767L5.73239 7.6625C5.83302 7.76944 5.95274 7.85433 6.08464 7.91225C6.21655 7.97018 6.35803 8 6.50092 8C6.64382 8 6.7853 7.97018 6.91721 7.91225C7.04911 7.85433 7.16883 7.76944 7.26946 7.6625Z" fill="#7077A1"/>
</svg>
</button>
<h2>Custom user-authentication app</h2>
<p>Created using vanilia JS and GO. For anyone looking to get the fundementals down</p>
<button class='li-su-big'>Sign up</button>
<button class='li-su-big'>Get Started
<svg class='arrow' width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.26946 7.6625L12.6817 1.95767C12.7826 1.85129 12.8626 1.72499 12.9173 1.586C12.9719 1.447 13 1.29803 13 1.14758C13 0.843741 12.8855 0.552344 12.6817 0.337496C12.5807 0.231114 12.4609 0.146727 12.3291 0.0891533C12.1972 0.0315797 12.0559 0.00194772 11.9131 0.00194772C11.6249 0.00194772 11.3484 0.122648 11.1446 0.337496L6.50092 5.24365L1.85725 0.337496C1.75662 0.230555 1.63691 0.145674 1.505 0.0877485C1.37309 0.0298231 1.23161 0 1.08872 0C0.945823 0 0.804342 0.0298231 0.672437 0.0877485C0.540531 0.145674 0.420813 0.230555 0.320186 0.337496C0.21873 0.443564 0.138201 0.569756 0.0832472 0.708793C0.0282927 0.847831 9.53674e-07 0.996961 9.53674e-07 1.14758C9.53674e-07 1.2982 0.0282927 1.44733 0.0832472 1.58637C0.138201 1.72541 0.21873 1.8516 0.320186 1.95767L5.73239 7.6625C5.83302 7.76944 5.95274 7.85433 6.08464 7.91225C6.21655 7.97018 6.35803 8 6.50092 8C6.64382 8 6.7853 7.97018 6.91721 7.91225C7.04911 7.85433 7.16883 7.76944 7.26946 7.6625Z" fill="#7077A1"/>
</svg>
</button>
</div>
<div class="grad"></div>
</main>
Expand Down
322 changes: 322 additions & 0 deletions src/public/pages/auth.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,322 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
background-color: transparent;
/* overflow-y: hidden; */
/* overflow-x: hidden; */
cursor: default;
}

body {
overflow-y: hidden;
overflow-x: hidden;
}


h1 {
size: 36px;
font-weight: bold;
color: #000000;
cursor: pointer;
background-color: transparent;
min-width: fit-content;
}


svg {
width: 25px;
margin: 0 5px 0 0;
cursor: pointer;
}

.logo-svg {
cursor: pointer;
}


.logo-svg path {
cursor: pointer;
}

nav {
width: 100vw;
height: 65px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: solid #F6F6F6;
position: fixed;
}


.hero {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
padding: 0 30%;
text-align: center;
background-color: transparent;
}

h2 {
font-size: 60px;
background-color: transparent;
margin-bottom: 25px;
margin-top: 25px;
}

p {
color: #a6a6a6;
margin-bottom: 25px;
}



.logo {
display: flex;
justify-content: center;
align-items: center;
margin: 0 0 0 25px;
width: auto;
cursor: pointer;
}

.register {
display: flex;
justify-content: center;
align-items: center;
list-style-type: none;
margin: 0 25px;
height: 100%;
width: 250px;
}

button {
margin: 0;
padding: 0;
cursor: pointer;
}

.logo-svg-card {
display: flex;
justify-content: center;
align-items: center;
width: fit-content;

}

main {
width: 100vw;
height: 100vh;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: transparent;
transform: scale(0.85, 0.85);
}

.li-si {
background-color: #ffffff;
color: #000000;
border: none;
border-radius: 8px;
width: 75px;
height: 35px;
font-weight: 500;
box-shadow: 0 1px 1px 0 #0000003a;
margin-right: 7px;
transition: .3s;
}

.li-si:hover {
background-color: #efefef;
}

.li-su {
background-color: #6D61E1;
color: #fff;
border: none;
border-radius: 8px;
width: 75px;
height: 35px;
transition: .3s;
font-weight: 500;
}

.li-su:hover {
background-color: #897FF1;
box-shadow: 0 0 0 0 #D2CDFF;
color: #fff;
}

.grad {
position: absolute;
transform: translate(0, 50vh);
width: 100vw;
height: 20vh;
background: linear-gradient(rgba(0, 0, 0, 0) 0%, #6f62e4);
}

.form_container {
width: fit-content;
height: fit-content;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 15px;
padding: 50px 40px 20px 40px;
background-color: #ffffff;
box-shadow: 0px 106px 42px rgba(0, 0, 0, 0.01),
0px 59px 36px rgba(0, 0, 0, 0.05), 0px 26px 26px rgba(0, 0, 0, 0.09),
0px 7px 15px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);
border-radius: 11px;
font-family: "Inter", sans-serif;
}

.logo_container {
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
width: 80px;
height: 80px;
background-color: transparent;
border-radius: 11px;
}

.title_container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
}

.title {
margin: 0;
font-size: 1.25rem;
font-weight: 700;
color: #212121;
}

.subtitle {
font-size: 0.725rem;
max-width: 80%;
text-align: center;
line-height: 1.1rem;
color: #8B8E98
}

.input_container {
width: 100%;
height: fit-content;
position: relative;
display: flex;
flex-direction: column;
gap: 5px;
}

.icon {
width: 20px;
position: absolute;
z-index: 99;
left: 12px;
bottom: 9px;
}

.input_label {
font-size: 0.75rem;
color: #8B8E98;
font-weight: 600;
}

.input_field {
width: auto;
height: 40px;
padding: 0 0 0 40px;
border-radius: 7px;
outline: none;
border: 1px solid #e5e5e5;
filter: drop-shadow(0px 1px 0px #efefef)
drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5));
transition: all 0.3s cubic-bezier(0.15, 0.83, 0.66, 1);
}

.input_field:focus {
border: 1px solid transparent;
box-shadow: 0px 0px 0px 2px #242424;
background-color: transparent;
}

.sign-in_btn {
width: 100%;
height: 40px;
border: 0;
background: #115DFC;
border-radius: 7px;
outline: none;
color: #ffffff;
cursor: pointer;
}

.sign-in_ggl {
width: 100%;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background: #ffffff;
border-radius: 7px;
outline: none;
color: #242424;
border: 1px solid #e5e5e5;
filter: drop-shadow(0px 1px 0px #efefef)
drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5));
cursor: pointer;
}

.sign-in_apl {
width: 100%;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
background: #212121;
border-radius: 7px;
outline: none;
color: #ffffff;
border: 1px solid #e5e5e5;
filter: drop-shadow(0px 1px 0px #efefef)
drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5));
cursor: pointer;
}

.separator {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 30px;
color: #8B8E98;
}

.separator .line {
display: block;
width: 100%;
height: 1px;
border: 0;
background-color: #e8e8e8;
}

.note {
font-size: 0.75rem;
color: #8B8E98;
text-decoration: underline;
}
Loading

0 comments on commit b73f6ae

Please sign in to comment.