Skip to content

Commit

Permalink
feat: add use cases pages
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Artemova <[email protected]>
  • Loading branch information
annaindistress committed Jan 7, 2025
1 parent c0520fe commit 3104ab5
Show file tree
Hide file tree
Showing 33 changed files with 890 additions and 55 deletions.
6 changes: 6 additions & 0 deletions docs/assets/scss/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
@import "home/contact";
@import "home/presentation";
@import "home/distribution";
@import "home/intro";
@import "home/case";

.home {
margin-left: auto;
Expand Down Expand Up @@ -43,6 +45,10 @@
margin-right: auto;
max-width: 1216px;

&--sm {
max-width: 800px;
}

@media (max-width: $desktop) {
padding: 0 40px;
}
Expand Down
77 changes: 77 additions & 0 deletions docs/assets/scss/home/case.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
.case {
padding-top: 235px;
color: #5e636e;

@media (max-width: $tablet) {
padding-top: 200px;
}

@media (max-width: $mobile) {
padding-top: 24px;
}

.container {
padding-inline: 44px;
}

h2 {
max-width: 90%;
margin-top: 65px;
margin-bottom: 20px;
font-weight: 700;
font-size: 28px;
line-height: 1.125;
letter-spacing: -0.56px;
color: #253737;

@media (max-width: $tablet) {
font-size: 24px;
}

@media (max-width: $mobile) {
margin-top: 32px;
}
}

p {
margin-block: 14px;
text-wrap: pretty;
}

ul {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 32px 72px;
margin-top: 28px;

@media (max-width: $mobile) {
grid-template-columns: repeat(1, 1fr);
gap: 24px;
}

img {
width: 56px;
height: 56px;
border-radius: 4px;
overflow: hidden;
}

h3 {
margin-top: 16px;
margin-bottom: 0;
font-size: 20px;
font-weight: 600;
line-height: 1.375;
color: #253737;

@media (max-width: $tablet) {
font-size: 20px;
}
}

p {
margin-top: 6px;
margin-bottom: 0;
}
}
}
111 changes: 111 additions & 0 deletions docs/assets/scss/home/intro.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
.intro {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
padding-top: 58px;
padding-bottom: 254px;
background-color: #f7fdfd;

@media (max-width: $tablet) {
padding-bottom: 200px;
}

@media (max-width: $mobile) {
padding-top: 32px;
padding-bottom: 32px;
}

h1 {
text-align: center;
color: #253737;
}

p {
margin-top: 14px;
margin-inline: auto;
padding-inline: 36px;
text-align: center;
color: #2b383b;
}
}

.intro__video {
position: absolute;
left: 50%;
bottom: -215px;
transform: translateX(-50%);
width: 100%;
max-width: 800px;
max-height: 443px;
padding: 14px;
border-radius: 12px;
border: 1px solid #e0e6f0;
background-color: white;

@media (max-width: $tablet) {
bottom: -180px;
max-width: 600px;
}

@media (max-width: $mobile) {
position: relative;
bottom: 0;
margin-top: 32px;
max-width: 100%;
padding: 8px;
}

.intro__preview,
.intro__video-content {
position: relative;
width: 100%;
height: 0;
padding-top: 53.5%;
border-radius: 4px;
border: 1px solid #deeded;
overflow: hidden;
}

img,
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

img {
object-fit: cover;
}

.intro__preview-button {
position: absolute;
inset: 0;
color: #cfdefc;
background-color: rgba(0, 0, 0, 0.1);
border: none;
transition: all 0.2s ease-out;

&:hover,
&:focus {
color: #ffffff;
transform: scale(1.1);
}

svg {
@media (max-width: $tablet) {
width: 64px;
height: 64px;
}

@media (max-width: $mobile) {
width: 44px;
height: 44px;
}
}
}
}
131 changes: 112 additions & 19 deletions docs/assets/scss/home/videos.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
.videos {
margin-top: 130px;

@media (max-width: $desktop) {
margin-top: 113px;
}
margin-top: 112px;

@media (max-width: $tablet) {
margin-top: 96px;
}

@media (max-width: $mobile) {
margin-top: 85px;
margin-top: 80px;
}

&__title {
display: flex;
justify-content: space-between;
align-items: baseline;
color: #253737;

.videos__small & {
align-items: baseline;
color: #212529;
}

.title {
color: inherit;
}

@media (max-width: $desktop) {
font-size: 36px;
Expand Down Expand Up @@ -53,31 +58,98 @@
}
}

&__list {
&__controls {
display: flex;
gap: 18px;

@media (max-width: $mobile) {
display: none;
}

button {
padding: 0;
color: #253737;
background-color: transparent;
border: none;

&:hover,
&:focus {
color: #5c6d70;
}

&:disabled {
color: #c7c8cb;
}
}
}

&__container {
margin-top: 2.5rem;
overflow: hidden;

@media (max-width: $tablet) {
margin-top: 2rem;
}

@media (max-width: $mobile) {
width: calc(100% + 32px);
margin-inline: -16px;
overflow-x: auto;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;

.videos__small & {
width: 100%;
margin-inline: 0;
}

&::-webkit-scrollbar {
height: 4px;
background-color: #2537371a;
}

&::-webkit-scrollbar-thumb {
background-color: #253737;
border-radius: 4px;
}
}
}

&__list {
display: flex;
justify-content: space-between;
gap: 1.75rem;
gap: 2rem;
transition: transform 0.3s ease-out;

@media (max-width: $tablet) {
margin-top: 2rem;
margin-bottom: 0.5rem;
gap: 1.5rem;
}

@media (max-width: $mobile) {
max-width: 384px;
margin-top: 2rem;
flex-direction: column;
margin-left: auto;
margin-right: auto;
gap: 1rem;
.videos__small & {
flex-direction: column;
}
}

li {
display: flex;
flex: 1 1 0;
flex-direction: column;
flex-shrink: 0;
width: calc((100% - 4rem) / 3);

@media (max-width: $tablet) {
width: calc((100% - 1.5rem) / 2);
}

@media (max-width: $mobile) {
width: 100%;
padding-inline: 12px;
scroll-snap-align: start;

.videos__small & {
padding-inline: 0;
}
}

a {
color: #253737;
Expand All @@ -89,6 +161,12 @@
}
}

img {
width: 100%;
height: 100%;
object-fit: cover;
}

h3 {
margin-top: 1.5rem;
line-height: 1.25;
Expand Down Expand Up @@ -116,14 +194,29 @@
line-height: 1.5;
font-size: 14px;
margin-top: 0.5rem;
color: #5E636E;
margin-bottom: 0;
color: #5e636e;
}

img {
width: 100%;
height: auto;
}
}

.videos__small & {
margin-bottom: 1.5rem;

li {
@media (max-width: $tablet) {
width: calc((100% - 3rem) / 3);
}

@media (max-width: $mobile) {
width: 100%;
}
}
}
}

.button-container {
Expand Down
Loading

0 comments on commit 3104ab5

Please sign in to comment.