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
51 changes: 49 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,58 @@
<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 -->
<link rel="stylesheet" href="style.css">
</head>

<body>
<!-- Add your markup here -->
<div class="container">
<header>
<nav>
<li><a href="">HOME</a></li>
<li><a href="">ABOUT</a></li>
<li><a href="">CONTACT</a></li>
</nav>
<img class="cake" src="https://media.istockphoto.com/photos/strawberry-and-cream-sponge-cake-on-white-wooden-table-picture-id1294578109?b=1&k=20&m=1294578109&s=170667a&w=0&h=cK7uKAhs3r08JVUA22omHA-ToHRr5duIRagkoJwBJHc=" alt="photo-of-cake">
<p>Almost before we knew it, we had left the ground.</p>
</header>
<div>
<article>
<h1>Welcome</h1><br><br>
<p class="para">
We are made for goodness. We are made for love...We are made for all of the beautiful things that you and I know. We are made to tell the world that there are no outsiders...all are welcome.
</p>
</article>
</div><br><br>
<div class="img-di">
<img class="img-1" src="https://media.istockphoto.com/photos/christmas-cake-picture-id1192870771?k=20&m=1192870771&s=612x612&w=0&h=4ZWvmU3I1fPlO8Ivr_5p7ZMXEsgfxx_zbUeZ74-uH9Y=" alt="">
</div><br><br>
<div class="flex">

<img class="grid-item" src="https://media.istockphoto.com/photos/coffee-and-strawberry-shortcake-picture-id1127829688?k=20&m=1127829688&s=612x612&w=0&h=ew_7ldR7jyTzTXzVKLtPzxqTu-GKk1A1h54mPC-RidQ=" alt="">


<img class="grid-item" src="https://media.istockphoto.com/photos/tempting-pie-picture-id186857801?k=20&m=186857801&s=612x612&w=0&h=7kI-8xtUvO3YMCVpRp0Hf-35uu0NNUT5Jk-yaD5RDn8=" alt="">


<img class="grid-item" src="https://media.istockphoto.com/photos/strawberry-cake-fraisier-cake-on-white-wooden-background-picture-id1311634304?s=612x612" alt="">



<img class="grid-item" src="https://images.unsplash.com/photo-1578985545062-69928b1d9587?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=789&q=80" alt="">
</div><br><br>

<footer>
<h1>Follow Us On</h1><br>
<div class="footer">
<a href="https://www.instagram.com/" target="_blank" >INSTAGRAM</i></a>
<a href="https://twitter.com/home" target="_blank" >TWITTER</i></a>
<a href="https://www.facebook.com/" target="_blank" >FACEBOOK</i></a>
</div>

</footer>


</div>
</body>

</html>
74 changes: 73 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1 +1,73 @@
/* Add your styling here */
header {
border: 1px solid;
background-color: #ededed;
}
nav {
font-size: 17px;
display: block;
flex-direction: row;
margin-left: 270px;
margin-top: 20px;

}
li {
list-style-type: none;
}
.cake {
width: 90px;
height: 120px;
margin-left: 30px;
margin-top: -40px;
}
p {
width: 170px;
margin-left: 180px;
margin-top: -40px;
font-size: 17px;
color: rgb(85, 85, 131);
}
h1 {margin-left: 30px;}
.para {
width: 350px;
margin-left: 30px;
}
.img-1 {
width: 200px;
height: 120px;
margin-left: 80px;
margin-top: 60px;


}
.img-di {
background-color: #ededed;
height: 250px;
}
img {
width: 130px;
height: 70px;
}
.flex {
display: grid;
grid-template-columns: auto auto;
gap: 15px;
justify-content: space-between;

}
.grid-item {
height: 100%;
width: 100%;
}
.footer {
display: grid;
gap: 10px;

}

@media screen and (min-width: 900px) {

nav {
display: block;
flex-direction: row;
}
}