Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
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
258 changes: 258 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
* {
padding: 0;
margin: 0;
box-sizing: border-box;
text-decoration: none;
list-style: none;
font-family: "Bebas Neue", cursive;
font-family: "Roboto", sans-serif;
}

body {
margin: 0;
font-family: Helvetica, sans-serif;
background-color: #f4f4f4;
}

a {
color: #000;
}

.navbar {
width: 100%;
height: 150px;
background-color: #b6ad90;
display: flex;
justify-content: space-between;
}

.logo {
margin: 20px 0px;
cursor: pointer;
transition: 0.5s;
}

img:hover {
transform: translateY(-10px);
}

.bar {
margin: 10px 10px;
font-size: 30px;
text-align: right;
}

.ads {
font-size: 15px;
width: 70%;
text-align: right;
margin: 50px 0px 0px 60px;
font-style: italic;
}

.menu {
list-style: none;
display: flex;
justify-content: end;
margin: 0;
}

.row {
background-color: #fff;
box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.1);
position: absolute;
width: 100%;
}

.row ul {
margin: 0;
padding: 0;
list-style: none;
overflow: hidden;
background-color: #fff;
}

.row li a {
display: block;
padding: 20px 15px;
border-right: 2px solid #f4f4f4;
text-decoration: none;
}

.row li a:hover,
.row .menu-btn:hover {
background-color: #f4f4f4;
}

.row .menu {
clear: both;
max-height: 0;
transition: max-height 0.2s ease-out;
}

.cake-3 {
height: 60vh;
width: 100%;
object-fit: cover;
}

h1 {
font-size: 40px;
}

p {
font-size: 20px;
font-weight: lighter;
margin-top: 30px;
}

img {
height: 20vh;
width: 100%;
object-fit: cover;
border: 3px #b6ad90 solid;
}

.content {
margin: 100px;
display: grid;
position: relative;
max-width: 100%;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-template-rows: minmax(200px, auto);
grid-gap: 10px;
}

.content .details {
padding: 10px;
place-items: center;
text-align: right;
transition: 0.5s;
}

.content .details:hover {
transform: translateY(-10);
}

.content .details:nth-child(1) {
grid-column: span 2;
}

.content .details:nth-child(2) {
grid-column: span 2;
}

.content .details:nth-child(3) {
grid-column: span 1;
}

.content .details:nth-child(4) {
grid-column: span 1;
}

.content .details:nth-child(5) {
grid-column: span 1;
}

.content .details:nth-child(6) {
grid-column: span 1;
}

.footer {
background-color: #b6ad90;
padding: 10px 0px;
margin-top: 60px;
transition: 0.5s;
}

.logos-footer {
font-size: 15px;
gap: 10px;
color: #020202;
margin: 10px 20px;
}

i {
gap: 20px;
margin: 5px;
}

.copyrights {
text-align: center;
margin: 20px;
color: #020202;
}

@media (min-width: 90px) {
.container {
margin-top: 70px;
}

.row .menu {
clear: none;
float: right;
max-height: none;
}

.row ul {
margin: 0px 20px;
}

.logo-menu {
visibility: hidden;
}

.logos-footer {
display: flex;
margin-left: 80vh;
}

.copyrights {
text-align: center;
margin-left: 100px;
}
}

@media (max-width: 450px) {
.content {
object-fit: cover;
margin: 0px;

max-width: 100%;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-template-rows: minmax(auto, auto);
}

.logo-menu {
visibility: visible;
}

.logos-footer {
display: block;
font-size: 15px;
gap: 10px;
color: #020202;
margin: 10px 20px;
}

.row .menu {
visibility: hidden;
}

p {
font-size: 15px;
margin-top: 5px;
}
.content .details {
text-align: left;

}

h1 {
font-size: 30px;
}

.content .details:nth-child(2) {
order: -1;
}
}
Binary file added images/cake2.avif
Binary file not shown.
Binary file added images/cake3.avif
Binary file not shown.
Binary file added images/cake4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cake5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cake6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 59 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,69 @@

<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">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Responsive Cake webpage</title>
<!-- Add a link to your css file here -->
<title>Cake page</title>
<link rel="stylesheet" href="/css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/97841cab25.js" crossorigin="anonymous"></script>
</head>

<body>
<!-- Add your markup here -->

<header>
<nav class="navbar">
<div class="logo">
<img src="https://cdn-icons-png.flaticon.com/512/2401/2401414.png" alt="logo">
</div>
<div class="bar">
<div class="logo-menu"><i class="fa-solid fa-bars"></i></div>
<p class="ads">The best cake in town delivered to your door</p>
</div>
</nav>
<div class="row">

<ul class="menu">
<li><a class="muath" href="#">HOME</a></li>
<li><a class="muath" href="#">CAKES</a></li>
<li><a class="muath" href="#">ORDERING</a></li>
<li><a href="#">LESSONS</a></li>
<li><a href="#">ABOUT</a></li>
</ul>
</div>
</header>
<hr>
<div class="container">
<div class="content">
<div class="details"> <img class="cake-3" src="/images/cake3.avif" alt=""></div>

<div class="details">
<h1>Welcome</h1>
<p>
With a wide selection of cakes, we are certain we have the perfect cake to match
your tastes. For birthdays or general gatherings, our celebration cakes are perfect to get your
attendees in the mood.
</p>
</div>
<div class="details"><img src="/images/cake2.avif" alt=""></div>
<div class="details"><img src="/images/cake4.jpg" alt=""></div>
<div class="details"><img src="/images/cake5.jpg" alt=""></div>
<div class="details"><img src="/images/cake6.jpg" alt=""></div>
</div>

</div>
<footer class="footer">
<ul class="logos-footer">
<li><a href=""> Facebook <i class="fa-brands fa-facebook"></i> </a> </li>
<li><a href="">Instagram<i class="fa-brands fa-instagram"></i></a></li>
<li><a href="">Twitter<i class="fa-brands fa-twitter"></i></a></li>
</ul>
<p class="copyrights">© 2023 Muath Al-Awadhi</Al-Awadhi></p>

</footer>

</body>

</html>
1 change: 0 additions & 1 deletion style.css

This file was deleted.