Skip to content

Ashish UI responsive #621

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

Open
wants to merge 3 commits 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
Binary file modified .DS_Store
Binary file not shown.
136 changes: 118 additions & 18 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
/* border: 0; */
font-size: 100%;
font: inherit;
vertical-align: baseline;
Expand Down Expand Up @@ -49,6 +49,7 @@ table {

* {
box-sizing: border-box;
border: 1px solid grey;
}

html {
Expand Down Expand Up @@ -91,9 +92,42 @@ header {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-color: rgb(0, 4, 17, .8);
color: rgb(225, 239, 230);
}
h1{
display: flex;
justify-content: center;
color: rgb(225, 239, 230);
}
nav{
display: flex;
flex-direction: column;
}

.navlinks{
display: flex;
flex-direction: row-reverse;
justify-content: space-evenly;
}
nav a{
color: rgb(225, 239, 230);
}
nav a:hover{
color: lightskyblue;
}
i{
font-size: 3.5rem;
}
.sociallinks{
width: 25%;
margin: auto;
padding: 20px;
display: flex;
justify-content: space-evenly;
}

/* spacers */
spacers
.spacer {
width: 100%;
height: 20vh;
Expand All @@ -107,21 +141,38 @@ header {

/* gallery section */
.gallery {
width: 100%;
height: 100vh;
/* width: 70%; */
/* height: 90vh; */
text-align: center;
background-color: rgb(0, 4, 17);
color: rgb(225, 239, 230);
/* display: flex; */
/* flex-direction: column; */
}
.galleryimg{
width: 100%;
display: flex;
justify-content: space-evenly;
flex-flow: row wrap;
}
.galleryimg div{
width: 30%;
margin-bottom: 10px;
}
.galleryimg div img{
width: 100%;
}

/* about us section */
.about {
width: 100%;
height: 75vh;
height: 100vh;
text-align: center;
background-image: url("../img/staff-cooks.jpg");
background-size: cover;
background-position: top;
background-repeat: no-repeat;
color: rgb(225, 239, 230);
}

.about-container {
Expand Down Expand Up @@ -149,6 +200,7 @@ header {
background-position: center;
background-repeat: no-repeat;
background-color: rgb(0, 4, 17);
color: rgb(225, 239, 230);
}

.contact-container {
Expand Down Expand Up @@ -188,22 +240,78 @@ header {
width: 25%;
}

.contacts a{
color: rgb(225, 239, 230);
}


/* footer section */
footer {
footer{
width: 100%;
height: 15vh;
padding-top: 2.5vh;
font-size: 3rem;
display: flex;
justify-content: space-between;
padding: 20px;
background-color: rgb(0, 4, 17);
color: rgb(225, 239, 230);
}
.maillist{
width: 35%;
text-align: center;
}
input{
padding: 10px 10px;
width: 70%;
}
button{
padding: 10px 20px;
}
.navrow{
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
gap: 0 100px;
}
.copyright p{
font-size: 1.5rem;
display: flex;
justify-content: flex-end;
align-items: flex-end;
}

/* mobile media query */
@media (max-width: 428px) {
/* header section */

header {
width: 100%;
display: flex;
flex-direction: column;
text-align: center;
}
h1{
font-size: 5rem;
}
.navlinks{
display: flex;
flex-direction: column;
text-align: center;
}
.sociallinks{
display: flex;
gap: 0 10px;
}

/* gallery section */
.gallery {
/* height: auto; */
}
.galleryimg{
width: 100%;
height: auto;
display: flex;
flex-direction: column;
}
.galleryimg div{
width: 100%;
}

/* about us section */
Expand Down Expand Up @@ -238,16 +346,8 @@ footer {
.hours {
width: 100%;
}

.contacts {
width: 100%;
padding-bottom: 2.5vh;
}

/* footer section */
footer {
height: auto;
padding-top: 2.5vh;
font-size: 2rem;
}
}
102 changes: 62 additions & 40 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,66 @@

<head>
<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sprint Challenge - Home</title>

<link href="https://fonts.googleapis.com/css?family=Roboto|Rubik" rel="stylesheet">
<script src="https://kit.fontawesome.com/5b12ffad4b.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/index.css">
</head>

<body>
<div>
<!-- header -->
<header>
<div>
BLOOMTECH BAR AND GRILL

<!-- nav -->
Menu
Reservations
Special Offers
Contact
</div>
<h1><a href="index.html">BLOOMTECH BAR AND GRILL</a></h1>
<!-- nav -->
<nav>
<div class="navlinks">
<a href="menu.html">Menu</a>
<a href="#contactsection">Reservations</a>
<a href="#contactsection">Special Offers</a>
<a href="#contactsection">Contact</a>
</div>
<div class="sociallinks">
<i class="fa-brands fa-square-facebook"></i>
<i class="fa-brands fa-square-twitter"></i>
<i class="fa-brands fa-square-instagram"></i>
</div>
</nav>
</header>

<!-- gallery section -->
<section class="gallery">
<div>
<h2>OUR FOOD</h2>

img/food-avocadotoast.jpg

img/food-burger.jpg

img/food-poutine.jpg

img/food-ribs.jpg

img/food-sandwich.jpg

img/food-sausage.jpg

img/food-steak.jpg

img/food-tacos.jpg

img/food-wings.jpg
<h2>OUR FOOD</h2>
<div class="galleryimg">
<div>
<img src="img/food-avocadotoast.jpg" alt="Avocado Toast">
</div>
<div>
<img src="img/food-burger.jpg" alt="Burger">
</div>
<div>
<img src="img/food-poutine.jpg" alt="Poutine">
</div>
<div>
<img src="img/food-ribs.jpg" alt="Ribs">
</div>
<div>
<img src="img/food-sandwich.jpg" alt="Sandwich">
</div>
<div>
<img src="img/food-poutine.jpg" alt="Poutine">
</div>
<div>
<img src="img/food-tacos.jpg" alt="Tacos">
</div>
<div>
<img src="img/food-wings.jpg" alt="Wings">
</div>
<div>
<img src="img/food-steak.jpg" alt="Steak">
</div>
</div>
</section>

Expand Down Expand Up @@ -82,7 +98,7 @@ <h3>Good Food, Great People</h3>
<div class="spacer"></div>

<!-- contact section -->
<section class="contact">
<section class="contact" id="contactsection">
<div class="contact-container">
<h2>CONTACT US</h2>

Expand Down Expand Up @@ -125,15 +141,21 @@ <h3>Contacts</h3>
<!-- footer -->
<footer>
<!-- email signup -->
Join our mailing list!
Sign Up
<!-- nav -->
Menu
Reservations
Special Offers
Contact
<!-- copyright -->
©2022 BloomTech Restaurant Group, Inc. All Rights Reserved.
<div class="maillist">
<p>Join our mailing list!</p>
<input type="email" placeholder="Email Address" name="email" id=""><button type="submit">Sign Up</button>
</div>
<div>
<nav class="navrow">
<a href="menu.html">Menu</a>
<a href="#contactsection">Reservations</a>
<a href="#contactsection">Special Offers</a>
<a href="#contactsection">Contact</a>
</nav>
<div class="copyright">
<p>©2022 BloomTech Restaurant Group, Inc. All Rights Reserved.</p>
</div>
</div>
</footer>
</div>
</body>
Expand Down
Loading