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

made the home-page responsive #49

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
54 changes: 6 additions & 48 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,6 @@
@import url("https://fonts.googleapis.com/css2?family=Manrope&family=Pattaya&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Parisienne&display=swap");
body {
margin: 0;
padding: 0;
}
nav ul{
margin: 0;
padding: 0;
overflow: hidden;
list-style-type: none;
padding-top: 20px;
}
nav ul li{
float: left;
font-family: "Manrope", sans-serif;
}
nav ul li a{
padding: 10px 20px;
text-decoration: none;
color: whitesmoke;
display: block;
text-align: center;
font-size: 14px;
}
nav ul li a:hover{
background-color: #111;
}
nav ul li a:active{
background-color: whitesmoke;
color: #111;
}

#intro {
height: 100vh;
background-image: linear-gradient(
rgba(46, 54, 61, 0.685),
Expand All @@ -43,14 +12,8 @@ nav ul li a:active{
margin: 0;
background-attachment: fixed;
}
.title {
top: 30%;
left: 40%;
position: absolute;
padding: 10px;
text-align: center;
display: inline-block;
color: whitesmoke;
nav ul li a{
font-family: "Manrope", sans-serif;
}
.logo{
max-width: 100px;
Expand All @@ -65,12 +28,7 @@ nav ul li a:active{
transform: scale(1);
}
}
.title h5 {
font-family: "Parisienne", cursive;
font-size: 50px;
margin: 0;
}
.title .order-button a{
.btn{
border: whitesmoke solid 1.5px;
color: whitesmoke;
text-decoration: none;
Expand All @@ -79,9 +37,9 @@ nav ul li a:active{
margin-top: 10px;
font-family: "Manrope", sans-serif;
}
.title .order-button a:hover{
background-color: rgba(46, 54, 61, 0.685);
.btn:hover{
background-color: rgba(46, 54, 61, 0.685);
color: whitesmoke;
border: rgba(46, 54, 61, 0.685) solid 1.5px;
transition: .8s;
transition: .4s;
}
102 changes: 82 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,91 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Indulge-HomePage</title>
<link rel="stylesheet" href="css/index.css" />
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<!-- Bootstrap CSS -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="/css/index.css" />

<title>Indulge</title>
</head>
<body>
<div id="intro">
<nav>
<ul>
<li><a href="#">HOME</a></li>
<li><a href="#">MENU</a></li>
<li><a href="#">ABOUT</a></li>
<li><a href="#">LOCATION & HOURS</a></li>
<li style="float: right"><a href="#">CONTACT</a></li>
<li style="float: right"><a href="#">CONTRIBUTERS</a></li>
</ul>
</nav>
<div class="title">
<img class="logo" src="./imgs/fork.png" />
<h5>The Indulge</h5>
<div class="order-button"><a href="#">Order Now</a></div>
<nav class="navbar navbar-expand-lg navbar-dark bg-transparent mt-3">
<div class="container-fluid">
<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" style="font-size: 14px">
<li class="nav-item px-2">
<a class="nav-link active" aria-current="page" href="index.html">HOME</a>
</li>
<li class="nav-item px-2">
<a class="nav-link" href="#">MENU</a>
</li>
<li class="nav-item px-2">
<a class="nav-link" href="about.html">ABOUT</a>
</li>
<li class="nav-item px-2">
<a class="nav-link" href="#">LOCATION & HOURS</a>
</li>
</ul>
<ul class="navbar-nav px-2">
<li class="nav-item justify-content-end">
<a class="nav-link" href="#">CONTRIBUTERS</a>
</li>
<li class="nav-item justify-content-end px-2">
<a class="nav-link" href="#">CONTACT US</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<img
src="./imgs/fork.png"
class="logo img-fluid"
alt="Responsive image"
style="margin-left: 48%; margin-top: 10%"
/>
<h1
style="
margin-left: 42%;
margin-top: 10px;
font-family: Parisienne, cursive;
font-size: 50px;
color: whitesmoke;
"
>
The Indulge
</h1>
<button
type="button"
class="btn"
style="margin-top: 10px; display: block; margin-left: 48%"
>
Order Now
</button>
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4"
crossorigin="anonymous"
></script>
</body>
</html>