Add files via upload

This commit is contained in:
Sam 2023-05-27 09:36:13 +03:00 committed by GitHub
parent 9ea515aead
commit 03d21d0009
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 279 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 819 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -0,0 +1,64 @@
<!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">
<title>Split Landing Page</title>
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar">
<div class="menu">
<ion-icon name="ios-menu"></ion-icon>
</div>
<div class="logo">
<ion-icon name="ios-heart"></ion-icon> brand
</div>
<div class="icon">
<div class="search">
<ion-icon name="ios-search"></ion-icon>
</div>
<div class="cart">
<ion-icon name="ios-cart"></ion-icon>
</div>
<div class="profile"><img src="img/profile.jpg" alt="1">
</div>
</div>
</nav>
<div class="content">
<div class="split left">
<img src="img/skateboard.png" alt="2" class="skateboard">
<div class="text">
<p class="subtitle">cruiser skateboard</p>
<h1 class="title">mmm ahhh <br> ..push it!</h1>
<p class="desc">Lorem ipsum dolor sit, amet consectetur adipisicing elit.<br> Alias sint voluptatem tempora ipsam
expedita?</p>
<button class="button">Discover More</button>
</div>
</div>
<div class="split right">
<img src="./img/shoes.png" alt="" class="shoes">
<div class="text">
<p class="subtitle">adidas pharrel</p>
<h1 class="title">because <br> i'm happy <br> again</h1>
<p class="desc">Lorem ipsum dolor sit, amet consectetur adipisicing elit.<br> Alias sint voluptatem tempora ipsam
expedita?</p>
<button class="button">Discover More</button>
</div>
</div>
</div>
<div class="slider">
<div class="pages">
<span>01</span>06
</div>
<div class="arrows">
<ion-icon name="ios-arrow-back"></ion-icon>
<ion-icon name="ios-arrow-forward"></ion-icon>
</div>
</div>
<script src="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons.js"></script>
<script src="main.js"></script>
</body>
</html>

View File

@ -0,0 +1,8 @@
const content = document.querySelector(".content");
const left = document.querySelector(".left");
const right = document.querySelector(".right");
left.addEventListener('mouseenter', () => content.classList.add('hover-left'))
left.addEventListener('mouseleave', () => content.classList.remove('hover-left'))
right.addEventListener('mouseenter', () => content.classList.add('hover-right'))
right.addEventListener('mouseleave', () => content.classList.remove('hover-right'))

View File

@ -0,0 +1,207 @@
@font-face {
font-family: 'sansserifexbflf-italic';
src: url('./font/sansserifexbflf-italic.otf');
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: 'Montserrat';
color: #fff;
width: 100%;
height: 100vh;
overflow-x: hidden;
}
ion-icon {
font-size: 25px;
}
.navbar {
position: absolute;
top: 0;
left: 0;
height: 80px;
width: 100%;
padding: 0 30px;
font-size: 20px;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
}
.navbar .menu{
cursor: pointer;
}
.navbar .icon{
display: flex;
align-items: center;
gap: 15px;
}
.navbar .icon .search{
cursor: pointer;
}
.navbar .icon .cart{
cursor: pointer;
}
.logo {
font-size: 30px;
text-transform: uppercase;
letter-spacing: 1px;
}
.profile img {
width: 35px;
height: 35px;
object-fit: cover;
border-radius: 50%;
cursor: pointer;
}
.content {
position: relative;
width: 100%;
height: 100%;
}
.split {
position: absolute;
width: 50%;
height: 100%;
transition: 1s all cubic-bezier(.87, .76, .33, .98);
overflow: hidden;
}
.split.left {
left: 0;
background: #0192cc;
}
.split.right {
right: 0;
background: #FFA100;
}
.hover-left .split.left {
width: 60%;
}
.hover-left .split.right {
width: 40%;
}
.hover-right .split.right {
width: 60%;
}
.hover-right .split.left {
width: 40%;
}
.skateboard {
width: 85%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.shoes {
width: 100%;
position: absolute;
top: 65%;
left: 50%;
transform: translate(-50%, -50%);
}
.text {
width: 600px;
position: absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
transition: all 1s cubic-bezier(.87, .76, .33, .98);
}
.text .subtitle {
font-size: 12px;
text-transform: uppercase;
color: #fff;
letter-spacing: 2px;
}
.text .title {
font-size: 60px;
color: #fff;
text-transform: uppercase;
font-weight: 700;
font-family: 'sansserifexbflf-italic';
line-height: 1;
letter-spacing: 5px;
margin-top: 10px;
}
.text .desc {
font-size: 14px;
color: #fff;
line-height: 1.5;
margin: 10px 0 30px 0;
text-align: center;
}
.text .button {
font-size: 16px;
color: #fff;
background: transparent;
border: #fff solid 2px;
padding: 15px 20px;
text-align: center;
font-weight: 700;
letter-spacing: 1px;
cursor: pointer;
outline: none;
border-radius: 50px;
transition: .5s;
}
.text .button:hover{
background: #fff;
color: #000;
}
.hover-left .split.left .text {
transform: translate(-40%, -50%);
}
.hover-left .split.right .text {
transform: translate(-40%, -50%);
}
.hover-right .split.right .text {
transform: translate(-60%, -50%);
}
.hover-right .split.left .text {
transform: translate(-45%, -50%);
}
.slider {
position: absolute;
bottom: 0;
right: 0;
height: 80px;
display: flex;
align-items: center;
}
.pages {
padding: 0 20px;
font-weight: bold;
}
.pages span::after {
content: "";
display: inline-block;
border: .5px solid #fff;
width: 100px;
margin: 0 10px;
transform: translateY(-4px);
}
.arrows {
padding: 0 20px;
}
.arrows ion-icon {
font-size: 30px;
padding: 0 20px;
}
@media(max-width:767px){
.text{
text-align: center;
font-size: 16px;
}
.text .title{
font-size: 21px;
}
.text .desc{
}
}