Add files via upload
BIN
100_projects/60-eid-al-fitr-2023/imgs/bottom.png
Normal file
After Width: | Height: | Size: 136 KiB |
BIN
100_projects/60-eid-al-fitr-2023/imgs/close.png
Normal file
After Width: | Height: | Size: 848 B |
BIN
100_projects/60-eid-al-fitr-2023/imgs/lamp.png
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
100_projects/60-eid-al-fitr-2023/imgs/menu.png
Normal file
After Width: | Height: | Size: 207 B |
BIN
100_projects/60-eid-al-fitr-2023/imgs/moon.png
Normal file
After Width: | Height: | Size: 126 KiB |
BIN
100_projects/60-eid-al-fitr-2023/imgs/mosque.png
Normal file
After Width: | Height: | Size: 282 KiB |
BIN
100_projects/60-eid-al-fitr-2023/imgs/rock.png
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
100_projects/60-eid-al-fitr-2023/imgs/stars.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
100_projects/60-eid-al-fitr-2023/imgs/stars2.png
Normal file
After Width: | Height: | Size: 18 KiB |
41
100_projects/60-eid-al-fitr-2023/index.html
Normal file
@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ar" dir="rtl">
|
||||
<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 name="description"content="Eid-ul-Fitr Website">
|
||||
<script src="alert/dist/sweetalert-dev.js"></script>
|
||||
<link rel="stylesheet" href="alert/dist/sweetalert.css">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<title>عيد الفطر</title>
|
||||
</head>
|
||||
<body>
|
||||
<header id="header">
|
||||
<h1>
|
||||
<a href="#" class="logo">عيد الفطر</a>
|
||||
</h1>
|
||||
<div class="toggle"></div>
|
||||
<ul class="navigation">
|
||||
<li><a href="#" class="active">الرئيسية</a></li>
|
||||
<li><a href="#">عني</a></li>
|
||||
<li><a href="#">اعمالي</a></li>
|
||||
<li><a href="#">تواصل</a></li>
|
||||
</ul>
|
||||
</header>
|
||||
<section>
|
||||
<img src="imgs/stars.png" id="stars" alt="stars_img">
|
||||
<img src="imgs/stars2.png" id="stars2" alt="stars2">
|
||||
<img src="imgs/moon.png" id="moon" alt="moon">
|
||||
<h2 id="text">عيد مبارك</h2>
|
||||
<img src="imgs/rock.png" id="rock" alt="rock">
|
||||
<img src="imgs/mosque.png" id="mosque" alt="mosque">
|
||||
<img src="imgs/bottom.png"id="bottom" alt="bottom">
|
||||
<img src="imgs/lamp.png"class="lamp" id="lamp" alt="lamp" >
|
||||
</section>
|
||||
<div class="sec">
|
||||
<h2>عيد مبارك سعيد لك ولعائلتك.</h2>
|
||||
</div>
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
7
100_projects/60-eid-al-fitr-2023/script.js
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
const toggleMenu = document.querySelector('.toggle');
|
||||
const navigation = document.querySelector('.navigation');
|
||||
toggleMenu.onclick = function () {
|
||||
toggleMenu.classList.toggle('active');
|
||||
navigation.classList.toggle('active');
|
||||
}
|
169
100_projects/60-eid-al-fitr-2023/style.css
Normal file
@ -0,0 +1,169 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: "Ubuntu", sans-serif;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
body {
|
||||
background: linear-gradient(#8b016a, #6f1159);
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
#header {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
padding: 30px;
|
||||
padding: 30px 100px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
z-index: 10000;
|
||||
}
|
||||
#header .logo {
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
font-size: 2em;
|
||||
text-decoration: none;
|
||||
}
|
||||
#header .navigation {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
#header .navigation li {
|
||||
list-style: none;
|
||||
margin-left: 20px;
|
||||
}
|
||||
#header .navigation li a {
|
||||
text-decoration: none;
|
||||
padding: 6px 15px;
|
||||
color: #fff;
|
||||
border-radius: 20px;
|
||||
}
|
||||
#header .navigation li a:hover,
|
||||
#header .navigation li a.active {
|
||||
background-color: #fff;
|
||||
color: #000;
|
||||
}
|
||||
section {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
section img {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
section img#lamp {
|
||||
mix-blend-mode: screen;
|
||||
}
|
||||
section img#masjid {
|
||||
transform: translateY(-20px);
|
||||
}
|
||||
section img#stars2 {
|
||||
display: none;
|
||||
}
|
||||
#text {
|
||||
color: #fff;
|
||||
font-size: 6vw;
|
||||
white-space: nowrap;
|
||||
text-shadow: 0 10px 15px rgba(0, 0, 0, 0.25);
|
||||
font-family: "Rancho", cursive;
|
||||
z-index: 9;
|
||||
}
|
||||
.sec{
|
||||
position: relative;
|
||||
padding: 100px;
|
||||
background: #96283a;
|
||||
text-align: center;
|
||||
}
|
||||
.sec h2{
|
||||
font-size: 3em;
|
||||
color: #fff;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.sec p{
|
||||
font-size: 1em;
|
||||
color: #fff;
|
||||
font-weight: 300;
|
||||
}
|
||||
@media (max-width: 992px) {
|
||||
#header {
|
||||
padding: 20px;
|
||||
}
|
||||
#header .logo {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
#header .navigation {
|
||||
display: none;
|
||||
}
|
||||
#header .navigation.active {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: #6f1159;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
z-index: 999;
|
||||
}
|
||||
#header .navigation li {
|
||||
margin-left: 0;
|
||||
}
|
||||
#header .navigation li a {
|
||||
font-size: 1.5em;
|
||||
margin: 5px 0;
|
||||
display: inline-block;
|
||||
border-radius: 30px;
|
||||
}
|
||||
.toggle {
|
||||
position: relative;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
cursor: pointer;
|
||||
background: url("imgs/menu.png");
|
||||
background-size: 30px;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
z-index: 10000;
|
||||
}
|
||||
.toggle.active {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
background: url("imgs/close.png");
|
||||
background-size: 25px;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
.sec {
|
||||
padding: 20px;
|
||||
}
|
||||
.sec h2 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
section img#stars2 {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
section img#mosque {
|
||||
transform: translate(-5px);
|
||||
}
|
||||
#text {
|
||||
font-size: 15vw;
|
||||
}
|
||||
}
|