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

Added the homepage button on Sign up and Login pages #202

Merged
merged 1 commit into from
Oct 5, 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
25 changes: 24 additions & 1 deletion Css-files/login1.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,31 @@ body * {
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
}
.home-btn{
position: absolute;
top:32px;
left:30px;
}
.home-btn a{
font-size: 30px;
text-decoration: none;
color:rgb(149, 15, 95);
}
.home-btn a::after {
content: ''; /* Creates a pseudo-element */
position: absolute;
width: 100%; /* Full width of the link */
height: 1.5px; /* Thickness of the underline */
bottom: -5px;
left: 0;
background-color: transparent; /* Default background (invisible) */
transition: background-color 0.1s ease; /* Smooth transition */
}
.home-btn a:hover::after{
background-color:white;
}

.left-login > h1 {
color: #e13838;
font-size: 2.5vw;
Expand Down
23 changes: 23 additions & 0 deletions Css-files/signup1.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ body {
height: 100vh; /* Full viewport height */
padding: 20px; /* Padding to avoid overflow */
overflow: hidden; /* Prevents overflow */
position:relative;
}

.main-login {
Expand All @@ -34,6 +35,28 @@ body {
width: 100%;
overflow: hidden; /* Ensure nothing overflows from the flexbox */
}
.homebtn{
position: absolute;
top:30px;
left:25px;
}
.homebtn a{
font-size: 30px;
text-decoration: none;
}
.homebtn a::after {
content: ''; /* Creates a pseudo-element */
position: absolute;
width: 100%; /* Full width of the link */
height: 1.5px; /* Thickness of the underline */
bottom: -5px;
left: 0;
background-color: transparent; /* Default background (invisible) */
transition: background-color 0.1s ease; /* Smooth transition */
}
.homebtn a:hover::after{
background-color:white;
}

.card-login {
width: calc(100% - 40px); /* Full width minus padding */
Expand Down
1 change: 1 addition & 0 deletions Html-files/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
</div>
<div class="main-login">
<div class="left-login" style="background-color: transparent;">
<div class="home-btn"><a href="../index.html" style="font-family: var(--ff-philosopher);"><b>Retro</b></a></div>
<div class="container">
<div class="card">
<div class="front" style="align-content: center;font-family: var(--ff-philosopher);">
Expand Down
3 changes: 3 additions & 0 deletions Html-files/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@
<div class="circle" style="background-color: rgb(96, 0, 95); left: 504px; top: 59px; scale: 0.05;"></div>
</div>
<div class="main-login">
<div class="homebtn">
<a href="../index.html" style="font-family: var(--ff-philosopher); color: rgb(149, 15, 95);"><b>Retro</b></a>
</div>
<div class="left-login">
<div class="area">
<div class="way"></div>
Expand Down