Merge pull request #5 from ifraimka1/fix/styles

Fix/styles
This commit is contained in:
Ifraim Solomonov authored and GitHub committed 2024-02-27 15:51:59 +03:00
commit d67b5cb672
11 files changed
+50 -28

No files matched your search

+4 -4
View File
@@ -3,12 +3,12 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
height: 242px; height: 160px;
padding: 0 10%; padding: 0 10%;
background: #222222; background: #222222;
.logo-container { .logo-container {
height: 90px; height: 80px;
max-width: 30%; max-width: 30%;
.logo { .logo {
@@ -19,9 +19,9 @@
.contacts { .contacts {
color: white; color: white;
font-size: 20px; font-size: 18px;
font-weight: 400; font-weight: 400;
line-height: 24px; line-height: 22px;
} }
.links { .links {
+1 -1
View File
@@ -5,7 +5,7 @@ $primary-text-color: white;
position: absolute; position: absolute;
top: 0; top: 0;
width: 80%; width: 80%;
height: 80px; height: 60px;
max-height: 80px; max-height: 80px;
padding: 1em 10%; padding: 1em 10%;
background: $primary-bg-color; background: $primary-bg-color;
+2 -1
View File
@@ -9,6 +9,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
transition: transform 0.5s ease-in-out; transition: transform 0.5s ease-in-out;
margin: 0 auto;
& .slide { & .slide {
flex: 1 0 100%; flex: 1 0 100%;
@@ -17,7 +18,7 @@
& .slide-image { & .slide-image {
display: flex; display: flex;
width: 80%; height: 60vh;
margin: 0 auto; margin: 0 auto;
border-radius: 8px; border-radius: 8px;
} }
@@ -7,8 +7,8 @@
align-items: center; align-items: center;
height: 100%; height: 100%;
width: calc(100% - 10% + 60px); width: calc(100% - 30% + 60px);
left: calc(5% - 30px); left: calc(15% - 30px);
margin: 0 auto; margin: 0 auto;
color: white; color: white;
@@ -2,14 +2,14 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
gap: 40px; gap: 60px;
.half { .half {
flex: 50%; flex: 1 1 50%;
} }
.contact-form { .contact-form {
padding: 32px; padding: 24px 26px;
border-radius: 16px; border-radius: 16px;
background-color: #EDEDED; background-color: #EDEDED;
@@ -17,27 +17,27 @@
h2 { h2 {
margin-top: 0; margin-top: 0;
font-size: 32px; font-size: 26px;
font-weight: 500; font-weight: 500;
line-height: 39px; line-height: 30px;
} }
.inputs { .inputs {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 24px; gap: 16px;
.field { .field {
padding: 15px 24px; padding: 12px 16px;
border: none; border: none;
border-radius: 8px; border-radius: 8px;
font-size: 20px; font-size: 16px;
font-weight: 400; font-weight: 400;
} }
.field.big { .field.big {
height: 272px; height: 200px;
line-height: 30px; line-height: 30px;
resize: none; resize: none;
} }
@@ -60,12 +60,13 @@
cursor: pointer; cursor: pointer;
.icon { .icon {
margin-right: 8px; margin-right: 6px;
height: 22px;
} }
span { span {
display: inline-block; display: inline-block;
font-size: 20px; font-size: 18px;
} }
} }
} }
@@ -77,6 +78,10 @@
.submit { .submit {
width: 100%; width: 100%;
cursor: pointer; cursor: pointer;
padding: 12px;
font-size: 18px;
line-height: normal;
} }
} }
} }
@@ -25,6 +25,12 @@ const mock = [
{ {
image: scb, image: scb,
}, },
{
image: porsche,
},
{
image: scb,
},
]; ];
function Partners({ partners = mock }) { function Partners({ partners = mock }) {
@@ -35,6 +41,7 @@ function Partners({ partners = mock }) {
autoplay autoplay
autoplaySpeed={6} autoplaySpeed={6}
speed={1} speed={1}
margin={32}
> >
{ partners.map(item => <PartnersLogo partner={ item } />) } { partners.map(item => <PartnersLogo partner={ item } />) }
</ScrollCarousel> </ScrollCarousel>
@@ -8,9 +8,13 @@
} }
.scroll-carousel-viewport { .scroll-carousel-viewport {
height: 200px;
.scroll-carousel-slider {
height: 100%;
.partner { .partner {
height: 256px; height: 100%;
aspect-ratio: 1; aspect-ratio: 1;
border-radius: 100%; border-radius: 100%;
background: #D9D9D9; background: #D9D9D9;
@@ -23,4 +27,5 @@
} }
} }
} }
}
} }
@@ -22,7 +22,11 @@ const mock = [
link: "/projects", link: "/projects",
}, },
{ {
image: project, image: comBattle,
link: "/projects",
},
{
image: comBattle,
link: "/projects", link: "/projects",
}, },
]; ];
@@ -4,18 +4,17 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
row-gap: 32px; gap: 32px;
.card:first-of-type { .card:nth-child(-n + 2) {
width: 100%; flex: 1.5 1 40%;
aspect-ratio: 3;
} }
.card { .card {
display: block; display: block;
position: relative; position: relative;
width: calc(100%/3 - 16px); flex: 1 0.5 30%;
aspect-ratio: 3/2; height: 250px;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
-1
View File
@@ -19,7 +19,6 @@ function Root() {
<div id="page"> <div id="page">
<Outlet /> <Outlet />
</div> </div>
<UsersWP contacts={ contacts } />
<Footer /> <Footer />
</> </>
); );
+2
View File
@@ -47,6 +47,8 @@ $btn-dark: #585858;
font-size: 36px; font-size: 36px;
font-weight: 600; font-weight: 600;
line-height: 44px; line-height: 44px;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
} }
.heading { .heading {