Skip to content

Commit

Permalink
Improve layout of About section
Browse files Browse the repository at this point in the history
  • Loading branch information
id-andyyy committed Aug 3, 2024
1 parent 1578382 commit 271927c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/html/blocks/about.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section class="about" id="about">
<div class="container">
<div class="about__grid">
<div class="about__content">
<div class="about__title">
<h2 class="about__subheading">Психолог</h2>
<h1 class="about__heading">Татьяна<br>Обрезкова</h1>
Expand All @@ -12,7 +12,7 @@ <h1 class="about__heading">Татьяна<br>Обрезкова</h1>
Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede
justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis
</div>
<div class="about__photo no-select">
<div class="about__photo">
<img src="./img/photos/main-photo.jpg" alt="Фото">
</div>
<div class="about__sign-up sign-up">
Expand Down
30 changes: 18 additions & 12 deletions src/scss/blocks/_about.scss
Original file line number Diff line number Diff line change
@@ -1,46 +1,52 @@
.about {
&__grid {
margin: auto;
margin: 40px 0 0 0;

&__content {
display: grid;
grid-template-areas:
"title photo"
"description photo"
"sign-up photo";
column-gap: 20px;
height: calc(100vh - 100px);
max-height: 832px;
column-gap: adaptive-value(30, 10);

@include tablet {
grid-template-areas:
"title"
"photo"
"description"
"sign-up";
}
}

&__title {
grid-area: title;
font-weight: 600;
margin: 0 0 adaptive-value(25, 15) 0;
}

&__subheading {
font-size: adaptive-value(30, 22);
color: $accent-color;
margin: 0 0 5px 0;
}

&__heading {
font-size: adaptive-value(60, 40);
color: $main-color;
text-transform: uppercase;
}

&__description {
grid-area: description;
font-size: adaptive-value(16, 14);
font-weight: 500;
grid-area: description;
max-width: 540px;
margin: 0 0 adaptive-value(40, 30) 0;
}

&__photo {
grid-area: photo;
height: 100%;
overflow: hidden;
user-select: none;
margin: 0 0 15px 0;

& img {
img {
width: 100%;
height: 100%;
object-fit: cover;
Expand Down
1 change: 1 addition & 0 deletions src/scss/blocks/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
display: inline-block;
width: adaptive-value(51, 42);
margin: 0 26px 0 0;
user-select: none;

& img {
width: 100%;
Expand Down
1 change: 1 addition & 0 deletions src/scss/blocks/_prices.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
width: 100%;
max-width: 374px;
height: 281px;
user-select: none;

@include tablet {
max-width: 80%;
Expand Down

0 comments on commit 271927c

Please sign in to comment.