Skip to content

Commit

Permalink
Merge pull request #53 from TyronNIKO/fixing
Browse files Browse the repository at this point in the history
global fixes, icons and swiper - working
  • Loading branch information
TyronNIKO authored Jul 10, 2024
2 parents f610789 + 229f790 commit 2d62cf9
Show file tree
Hide file tree
Showing 14 changed files with 355 additions and 912 deletions.
132 changes: 32 additions & 100 deletions src/css/common.css
Original file line number Diff line number Diff line change
@@ -1,134 +1,66 @@
:root {
/* colors */
--color-black: 28, 29, 32;
--color-white: 250, 250, 250;
--color-red: 237, 59, 68;
--color-red-dark: 224, 55, 63;

--color-green: 198, 227, 39;
--color-blue: 0, 35, 232;
--color-tomato: 230, 83, 60;
--color-slate: 43, 68, 65;
--color-orange: 255, 127, 8;

/* gradients */
--gradient-red: linear-gradient(
:root{/* colors */--color-black:28,29,32;--color-white:250,250,250;--color-red:237,59,68;--color-red-dark:224,55,63;--color-green:198,227,39;--color-blue:0,35,232;--color-tomato:230,83,60;--color-slate:43,68,65;--color-orange:255,127,8;/* gradients */--gradient-red:linear-gradient(
-90deg,
#1c1d20 50%,
#69292d 68%,
rgba(var(--color-red), 1) 100%
);
--gradient-red-tablet: linear-gradient(
);--gradient-red-tablet:linear-gradient(
-90deg,
#1c1d20 25%,
#69292d 43%,
rgba(var(--color-red), 1) 100%
);
--gradient-green: linear-gradient(
);--gradient-green:linear-gradient(
-90deg,
#1c1d20 50%,
#596808 68%,
rgba(var(--color-green), 0.76) 100%
);
--gradient-blue: linear-gradient(
);--gradient-blue:linear-gradient(
-90deg,
#1c1d20 50%,
#001958 68%,
rgba(var(--color-blue), 1) 100%
);
--gradient-tomato: linear-gradient(
);--gradient-tomato:linear-gradient(
-90deg,
#1c1d20 50%,
#9f3626 68%,
rgba(var(--color-tomato), 1) 100%
);
--gradient-slate: linear-gradient(
);--gradient-slate:linear-gradient(
-90deg,
#1c1d20 50%,
#1e3633 68%,
rgba(var(--color-slate), 1) 100%
);
--gradient-orange: linear-gradient(
);--gradient-orange:linear-gradient(
-90deg,
#1c1d20 50%,
#ac5300 68%,
rgba(var(--color-orange), 1) 100%
);
}
.gradient {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-repeat: no-repeat;
}
.gradient-red {
background: var(--gradient-red);
}
.gradient-red-tablet {
background: var(--gradient-red-tablet);
}
.gradient-green {
background: var(--gradient-green);
}
.gradient-blue {
background: var(--gradient-blue);
}
.gradient-tomato {
background: var(--gradient-tomato);
}
.gradient-slate {
background: var(--gradient-slate);
}
.gradient-orange {
background: var(--gradient-orange);
}


html {
scroll-behavior: smooth;
}

body {
background-color: rgba(var(--color-black), 1);
color: rgba(var(--color-white), 1);
font-weight: 500;
font-size: 16px;
font-family: 'Inter Tight', sans-serif;
line-height: 1.5;
letter-spacing: -0.02em;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
)}
.gradient{position:absolute;top:0;left:0;width:100%;height:100%;background-repeat:no-repeat}
.gradient-red{background:var(--gradient-red)}
.gradient-red-tablet{background:var(--gradient-red-tablet)}
.gradient-green{background:var(--gradient-green)}
.gradient-blue{background:var(--gradient-blue)}
.gradient-tomato{background:var(--gradient-tomato)}
.gradient-slate{background:var(--gradient-slate)}
.gradient-orange{background:var(--gradient-orange)}
html{scroll-behavior:smooth}
body{background-color:rgba(var(--color-black), 1);color:rgba(var(--color-white), 1);font-weight:500;font-size:16px;font-family:'Inter Tight',sans-serif;line-height:1.5;letter-spacing:-0.02em;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}
/* Mobile */
.container {
width: 100%;
min-width: 320px;
max-width: 375px;
margin: 0 auto;
padding: 0 16px;
}

@media only screen and (min-width: 375px) {
.container {
max-width: 100%;
}
.container{width:100%;min-width:320px;max-width:375px;margin:0 auto;padding:0 16px}
@media only screen and (min-width: 375px){
.container{max-width:100%}
}
/* Tablet */
@media only screen and (min-width: 768px) {
.container {
max-width: 768px;
padding: 0 32px;
}
@media only screen and (min-width: 768px){
.container{max-width:768px;padding:0 32px}
}

/* Desktop */
@media only screen and (min-width: 1440px) {
.container {
max-width: 1440px;
}
@media only screen and (min-width: 1440px){
.container{max-width:1440px}
}
.arrow{--color:rgba(var(--color-white), 1); position:relative;display:flex;justify-content:center;align-items:center;width:21px;border:1px solid var(--color);border-radius:1px}
.arrow::before,.arrow:after{content:'';position:absolute;right:-0.3px;width:11px;border:1px solid var(--color);border-radius:1px; background: var(--color);transform-origin:right;}
.arrow::before{transform:rotate(45deg)}
.arrow::after{transform:rotate(-45deg)}
.arrow.arrow-left {
transform: rotate(180deg);
}
35 changes: 18 additions & 17 deletions src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,31 @@
.header-container{padding-top:32px;padding-right:16px;padding-left:16px}
.navigation{display:flex;justify-content:space-between;align-items:center}
.header-logo{display:flex;gap:8px;justify-content:space-between;align-items:center}
.burger-menu{position:absolute;top:32px;right:16px;display:flex;flex-direction:column;gap:4px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;border:none;background-color:transparent;line-height:0;cursor:pointer}
.burger-menu::before,.burger-menu::after{content:'';width:21px;height:2px;background-color:rgba(var(--color-white),1);transition:transform 250ms ease-out}
.header-list-menu{display:none;padding:10px; text-decoration: none;transition: color 250ms ease-out;}
.header-list-menu:hover,.header-list-menu:focus {
color:rgba(var(--color-red), 1);
}
.header-list-menu span {position: relative;}
.header-list-menu span:after{content: '';position: absolute;bottom: -2px; left: 0; width: 100%;height: 1px; background: currentColor;}

.burger-menu {position:absolute;top:32px;right:16px;display:flex;flex-direction:column; gap: 4px;justify-content: center; align-items: center;width:28px;height:28px;padding:0;border:none;background-color:transparent;line-height:0;cursor:pointer;}
.burger-menu::before,.burger-menu::after{content:'';width:21px;height: 2px;background-color: rgba(var(--color-white),1);transition: transform 250ms ease-out;}
.header-list-menu{display:none;padding:10px}
.header-list-order{display:none}
.header-dropdown-menu{position:relative;text-decoration:underline;text-decoration-skip-ink:none}
.header-dropdown-menu{position:relative;}
.header-dropdown-menu-content{position:absolute;top:42px;left:50%;z-index:1;display:flex;flex-direction:column;gap:8px;justify-content:space-between;align-items:center;min-width:67px;opacity:1;transition:opacity 250ms ease-out;transform:translateX(-50%)}
.header-dropdown-menu-content.visually-hidden{opacity:0}
.header-dropdown-menu-link{color:#fafafa}
.header-dropdown-menu-link{color:#fafafa;transition: color 250ms ease-out;}
.header-dropdown-menu-link:hover,.header-dropdown-menu-link:focus {
color:rgba(var(--color-red), 1);
}
/* mobil window */
.mobil-menu{position:fixed;top:0;left:0;z-index:99999;display:flex;flex-direction:column;width:100vw;height:100%;padding:32px 16px 64px 16px;background-color:#242527;opacity:0;visibility:hidden;transition:opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),visibility 250ms cubic-bezier(0.4, 0, 0.2, 1)}
.mobil-menu.is-open{opacity:1;visibility:visible}
.mobil-menu-container{position:relative;display:flex;flex-direction:column;justify-content:space-between;height:100%}
.mobil-menu-close-btn {top:0;right:0;}
.is-open .burger-menu::before, .is-open .burger-menu::after{
transition: transform 250ms ease-out;
transform-origin: center;
}
.is-open .burger-menu::before {
transform: rotate(45deg) translate(2px, 2px);
}
.is-open .burger-menu::after{
transform: rotate(-45deg) translate(2px, -2px)
}
.mobil-menu-close-btn{top:0;right:0}
.is-open .burger-menu::before,.is-open .burger-menu::after{transition:transform 250ms ease-out;transform-origin:center}
.is-open .burger-menu::before{transform:rotate(45deg) translate(2px, 2px)}
.is-open .burger-menu::after{transform:rotate(-45deg) translate(2px, -2px)}
.mobil-menu-nav{display:flex;justify-content:center;align-items:center;margin:auto;margin-right:auto;margin-left:auto}
.mobil-menu-nav-item{display:flex;justify-content:center;align-items:center;column-gap:12px}
.mobil-menu-nav-link{color:#fafafa;font-weight:500;font-size:16px;font-family:'Inter Tight',sans-serif;letter-spacing:-0.02em;text-decoration:underline;text-decoration-skip-ink:none}
Expand All @@ -36,7 +37,7 @@
@media only screen and (min-width: 768px){
.header-container{padding-right:32px;padding-left:32px}
.header-list-menu{display:block}
.header-list-order{display:block;min-width:163px;padding:18px 24px;}
.header-list-order{display:block;min-width:163px;padding:18px 24px}
.burger-menu{display:none}
}
@media only screen and (min-width: 1440px){
Expand Down
11 changes: 3 additions & 8 deletions src/css/hero.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
.hero-container{position:relative;z-index:1;display:flex;flex-direction:column;height:100vh;padding:16px}
.hero-page-title{margin:auto;color:#fafafa;font-weight:500;font-size:50px;font-family:'Inter Tight',sans-serif;line-height:1;letter-spacing:-0.08em;text-transform:uppercase}
.hero-container{position:relative;z-index:1;display:flex;flex-direction:column;height:100dvh;padding:16px}
.hero-page-title{margin:auto;color:rgba(var(--color-white),1);font-weight:500;font-size:50px;line-height:1;letter-spacing:-0.08em;text-transform:uppercase}
.hero-contact{display:flex;gap:4px;justify-content:space-between;align-items:center}
.hero-social-list{display:flex;gap:4px;justify-content:space-between;align-items:center}
.hero-social-list-link{display:flex;justify-content:center;align-items:center;width:37px;height:37px;padding:unset}
.hero-contact-mail{display:flex;justify-content:center;align-items:center;padding:10px 12px}
.hero-contact a{font-size:14px;line-height:1;letter-spacing:-0.02em}
@media only screen and (min-width: 375px){

}
@media only screen and (min-width: 768px){
.hero-contact a{font-size:16px;}
.hero-contact-mail{padding:18px 24px}
.hero-social-list-link{width:55px;height:55px}
.hero-container{padding-top:281px;padding-right:32px;padding-bottom:32px;padding-left:32px}
.hero-container{padding-right:32px;padding-left:32px}
.hero-page-title{width:632px;font-size:90px}
.hero-contact{gap:8px;justify-content:flex-end}
/* .hero-social-list-item{padding:18px auto;font-size:16px} */

}
@media only screen and (min-width: 1440px){
.hero-page-title{width:1084px;letter-spacing:-0.08em}
Expand Down
Loading

0 comments on commit 2d62cf9

Please sign in to comment.