initial commit
This commit is contained in:
parent
550fcb21b7
commit
4ae90daf2c
4 changed files with 518 additions and 0 deletions
BIN
awwwards/assets/logo.png
Normal file
BIN
awwwards/assets/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
195
awwwards/index.html
Normal file
195
awwwards/index.html
Normal file
|
@ -0,0 +1,195 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="shortcut icon" href="./assets/logo.png" type="image/x-icon">
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
<title>Awwwards Series Rebuild</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main class="app">
|
||||||
|
<div class="nav">
|
||||||
|
<div class="nav-container">
|
||||||
|
<p class="nav-logo">JtpMcDevitt</p>
|
||||||
|
<div class="nav-select">
|
||||||
|
<p>Grid</p>
|
||||||
|
<div class="nav-select-toggle">
|
||||||
|
<div class="nav-toggle"></div>
|
||||||
|
</div>
|
||||||
|
<p>Index</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<section class="work">
|
||||||
|
<div class="wrok-container">
|
||||||
|
<div class="work-title">
|
||||||
|
<h1>All projects</h1>
|
||||||
|
</div>
|
||||||
|
<div class="work-selector">
|
||||||
|
<div class="work-grid">
|
||||||
|
<div class="work-grid-item">
|
||||||
|
<img class="work-grid-item-img" src="https://images.unsplash.com/photo-1678933632171-f730be1aa086?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<div class="work-grid-item-title">
|
||||||
|
<h3>Ochi Design Rebuild</h3>
|
||||||
|
</div>
|
||||||
|
<div class="work-grid-item-info">
|
||||||
|
<h2>(01)</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Vite + React</li>
|
||||||
|
<li>Tailwind</li>
|
||||||
|
<li>GSAP</li>
|
||||||
|
<li>Framer Motion</li>
|
||||||
|
</ul>
|
||||||
|
<div class="grid-btn">
|
||||||
|
<a href="" class="grid-btn-1">Demo</a>
|
||||||
|
<a href="" class="grid-btn-2">Source code</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="work-grid-item --item-left">
|
||||||
|
<img class="work-grid-item-img" src="https://images.unsplash.com/photo-1713609917082-030afbbfb0a3?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<div class="work-grid-item-title">
|
||||||
|
<h3>Sundown Studio Rebuild</h3>
|
||||||
|
</div>
|
||||||
|
<div class="work-grid-item-info">
|
||||||
|
<h2>(02)</h2>
|
||||||
|
<ul>
|
||||||
|
<li>HTML</li>
|
||||||
|
<li>CSS</li>
|
||||||
|
<li>JavaScript</li>
|
||||||
|
</ul>
|
||||||
|
<div class="grid-btn">
|
||||||
|
<a href="" class="grid-btn-1">Demo</a>
|
||||||
|
<a href="" class="grid-btn-2">Source code</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="work-grid-item">
|
||||||
|
<img class="work-grid-item-img" src="https://images.unsplash.com/photo-1713707131810-d53b3b1ecced?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<div class="work-grid-item-title">
|
||||||
|
<h3>REJOUICE Rebuild</h3>
|
||||||
|
</div>
|
||||||
|
<div class="work-grid-item-info">
|
||||||
|
<h2>(03)</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Vite + React</li>
|
||||||
|
<li>Tailwind</li>
|
||||||
|
<li>GSAP</li>
|
||||||
|
<li>Framer Motion</li>
|
||||||
|
</ul>
|
||||||
|
<div class="grid-btn">
|
||||||
|
<a href="" class="grid-btn-1">Demo</a>
|
||||||
|
<a href="" class="grid-btn-2">Source code</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="work-grid-item --item-left">
|
||||||
|
<img class="work-grid-item-img" src="https://images.unsplash.com/photo-1710505904400-fd061f3c9ff5?q=80&w=2072&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<div class="work-grid-item-title">
|
||||||
|
<h3>Kit: Rebuild</h3>
|
||||||
|
</div>
|
||||||
|
<div class="work-grid-item-info">
|
||||||
|
<h2>(04)</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Vite + React</li>
|
||||||
|
<li>Tailwind</li>
|
||||||
|
<li>Framer Motion</li>
|
||||||
|
</ul>
|
||||||
|
<div class="grid-btn">
|
||||||
|
<a href="" class="grid-btn-1">Demo</a>
|
||||||
|
<a href="" class="grid-btn-2">Source code</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="work-index">
|
||||||
|
<div class="work-index-item">
|
||||||
|
<div class="work-index-item-title">
|
||||||
|
<div class="work-index-item-flex">
|
||||||
|
<h2>Ochi Rebuild</h2>
|
||||||
|
</div>
|
||||||
|
<h1>1</h1>
|
||||||
|
</div>
|
||||||
|
<div class="work-index-item-media">
|
||||||
|
<h2 class="work-index-item-media-arrow">→</h2>
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1678933632171-f730be1aa086?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1713609917082-030afbbfb0a3?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1713707131810-d53b3b1ecced?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1710505904400-fd061f3c9ff5?q=80&w=2072&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="work-index-item">
|
||||||
|
<div class="work-index-item-title">
|
||||||
|
<div class="work-index-item-flex">
|
||||||
|
<h2>Sundown Studio Rebuild</h2>
|
||||||
|
</div>
|
||||||
|
<h1>2</h1>
|
||||||
|
</div>
|
||||||
|
<div class="work-index-item-media">
|
||||||
|
<h2 class="work-index-item-media-arrow">→</h2>
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1678933632171-f730be1aa086?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1713609917082-030afbbfb0a3?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1713707131810-d53b3b1ecced?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1710505904400-fd061f3c9ff5?q=80&w=2072&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="work-index-item">
|
||||||
|
<div class="work-index-item-title">
|
||||||
|
<div class="work-index-item-flex">
|
||||||
|
<h2>REJOUICE Rebuild</h2>
|
||||||
|
</div>
|
||||||
|
<h1>3</h1>
|
||||||
|
</div>
|
||||||
|
<div class="work-index-item-media">
|
||||||
|
<h2 class="work-index-item-media-arrow">→</h2>
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1678933632171-f730be1aa086?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1713609917082-030afbbfb0a3?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1713707131810-d53b3b1ecced?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1710505904400-fd061f3c9ff5?q=80&w=2072&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="work-index-item">
|
||||||
|
<div class="work-index-item-title">
|
||||||
|
<div class="work-index-item-flex">
|
||||||
|
<h2>Kit: Rebuild</h2>
|
||||||
|
</div>
|
||||||
|
<h1>4</h1>
|
||||||
|
</div>
|
||||||
|
<div class="work-index-item-media">
|
||||||
|
<h2 class="work-index-item-media-arrow">→</h2>
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1678933632171-f730be1aa086?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1713609917082-030afbbfb0a3?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1713707131810-d53b3b1ecced?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
<img class="work-index-item-img" src="https://images.unsplash.com/photo-1710505904400-fd061f3c9ff5?q=80&w=2072&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
|
||||||
|
<script src="main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
76
awwwards/main.js
Normal file
76
awwwards/main.js
Normal file
|
@ -0,0 +1,76 @@
|
||||||
|
const toggle = {
|
||||||
|
element: document.querySelector('.nav-select-toggle'),
|
||||||
|
circle: document.querySelector('.nav-toggle'),
|
||||||
|
};
|
||||||
|
const view = {
|
||||||
|
grid: document.querySelector('.work-grid'),
|
||||||
|
index: document.querySelector('.work-index'),
|
||||||
|
indexItem: document.querySelectorAll('.work-index-item'),
|
||||||
|
indexMediaImage: document.querySelectorAll('.work-index-item-img'),
|
||||||
|
indexMediaArrow: document.querySelectorAll('.work-index-item-media-arrow'),
|
||||||
|
};
|
||||||
|
|
||||||
|
const animateIndexItem = (item) =>{
|
||||||
|
const itemImages = item.querySelectorAll('.work-index-item-img');
|
||||||
|
const itemArrows = item.querySelectorAll('.work-index-item-media-arrow');
|
||||||
|
const itemTitle = item.querySelectorAll('.work-index-item-title');
|
||||||
|
|
||||||
|
const tlIndexrow = gsap.timeline({
|
||||||
|
paused: true,
|
||||||
|
defaults: {
|
||||||
|
duration: 0.6,
|
||||||
|
ease: 'expo.inOut'
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.to(itemArrows, {autoAlpha: 1, xPercent: 0})
|
||||||
|
.to(itemImages, {autoAlpha: 1, yPercent: 0, stagger: 0.03}, 0)
|
||||||
|
.to(itemTitle, {autoAlpha: 0}, 0);
|
||||||
|
|
||||||
|
item.addEventListener('mouseenter', () => tlIndexrow.play())
|
||||||
|
item.addEventListener('mouseleave', () => tlIndexrow.reverse())
|
||||||
|
};
|
||||||
|
|
||||||
|
let isActive = false;
|
||||||
|
const addEventListener = () => {
|
||||||
|
const tlToggle = gsap.timeline({paused:true}).to(toggle.circle, {
|
||||||
|
xPercent: 140,
|
||||||
|
duration: 0.2,
|
||||||
|
ease: 'expo.inOut',
|
||||||
|
});
|
||||||
|
gsap.set(view.index, {
|
||||||
|
autoAlpha:0,
|
||||||
|
display: 'none'
|
||||||
|
});
|
||||||
|
|
||||||
|
const tlView = gsap.timeline({paused: true}).to(view.grid, {
|
||||||
|
duration: 0.6,
|
||||||
|
autoAlpha: 0,
|
||||||
|
display: 'none',
|
||||||
|
ease: 'expo.inOut',
|
||||||
|
onComplete: () => {
|
||||||
|
tlView.to(view.index, {
|
||||||
|
autoAlpha: 1,
|
||||||
|
display: 'block'
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
||||||
|
toggle.element.addEventListener('click', () => {
|
||||||
|
!isActive ? tlToggle.play() : tlToggle.reverse();
|
||||||
|
!isActive ? tlView.play() : tlView.reverse();
|
||||||
|
|
||||||
|
isActive = !isActive;
|
||||||
|
});
|
||||||
|
view.indexItem.forEach((item) => {
|
||||||
|
gsap.set(view.indexMediaImage, {
|
||||||
|
autoAlpha: 0,
|
||||||
|
yPercent: 100
|
||||||
|
});
|
||||||
|
gsap.set(view.indexMediaArrow, {
|
||||||
|
autoAlpha: 0,
|
||||||
|
xPercent: -100
|
||||||
|
});
|
||||||
|
animateIndexItem(item);
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
|
addEventListener();
|
247
awwwards/style.css
Normal file
247
awwwards/style.css
Normal file
|
@ -0,0 +1,247 @@
|
||||||
|
*{
|
||||||
|
margin: 0;
|
||||||
|
padding:0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
:root{
|
||||||
|
--primary: #f7f7f7;
|
||||||
|
--secondary: #181818;
|
||||||
|
}
|
||||||
|
html{
|
||||||
|
font-size: calc(100vw / 1920 * 10);
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
background: var(--primary);
|
||||||
|
color: var(--secondary);
|
||||||
|
}
|
||||||
|
h1{
|
||||||
|
font-size: 13rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
}
|
||||||
|
h2{
|
||||||
|
font-size: 9rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
font-size: 4.8rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
}
|
||||||
|
h4{
|
||||||
|
font-size: 3.2rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
p, li{
|
||||||
|
font-size: 2.4rem;
|
||||||
|
text-decoration: none;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
a{
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
span{
|
||||||
|
font-size: 1.6rem;
|
||||||
|
}
|
||||||
|
/*=== navbar ===*/
|
||||||
|
.nav{
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
padding: 3.2rem 6.4rem;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.nav-container{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.nav-select{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
.nav-select-toggle{
|
||||||
|
width: 6rem;
|
||||||
|
padding: 0.4rem;
|
||||||
|
border: 1px solid var(--secondary);
|
||||||
|
border-radius: 200rem;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.nav-toggle{
|
||||||
|
background-color: var(--secondary);
|
||||||
|
width: 2rem;
|
||||||
|
height: 2rem;
|
||||||
|
border-radius: 200rem;
|
||||||
|
}
|
||||||
|
/*=== projects ===*/
|
||||||
|
.work{
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 15rem;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.wrok-container{
|
||||||
|
padding: 6.4rem;
|
||||||
|
}
|
||||||
|
.work-title{
|
||||||
|
display: inline-flex;
|
||||||
|
width: 100%;
|
||||||
|
gap: 3.2rem;
|
||||||
|
padding-bottom: 4.8rem;
|
||||||
|
border-bottom: 1px solid var(--secondary);
|
||||||
|
}
|
||||||
|
.work-title h1{
|
||||||
|
font-size: 12rem;
|
||||||
|
}
|
||||||
|
.work-selector{
|
||||||
|
position: relative;
|
||||||
|
padding-top: 12rem;
|
||||||
|
}
|
||||||
|
/*=== grid ===*/
|
||||||
|
.work-grid-item{
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
grid-column-gap: 1.5rem;
|
||||||
|
grid-row-gap: 1.5rem;
|
||||||
|
grid-template-areas: 'grid-img grid-info' 'grid-title .';
|
||||||
|
margin-bottom: 12.8rem;
|
||||||
|
}
|
||||||
|
.--item-left{
|
||||||
|
grid-template-areas: 'grid-info grid-img ' '. grid-title';
|
||||||
|
}
|
||||||
|
.work-grid-item-img{
|
||||||
|
grid-area: grid-img;
|
||||||
|
width: 96rem;
|
||||||
|
height: 64rem;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
.work-grid-item-info{
|
||||||
|
grid-area: grid-info;
|
||||||
|
}
|
||||||
|
.work-grid-item-title{
|
||||||
|
grid-area: grid-title;
|
||||||
|
}
|
||||||
|
.grid-btn{
|
||||||
|
margin-top: 2.5rem;
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
.grid-btn-1{
|
||||||
|
margin-right: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #181818;
|
||||||
|
color: white;
|
||||||
|
border: 1px solid black;
|
||||||
|
transition: all 0.3s ease-in;
|
||||||
|
}
|
||||||
|
.grid-btn-1:hover{
|
||||||
|
background-color: gray;
|
||||||
|
color: black;
|
||||||
|
border: 1px solid gray;
|
||||||
|
}
|
||||||
|
.grid-btn-2{
|
||||||
|
padding: 10px;
|
||||||
|
color: black;
|
||||||
|
border: 1px solid black;
|
||||||
|
transition: all 0.3s ease-in;
|
||||||
|
}
|
||||||
|
.grid-btn-2:hover{
|
||||||
|
background-color: gray;
|
||||||
|
color: white;
|
||||||
|
border: 1px solid gray;
|
||||||
|
}
|
||||||
|
/*=== index ===*/
|
||||||
|
.work-index-item{
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
margin-bottom: 3.2rem;
|
||||||
|
overflow: hidden;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.work-index-item:last-child{
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.work-index-item-title{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.work-index-item-flex{
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 3.2rem;
|
||||||
|
}
|
||||||
|
.work-index-item-media{
|
||||||
|
display: flex;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
.work-index-item-img{
|
||||||
|
width: 32rem;
|
||||||
|
height: 13rem;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*=== grid responsive ===*/
|
||||||
|
@media screen and (min-width: 768px){
|
||||||
|
.--item-left .work-grid-item-info{
|
||||||
|
justify-self: right;
|
||||||
|
}
|
||||||
|
.work-grid-item:nth-child(2) .work-grid-item-img{
|
||||||
|
width: 90rem;
|
||||||
|
height: 96rem;
|
||||||
|
}
|
||||||
|
.work-grid-item:nth-child(3) .work-grid-item-img{
|
||||||
|
width: 120rem;
|
||||||
|
height: 90rem;
|
||||||
|
}
|
||||||
|
.work-grid-item:nth-child(4) .work-grid-item-img{
|
||||||
|
width: 140rem;
|
||||||
|
height: 90rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
/*=== index responsive ===*/
|
||||||
|
@media screen and (max-width: 768px){
|
||||||
|
html{
|
||||||
|
font-size: calc(100vw / 768 * 10);
|
||||||
|
}
|
||||||
|
h1{
|
||||||
|
font-size: 7rem;
|
||||||
|
}
|
||||||
|
h2{
|
||||||
|
font-size: 4.8rem;
|
||||||
|
}
|
||||||
|
h3{
|
||||||
|
font-size: 3.2rem;
|
||||||
|
}
|
||||||
|
h4{
|
||||||
|
font-size: 2.4rem;
|
||||||
|
}
|
||||||
|
p,li{
|
||||||
|
font-size: 2.4rem;
|
||||||
|
}
|
||||||
|
span{
|
||||||
|
font-size: 1.6rem;
|
||||||
|
}
|
||||||
|
.work-grid-item, .work-grid-item.--item-left{
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-areas: 'grid-img' 'grid-title' 'grid-info';
|
||||||
|
}
|
||||||
|
.work-grid-item-img{
|
||||||
|
width: 100%;
|
||||||
|
height: 64rem;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
.work-title h1{
|
||||||
|
font-size: 7rem;
|
||||||
|
}
|
||||||
|
.work-index-item-flex{
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue