Skip to content

Commit

Permalink
Menu buttons is done
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickolay.Vinokurov committed Oct 24, 2023
1 parent ca698f2 commit 71fd2d0
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="color-theme" content="dark light"/>
<link rel="stylesheet" href="./fonts/fonts.css">
<link rel="stylesheet" href="./styles/global.css">
<link rel="stylesheet" href="./styles/variables.css">
<link rel="stylesheet" href="./styles/style.css">
<link rel="stylesheet" href="./styles/dark.css">
<link rel="stylesheet" href="./styles/light.css">
<link rel="icon" href="./images/favicon.ico" size="any">
<link rel="icon" href="./images/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="./images/mobile-icon.png">
<title>Сложно сосредоточиться</title>
</head>
<body class="page">
Expand Down Expand Up @@ -34,6 +44,10 @@
</li>
</ul>
</nav>
<div class="rec"></div>
<h1 class="title">
<span class="title_word">no</span> focus
</h1>
</header>
<script src="./scripts/script.js"></script>
</body>
Expand Down
20 changes: 20 additions & 0 deletions styles/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,23 @@
чем стили в медиазапросе предпочтений пользователя
*/
}

.header {
background-image: var(--background_image);
}

.header__theme-menu-button {
color: var(--accent-color);
}

.header__theme-menu-button_active {
border: 1px solid var(--accent-color);
}

.rec {
color: var(--accent-color);
}

.dot {
background-color: var(--accent-color);
}
69 changes: 69 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,73 @@

.page {
/* сохраните в разметке и стилях класс page. На его основе работает скрипт. */
width: 375px;
margin: 0 auto;
}

.header {
display: grid;
background-size: cover;
background-position: 50% 50%;
grid-row: repeat(3, 1fr);
padding: 10px;
}

.header__theme-menu {
justify-self: end;
margin-top: 49px;
}

.header__theme-menu-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 10px;
}

.header__theme-menu-button {
display: inline-block;
width: 100%;
height: 100%;
border: none;
background-color: transparent;
text-transform: lowercase;
font-family: 'IBM Plex Mono', Arial, sans-serif;
font-weight: 400;
line-height: 18px;
font-size: 18px;
min-width: 70px;
min-height: 26px;
padding-bottom: 5px;
}

.rec {
position: absolute;
justify-self: end;
font-family: 'IBM Plex Mono', Arial, sans-serif;
text-transform: uppercase;
font-size: 18px;
font-weight: 400;
line-height: 25px;
}

.rec::before {
content: "rec";
}

.rec::after {
content: '';
display: inline-block;
width: 9px;
height: 9px;
border-radius: 7.5px;
background-color: var(--accent-color);
margin-block-end: 1px;
margin-inline-start: 10px;
margin-inline-end: 9px;
}

.dot {
width: 9px;
height: 9px;
}
4 changes: 4 additions & 0 deletions styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
Переменные для вашего проекта
и их переопределение под различные устройства
*/
:root {
--background_image: url(../images/cover-image-dark.png);
--accent-color: #ff0070;
}

0 comments on commit 71fd2d0

Please sign in to comment.