Skip to content

Commit

Permalink
Add favicon, improve styles for header
Browse files Browse the repository at this point in the history
  • Loading branch information
id-andyyy committed Aug 4, 2024
1 parent 7c063dc commit dc61d48
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 25 deletions.
2 changes: 1 addition & 1 deletion docs/css/style.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions docs/img/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Психолог Татьяна Обрезкова</title>
<link rel="icon" href="./img/favicon.svg" type="image/svg+xmln">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css">
<link rel="stylesheet" href="./css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
Expand Down
9 changes: 9 additions & 0 deletions src/img/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 20 additions & 23 deletions src/scss/blocks/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,41 +144,38 @@

&__item {
text-align: center;

& a {
position: relative;

&::before {
content: "";
position: absolute;
width: 100%;
height: 1.5px;
background-color: $main-color;
bottom: -2.5px;
left: 0;
transform-origin: right;
transition: transform 0.3s ease-in-out;
transform: scaleX(0);
}
@media (hover: hover) {
&:hover::before {
transform-origin: left;
transform: scaleX(1);
}
}
}
}

&__link {
font-size: 16px;
font-weight: 500;
color: $main-color;
transition: all 0.2s;
position: relative;

@include laptop {
color: $light-color;
font-size: 30px;
}

&::before {
content: "";
position: absolute;
width: 100%;
height: 1.3px;
background-color: $main-color;
bottom: -2.5px;
left: 0;
transform-origin: right;
transition: transform 0.3s ease-in-out;
transform: scaleX(0);
}
@media (hover: hover) {
&:hover::before {
transform-origin: left;
transform: scaleX(1);
}
}
}
}

Expand Down

0 comments on commit dc61d48

Please sign in to comment.