Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

HTML-CSS-Coursework #289

Open
wants to merge 1 commit into
base: master
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
3 changes: 0 additions & 3 deletions css/main.css

This file was deleted.

259 changes: 259 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
* {
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: #b6ad90cc;
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: 40px;
text-align: right;
margin:0px 40rem 0rem 0rem;
font-style: italic;
color: #00000017;
}

.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 removed designs/Business portfolio.png
Binary file not shown.
Binary file removed designs/Cactus shop.png
Binary file not shown.
Binary file removed designs/Juice bar.png
Binary file not shown.
86 changes: 69 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Add a link to your custom CSS here -->
<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>My persnal 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>

<title>Responsive grid project</title>
</head>
<body>
<header>
<nav class="navbar">
<div class="bar">
<div class="logo-menu"><i class="fa-solid fa-bars"></i></div>
<p class="ads">Hello! I am Muath Al-Awadhi</p>
</div>
</nav>
<div class="row">
<ul class="menu">
<li><a class="muath" href="#">HOME</a></li>
<li><a class="muath" href="#">CONTACT</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="https://www.fortressofsolitude.co.za/wp-content/uploads/2022/08/The-20-Best-Actors-of-All-Time-770x511.jpeg" alt="" />
</div>

<body>

<!-- Add your markup here -->


<!-- Please leave this in to credit the creators of this design -->
<p>This website design was created by Wix.com, and is used here for strictly educational purposes.</p>
</body>

</html>
<div class="details">
<h1>Welcome</h1>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text
ever since the 1500s, when an unknown printer took a galley of type
and scrambled it to make a type specimen book. It has survived not
only five centuries, but also the leap into electronic typesetting,
remaining essentially unchanged. It was popularised in the 1960s
with the release of Letraset sheets containing Lorem Ipsum passages,
and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum
</p>
</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</p>
</footer>
</body>
</html>