Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #274 solved✨ #287

Merged
merged 2 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@


=======
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhai|
Bree+Serif&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhai|Bree+Serif&display=swap" rel="stylesheet">
<link rel="stylesheet" href="src/css/index.css">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
Expand Down Expand Up @@ -132,8 +131,7 @@
background-color: #f2e4aa;

} */
=======
}



.team-feature img,
Expand Down
15 changes: 15 additions & 0 deletions login.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,31 +73,46 @@ <h2 class="title">Sign up</h2>
</div>

<div class="panels-container">
<a href="index.html" class="homeBtn">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 20" width="30" height="30">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</svg>
</a>
<div class="panel left-panel">
<div class="content">
<h3>New here ?</h3>
<p>
Discover new experiences with AmbuFlow! <br>Get access to exclusive content and features. <br> Create your account.
</p>
<a href="index.html" class="homeBtn">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 20" width="30" height="30">
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</svg>
</a>
<button class="btn transparent" id="sign-up-btn">
Sign up
</button>
</div>
<img src="img/log.svg" class="image" alt="" />
</div>
<div class="panel right-panel">

<div class="content">

<h3>One of us ?</h3>
<p>
Welcome to our community
</p>
<button class="btn transparent" id="sign-in-btn">
Sign in
</button>

</div>
<img src="img/register.svg" class="image" alt="" />
</div>

</div>

</div>
<script src="login.js"></script>
</body>
Expand Down
5 changes: 5 additions & 0 deletions login.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ document.querySelector(".sign-up-form").addEventListener('submit', function(even
const email = document.querySelector(".sign-up-form input[type='email']").value;
const password = document.querySelector(".sign-up-form input[type='password']").value;

if (username === '' || email === '' || password === '') {
alert('Please fill in all fields');
return;
}

// Dummy signup logic for demo purposes
localStorage.setItem('username', username);
localStorage.setItem('email', email);
Expand Down
18 changes: 17 additions & 1 deletion src/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -396,4 +396,20 @@ form.sign-in-form {
bottom: 28%;
left: 50%;
}
}
}



.homeBtn {
position: absolute;
top: 20px;
left: 20px;
background: #083177;
color: #fff;
padding: 10px;
border-radius: 10px;
cursor: pointer;
transition: 0.3s;
text-decoration: none;
}