Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kondratiukD committed May 29, 2024
1 parent f65031a commit 2d21bdd
Show file tree
Hide file tree
Showing 57 changed files with 1,295 additions and 821 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"liveServer.settings.port": 5501
}
}
5 changes: 0 additions & 5 deletions README.md

This file was deleted.

55 changes: 55 additions & 0 deletions SCSS/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
*,
*::before,
*::after {
box-sizing: border-box;
}

body {
color: var(--color-brand-dark);
font-family: 'Roboto', 'Play1', 'Play2', sans-serif;
font-size: 18px;
font-weight: 400;
line-height: 1.2;
margin: 0;
background-color: var(--color-primare-light);
}

address {
font-style: normal;
}

ul {
margin: 0;
padding: 0;
list-style-type: none;
}

p {
color: var(--color-brand-dark);
}

h1 {
font-family: 'Play1', sans-serif;
}

h2 {
font-family: 'Play2', sans-serif;
}

h3 {
font-family: 'Roboto', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
margin-top: 0;
}

a {
display: inline-block; /* для того щоб блок не розтягувався на всю ширину */
}
8 changes: 8 additions & 0 deletions SCSS/components/_address-icon.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.address-icon {
fill: var(--color-primare-light);
transition: color 0.2s;
}

.address-icon:hover {
fill: var(--color-brand-light);
}
18 changes: 18 additions & 0 deletions SCSS/components/_buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.button {
width: 219px;
height: 53px;
padding: 16px 32px;
margin-bottom: 8px;
color: var(--color-primare-light);
background-color: var(--color-brand-light);
border: 2px solid var(--color-brand-light);
border-radius: 32px;
cursor: pointer;
font-weight: 600;
transition: color 0.2s;
}

.button:hover {
color: var(--color-brand-dark);
background-color: transparent;
}
26 changes: 26 additions & 0 deletions SCSS/components/_carousel-button.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
.carousel-button {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 44px;
height: 44px;
padding: 0;
fill: var(--color-brand-dark); /* .carousel-arrow (наслідування) */
background-color: transparent;
border-radius: 50%;
border: 1px solid var(--color-brand-dark);
cursor: pointer;
}

.carousel-button:hover {
background-color: var(--color-brand-light);
fill: var(
--color-primare-light
); /* .carousel-button:hover .carousel-arrow (наслідування) */
border: 1px solid var(--color-primare-light);
}

.carousel-button.next {
transform: rotate(180deg);
}
40 changes: 40 additions & 0 deletions SCSS/components/_format-card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.format-card {
transition: transform 0.2s;

&:hover {
transform: scale(1.05);
}

&__container {
position: relative;
display: flex;
height: 456px;
padding: 372px 77px 32px 115px;
color: var(--color-primare-light);
font-size: 22px;
font-weight: 400;
background-image: linear-gradient(
180deg,
rgba(1, 28, 68, 0) 0%,
rgba(1, 28, 68, 0.73) 72.58%,
var(--color-brand-dark) 100%
);
border: 1px solid lightgray;
border-radius: 4px 120px 4px 120px;
overflow: hidden;

@media screen and (min-width: $bp-tablet) {

}
}

&__image {
position: absolute;
z-index: -1;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}

33 changes: 33 additions & 0 deletions SCSS/components/_input.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.input {
&__label {
position: absolute;
top: 18px;
left: 32px;
}

&__control {
padding: 18px 32px;
width: 100%;
font-size: 13px;
border: 2px solid var(--color-secondary-light);
border-radius: 32px;
background-color: transparent;

&:focus {
background-color: var(--color-secondary-light);
outline: none;
}

&::placeholder {
color: var(--color-primare-light);
font-size: 13px;
}
}
}







10 changes: 10 additions & 0 deletions SCSS/components/_links.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.link {
color: var(--color-brand-dark);
text-decoration: none;
transition: color 0.2s;
}

.link:hover {
color: var(--color-brand-light);
font-weight: 600;
}
17 changes: 17 additions & 0 deletions SCSS/components/_pagination.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 32px;

&__button {
width: 11px;
height: 11px;
background-color: var(--color-secondary-light);
border-radius: 50%;

&--active {
background-color: var(--color-brand-light);
}
}
}
142 changes: 142 additions & 0 deletions SCSS/layouts/_about-section.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
.about-section {
margin-bottom: 0;

@media screen and (min-width: $bp-desktop) {
margin-bottom: 180px;
}

&__container {

@media screen and (min-width: $bp-desktop) {
display: flex;
gap: 32px;
}
}

&__content {
position: relative;
max-width: 710px;
margin-bottom: 6px;

@media screen and (min-width: $bp-desktop) {
max-width: 710px;
}
}

&__item {
margin-bottom: 16px;
font-size: 18px;
line-height: 1.1;

@media screen and (min-width: $bp-tablet) {
margin-bottom: 40px;
font-size: 22px;
line-height: 1.7;
}

&:last-child {
margin-bottom: 0;
}
}

&__images {
display: none;
box-shadow: 0px 4px 4px 0px #A8C6F5;

@media screen and (min-width: $bp-desktop) {
display: block;
position: relative;
}

&-list {
position: absolute;
left: 750px;
top: -440px;
}
}

&__list {
position: absolute;
left: -2px;
top: -58px;
}

&__img-before {
border-radius: 50%;
width: 327px;
height: 327px;
object-fit: cover;
}

&__img-after {
position: absolute;
top: 370px;
left: 172px;
border-radius: 50%;
width: 327px;
height: 327px;
object-fit: cover;
}

&__icon-dark {
position: absolute;
top: 360px;
left: 110px;
fill: var(--color-brand-dark);
animation-name: spin;
animation-duration: 1s;
animation-iteration-count: infinite;
}

&__icon-dark-second {
position: absolute;
right: 22px;
width: 40px;
height: 40px;
fill: var(--color-brand-dark);
animation-name: spin;
animation-duration: 1s;
animation-iteration-count: infinite;

@media screen and (min-width: $bp-tablet) {
width: 64px;
height: 64px;
right: 22px;
}

@media screen and (min-width: $bp-desktop) {
display: none;
}
}

&__icon-light {
position: absolute;
top: 60px;
left: 485px;
fill: var(--color-brand-light);
animation-name: spin;
animation-duration: 1s;
animation-iteration-count: infinite;
}

&__icon-mini {
position: absolute;
top: 280px;
left: 490px;
fill: var(--color-secondary-light);
animation-name: spin;
animation-duration: 1s;
animation-iteration-count: infinite;
}
}


@keyframes spin {
0% {
transform: rotate(0);
}

100% {
transform: rotate(360deg);
}
}
Loading

0 comments on commit 2d21bdd

Please sign in to comment.