Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SpantaAlizadeh10 authored Mar 30, 2024
1 parent 7f11b6c commit 53a249d
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 95 deletions.
83 changes: 50 additions & 33 deletions Gallery/gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,61 @@
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=Cabin:ital,wght@0,400..700;1,400..700&family=Protest+Strike&family=Rubik:ital,wght@0,300..900;1,300..900&family=Scheherazade+New:wght@400;500;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Resume Gallery Web</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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=Cabin:ital,wght@0,400..700;1,400..700&family=Protest+Strike&family=Rubik:ital,wght@0,300..900;1,300..900&family=Scheherazade+New:wght@400;500;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Document</title>
</head>

<body>

<div class="container">

<div class="panel active " style="background-image: url(images/sofa\ web\ 1.JPG)">
<!-- <img src="images/sofa web 1.JPG" alt=""> -->
<h1>Ui UX Sepanta</h1>
</div>

<div class="panel " style="background-image: url(images/sofa\ 2.JPG);">
<h1>Ui UX Sepanta</h1>
</div>

<div class="panel " style="background-image: url(images/Aripport\ ui\ ux\ 1.JPG);">
<h1>Ui UX Sepanta</h1>
</div>

<div class="panel " style="background-image: url(images/Aripport\ ui\ ux\ 3.JPG);">
<h1>Ui UX Sepanta</h1>
</div>

<div class="panel " style="background-image: url(images/Aripport\ ui\ ux\ Finall.JPG);">
<h1>Ui UX Sepanta</h1>
</div>
<div class="carousel">
<img src="images/sofa web 1.JPG" alt="sofa photo">
<blockquote class="testimonial">
<p class="testimonial-text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur neque, temporibus similique illum aut ut,
excepturi voluptates harum necessitatibus minus ratione error illo. Suscipit aspernatur nisi reiciendis
praesentium, laboriosam enim?
</p>
<p class="type">
sofa
</p>
<p class="personality">
minimalist
</p>
</blockquote>

<button class="btn btn--left">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
class="btn-icon">
<path stroke-linecap="round" stroke-linejoin="round" d="M6.75 15.75 3 12m0 0 3.75-3.75M3 12h18" />
</svg>

</button>


<button class="btn btn--right">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
class="btn-icon">
<path stroke-linecap="round" stroke-linejoin="round" d="M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3" />
</svg>


</button>
<div class="dots">
<button class="dot dot--fill">&nbsp;</button>
<button class="dot">&nbsp;</button>
<button class="dot">&nbsp;</button>
<button class="dot">&nbsp;</button>
</div>
</div>


<script src="script.js"></script>
<script src="script.js"></script>

</body>

Expand Down
24 changes: 12 additions & 12 deletions Gallery/script.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const panels = document.querySelectorAll(".panel");
panels.forEach((panel) => {
panel.addEventListener("click", () => {
removeActiveClasses();
panel.classList.add("active");
});
// Fancybox Configuration
$('[data-fancybox="gallery"]').fancybox({
buttons: [
"slideShow",
"thumbs",
"zoom",
"fullScreen",
"share",
"close"
],
loop: false,
protect: true
});

function removeActiveClasses() {
panels.forEach((panel) => {
panel.classList.remove("active");
});
}
224 changes: 174 additions & 50 deletions Gallery/style.css
Original file line number Diff line number Diff line change
@@ -1,77 +1,201 @@
* {
padding: 0;
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Rubik", cursive;
}

body {
font-family: "Rubik", sans-serif;
color: #343a40;
line-height: 1;
}
img {
height: 400px;
border-radius: 10px;
transform: scale(1.5);
box-shadow: 0 12px 24px rgb(0, 0, 0, 0.5);
}

.carousel {
width: 1600px;
margin: 450px auto;
background-color: rgb(97, 24, 164);
border-radius: 8px;
padding: 32px;
padding-left: 250px;
display: flex;
/* align-items: center; */
gap: 180px;
position: relative;
padding-right: 80px;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
}
.container {
display: flex;
width: 90vw;

.testimonial-text {
font-size: 20px;
font-weight: 500;
line-height: 1.5;
margin-bottom: 32px;
color: rgb(208, 199, 211);
}

.type {
font-size: 18px;
margin-bottom: 8px;
color: rgb(172, 165, 174);
}

.personality {
font-size: 16px;
color: rgb(172, 165, 174);
}

.panel {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 80vh;
border-radius: 50px;
.btn {
background-color: aliceblue;
border: none;
height: 50px;
width: 50px;
border-radius: 50%;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
cursor: pointer;
flex: 0.5;
margin: 10px;
position: relative;
transition: all 700ms ease-in;
}

.panel h1 {
font-size: 35px;
.btn-icon {
height: 34px;
width: 34px;
stroke: blueviolet;
}

.btn--left {
left: 0;
top: 50%;
transform: translate(-50%, -50%);
}

.btn--right {
right: 0;
top: 50%;
transform: translate(50%, -50%);
}

.dots {
position: absolute;
bottom: 20px;
left: 20px;
margin: 0;
opacity: 0;
left: 50%;
bottom: 0;
transform: translate(-50%, 98px);
display: flex;
gap: 15px;
}

.panel.active {
flex: 5;
.dot {
height: 12px;
width: 12px;
background-color: aliceblue;
border: 2px solid green;
cursor: pointer;
border-radius: 50%;
}

.panel.active h1 {
opacity: 1;
transition: opacity 0.3s ease-in 0.4s;
color: rgb(12, 76, 55);
background-color: beige;
padding: 5px;
border-radius: 10px;
font-size: 20px;
.dot--fill {
background-color: darkcyan;
}

@media (max-width: 480px) {
.container {
width: 100vw;
transition: opacity 0.3s ease-in 0.4s;
/* @media(max-width: 600px){
img {
height: 100px;
border-radius: 10px;
transform: scale(1.5);
box-shadow: 0 12px 24px rgb(0, 0, 0, 0.5);
}
.panel {
background-size: 125%;
height: 80vh;
border-radius: 50px;
cursor: pointer;
flex: 0.5;
margin: 10px;
padding: 5px;
.carousel {
width: 300px;
margin: 50px auto;
background-color: rgb(97, 24, 164);
border-radius: 8px;
padding: 22px;
padding-left: 150px;
display: flex;
gap: 20px;
position: relative;
padding-right: 40px;
align-items: center;
}

.panel h1 {
font-size: 15px;
.testimonial-text {
font-size: 10px;
font-weight: 500;
line-height: 1.5;
margin-bottom: 32px;
color: rgb(208, 199, 211);
}
.type {
font-size: 8px;
margin-bottom: 8px;
color: rgb(172, 165, 174);
}
.personality {
font-size: 8px;
color: rgb(172, 165, 174);
}
.btn {
background-color: aliceblue;
border: none;
height: 20px;
width: 20px;
border-radius: 50%;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
cursor: pointer;
}
}
.btn-icon {
height: 14px;
width: 14px;
stroke: blueviolet;
}
.btn--left {
left: 0;
top: 50%;
transform: translate(-50%, -50%);
}
.btn--right {
right: 0;
top: 50%;
transform: translate(50%, -50%);
}
.dots {
position: absolute;
left: 50%;
bottom: 0;
transform: translate(-50%, 98px);
display: flex;
gap: 15px;
}
.dot {
height: 12px;
width: 12px;
background-color: aliceblue;
border: 2px solid green;
cursor: pointer;
border-radius: 50%;
}
.dot--fill{
background-color: darkcyan;
}
} */

0 comments on commit 53a249d

Please sign in to comment.