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

Add a Navbar to Sign-in and Login Page #672

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
47 changes: 20 additions & 27 deletions Css-files/signup1.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,36 +34,23 @@ body {
width: 100%;
overflow: hidden; /* Ensure nothing overflows from the flexbox */
gap: 20px; /* Spacing between the card and image */

}
.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;

.right-login {
width: 40vw;
height: 100%;
margin-top: 1rem;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: relative;
}

.card-login {
width: calc(100% - 40px); /* Full width minus padding */
width: 100%;
max-width: 400px; /* Max width for better layout */
padding: 30px;
padding: 20px 30px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
background-color: var(--card-bg);
Expand All @@ -86,11 +73,16 @@ body {
font-size: 2.5rem; /* Larger font size for the title */
color: var(--primary-color);
text-align: center; /* Centered title */
margin-bottom: 20px;
font-weight: bold;
margin: 20px 0 10px 0;
text-transform: uppercase; /* Uppercase for modern touch */
letter-spacing: 1px; /* Spacing between letters */
}

#signup-form{
width: 80%;
}

.textfield {
margin-bottom: 15px; /* Add margin to space fields */
display: flex; /* Flex for better layout */
Expand Down Expand Up @@ -124,10 +116,11 @@ body {
}

.btn-login, #google-login {
padding: 16px;
padding: 10px 16px;
margin: 10px 0;
background-color: var(--btn-color);
color: var(--btn-text-color);
font-size: 16px;
font-weight: bold;
border: none;
border-radius: var(--border-radius);
Expand Down
53 changes: 52 additions & 1 deletion Html-files/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@
color: #000;
}
</style>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>

<!-- Navbar CSS File-->
<link rel="stylesheet" href="/Css-files/navbarstyles.css">

<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
Expand Down Expand Up @@ -274,6 +280,19 @@
font-size: 14px;
}
}

/* Navbar CSS */
.navbar {
background-color: transparent;
padding: 0.1rem 1rem;
}

@media (max-width: 768px) {
.navbar {
background-color: rgba(255, 255, 245, 0.8);
padding: 0.1rem 0.5rem;
}
}
</style>

</head>
Expand All @@ -283,7 +302,39 @@
</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>
<!-- Navbar -->
<header style="font-family: var(--ff-philosopher);">
<nav class="navbar navbar-expand-lg fixed-top" id="top">
<div class="container-fluid">
<a class="navbar-brand" href="/index.html" style="font-family: var(--ff-philosopher); color: rgb(149, 15, 95);">
<b>Retro</b>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="../index.html" style="color: black;">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" style="color: black;">About Us</a>
<li class="nav-item">
<a class="nav-link" href="menu.html" style="color: black;">Collections</a>
</li>
<li class="nav-item">
<a class="nav-link" href="services.html" style="color: black;">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html" style="color: black;">Contact us</a>
</li>
</ul>
</div>
</div>
</nav>
</header>

<div class="container">
<div class="card">
<div class="front" style="align-content: center;font-family: var(--ff-philosopher);">
Expand Down
57 changes: 54 additions & 3 deletions Html-files/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign up</title>
<script src="scriptsignup.js" defer type="module"></script>

<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>

<!-- Navbar CSS File-->
<link rel="stylesheet" href="/Css-files/navbarstyles.css">

<link rel="stylesheet" href="../Css-files/signup1.css">
<link rel="shortcut icon" type="image/x-icon" href="../Favicon image/favicon-32x32.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
Expand Down Expand Up @@ -188,6 +196,19 @@
.switch-link a:hover {
color: hsl(203, 30%, 26%);
}

/* Navbar CSS */
.navbar {
background-color: transparent;
padding: 0.1rem 1rem;
}

@media (max-width: 768px) {
.navbar {
background-color: rgba(255, 255, 245, 0.8);
padding: 0.1rem 0.5rem;
}
}
</style>
</head>
<body>
Expand All @@ -214,9 +235,39 @@
<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>
<!-- Navbar -->
<header style="font-family: var(--ff-philosopher);">
<nav class="navbar navbar-expand-lg fixed-top" id="top">
<div class="container-fluid">
<a class="navbar-brand" href="/index.html" style="font-family: var(--ff-philosopher); color: rgb(149, 15, 95);">
<b>Retro</b>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="../index.html" style="color: black;">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" style="color: black;">About Us</a>
<li class="nav-item">
<a class="nav-link" href="menu.html" style="color: black;">Collections</a>
</li>
<li class="nav-item">
<a class="nav-link" href="services.html" style="color: black;">Services</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html" style="color: black;">Contact us</a>
</li>
</ul>
</div>
</div>
</nav>
</header>

<div class="left-login">
<div class="area">
<div class="way"></div>
Expand Down