bug fixes
This commit is contained in:
commit
516ccef18c
BIN
fonts/Heebo-Bold.woff2
Normal file
BIN
fonts/Heebo-Bold.woff2
Normal file
Binary file not shown.
BIN
fonts/Heebo-Light.woff2
Normal file
BIN
fonts/Heebo-Light.woff2
Normal file
Binary file not shown.
BIN
fonts/Yantramanav-Bold.woff2
Normal file
BIN
fonts/Yantramanav-Bold.woff2
Normal file
Binary file not shown.
3
icons/arrow-right-down.svg
Normal file
3
icons/arrow-right-down.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M79.9921 16.6044L63.5407 0.152992L63.5407 51.9039L11.6368 7.62939e-06L0 11.6369L51.9038 63.5317H0.152985L16.6124 79.9921H79.9921V16.6044Z" fill="white"/>
|
||||
</svg>
|
After Width: | Height: | Size: 266 B |
8
icons/burger-icon.svg
Normal file
8
icons/burger-icon.svg
Normal file
@ -0,0 +1,8 @@
|
||||
<svg width="23" height="12" viewBox="0 0 23 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0.5 1H22.5" stroke="white" stroke-dasharray="22 22"/>
|
||||
<path d="M0.5 1H22.5" stroke="white" stroke-dasharray="22 22"/>
|
||||
<path d="M0.5 6H22.5" stroke="white" stroke-dasharray="22 22"/>
|
||||
<path d="M0.5 6H22.5" stroke="white" stroke-dasharray="22 22"/>
|
||||
<path d="M0.5 11H22.5" stroke="white" stroke-dasharray="22 22"/>
|
||||
<path d="M0.5 11H22.5" stroke="white" stroke-dasharray="22 22"/>
|
||||
</svg>
|
After Width: | Height: | Size: 489 B |
BIN
images/Logo_Campfire_256x256.png
Normal file
BIN
images/Logo_Campfire_256x256.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
BIN
images/logo.png
Normal file
BIN
images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 221 KiB |
77
index.html
Normal file
77
index.html
Normal file
@ -0,0 +1,77 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Campfire Staff</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<a href="/" class="header-logo">
|
||||
<p class="header-logo-text">Campfire <span class="header-logo-staff">.Staff</span> </p>
|
||||
</a>
|
||||
<nav class="header-menu">
|
||||
<ul class="header-menu-list">
|
||||
<li class="header-menu-item">
|
||||
<a href="/" class="header-menu-link is-current">Home</a>
|
||||
</li>
|
||||
<li class="header-menu-item">
|
||||
<a href="/" class="header-menu-link">Downloads</a>
|
||||
</li>
|
||||
<li class="header-menu-item">
|
||||
<a href="/" class="header-menu-link">Portfolio</a>
|
||||
</li>
|
||||
<li class="header-menu-item">
|
||||
<a href="/" class="header-menu-link">Members</a>
|
||||
</li>
|
||||
<li class="header-menu-item">
|
||||
<a href="/" class="header-menu-link">Shop</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="header-actions">
|
||||
<button class="header-login-button button" type="button" title="Войти в существующий аккаунт">
|
||||
<span class="visually-hidden">Войти в аккаунт</span>
|
||||
Login
|
||||
</button>
|
||||
<button class="header-signup-button button" type="button" title="Создать новый аккаунт">
|
||||
<span class="visually-hidden">Создать свой аккаунт</span>
|
||||
Sign Up
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
<main class="content">
|
||||
<h1 class="visually-hidden">Campfire Staff</h1>
|
||||
<section class="banner">
|
||||
<h2 class="visually-hidden">New projects</h2>
|
||||
<div class="banner-body">
|
||||
<div class="banner-info">
|
||||
\ What is...
|
||||
</div>
|
||||
<h3 class="banner-title">Campfire</h3>
|
||||
|
||||
</div>
|
||||
<div class="banner-pagination">
|
||||
<ul class="banner-pagination-list">
|
||||
<li class="banner-pagination-item">
|
||||
<button class="banner-pagination-button" type="button"></button>
|
||||
</li>
|
||||
<li class="banner-pagination-item">
|
||||
<button class="banner-pagination-button" type="button"></button>
|
||||
</li>
|
||||
<li class="banner-pagination-item">
|
||||
<button class="banner-pagination-button" type="button"></button>
|
||||
</li>
|
||||
<li class="banner-pagination-item">
|
||||
<button class="banner-pagination-button" type="button"></button>
|
||||
</li>
|
||||
<li class="banner-pagination-item">
|
||||
<button class="banner-pagination-button is-current" type="button"></button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
43
normalize.css
vendored
Normal file
43
normalize.css
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
html, body, div, span, applet, object, iframe,
|
||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||
a, abbr, acronym, address, big, cite, code,
|
||||
del, dfn, em, img, ins, kbd, q, s, samp,
|
||||
small, strike, strong, sub, sup, tt, var,
|
||||
b, u, i, center,
|
||||
dl, dt, dd, ol, ul, li,
|
||||
fieldset, form, label, legend,
|
||||
table, caption, tbody, tfoot, thead, tr, th, td,
|
||||
article, aside, canvas, details, embed,
|
||||
figure, figcaption, footer, header, hgroup,
|
||||
menu, nav, output, ruby, section, summary,
|
||||
time, mark, audio, video {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 100%;
|
||||
font: inherit;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
/* HTML5 display-role reset for older browsers */
|
||||
article, aside, details, figcaption, figure,
|
||||
footer, header, hgroup, menu, nav, section {
|
||||
display: block;
|
||||
}
|
||||
body {
|
||||
line-height: 1;
|
||||
}
|
||||
ol, ul {
|
||||
list-style: none;
|
||||
}
|
||||
blockquote, q {
|
||||
quotes: none;
|
||||
}
|
||||
blockquote:before, blockquote:after,
|
||||
q:before, q:after {
|
||||
content: '';
|
||||
content: none;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
335
styles.css
Normal file
335
styles.css
Normal file
@ -0,0 +1,335 @@
|
||||
@import url(normalize.css);
|
||||
@import url(variables.css);
|
||||
|
||||
@font-face {
|
||||
font-family: 'Heebo';
|
||||
src: url(./fonts/Heebo-Light.woff2) format('woff2');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Heebo';
|
||||
src: url(./fonts/Heebo-Bold.woff2) format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Yantramanav';
|
||||
src: url(./fonts/Yantramanav-Bold.woff2) format('woff2');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
font-family: var(--font-family-base);
|
||||
font-size: 16px;
|
||||
line-height: 1.75;
|
||||
|
||||
color: var(--color-light-gray);
|
||||
background-color: var(--color-dark);
|
||||
}
|
||||
|
||||
|
||||
.container {
|
||||
max-width: calc(var(--container-width) + var(--container-padding-x) * 2);
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--container-padding-x);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-light);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a,
|
||||
button,
|
||||
input,
|
||||
textarea,
|
||||
svg * {
|
||||
transition-duration: var(--transition-duration);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--color-light-gray)
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
column-gap: 20px;
|
||||
}
|
||||
|
||||
.header-logo-text {
|
||||
position: relative;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
font-size: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.header-logo-text::before {
|
||||
position: absolute;
|
||||
top: 7px;
|
||||
left: -28px;
|
||||
|
||||
content: '';
|
||||
display: block;
|
||||
width: 22px;
|
||||
aspect-ratio: 1;
|
||||
background: url(images/Logo_Campfire_256x256.png) center/contain no-repeat;
|
||||
}
|
||||
|
||||
.header-logo-staff {
|
||||
text-transform: none;
|
||||
font-weight: 100;
|
||||
color: var(--color-light-gray)
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
column-gap: 20px;
|
||||
|
||||
min-height: var(--header-height);
|
||||
|
||||
padding-inline: clamp(20px, 5.2vw, 150px);
|
||||
|
||||
background-color: var(--color-dark-alternate-2);
|
||||
}
|
||||
|
||||
.header-menu-list {
|
||||
display: flex;
|
||||
column-gap: 50px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.header-menu-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
column-gap: 7px;
|
||||
height: var(--header-height);
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
font-weight: 700;
|
||||
font-size: 12px;
|
||||
letter-spacing: 1.2px;
|
||||
}
|
||||
|
||||
.header-menu-link.is-current::after {
|
||||
content: '';
|
||||
width: 5px;
|
||||
aspect-ratio: 1;
|
||||
background-color: currentColor;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 38px;
|
||||
padding-inline: 26px;
|
||||
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 2;
|
||||
letter-spacing: 1.2px;
|
||||
text-transform: uppercase;
|
||||
|
||||
background-color: var(--color-light);
|
||||
border: none;
|
||||
border-radius: var(--border-radius);
|
||||
|
||||
white-space: nowrap;
|
||||
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.button:not(.header-signup-button):hover {
|
||||
background-color: var(--color-light-gray);
|
||||
}
|
||||
|
||||
.header-signup-button {
|
||||
background-color: transparent;
|
||||
color: var(--color-light);
|
||||
border: 1px solid var(--color-light);
|
||||
}
|
||||
|
||||
.header-signup-button:hover {
|
||||
border: 1px solid var(--color-light-gray);
|
||||
color: var(--color-light-gray);
|
||||
}
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute !important;
|
||||
width: 1px !important;
|
||||
height: 1px !important;
|
||||
margin: -1px !important;
|
||||
border: 0 !important;
|
||||
padding: 0 !important;
|
||||
white-space: nowrap !important;
|
||||
clip-path: inset(100%) !important;
|
||||
clip: rect(0 0 0 0) !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.banner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: end;
|
||||
min-height: calc(95vh - var(--header-height));
|
||||
padding: 36px 70px;
|
||||
color: var(--color-light);
|
||||
background-color: var(--color-dark-alternate);
|
||||
user-select: none;
|
||||
row-gap: 20px;
|
||||
}
|
||||
|
||||
.banner-body {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.banner-info {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
|
||||
font-size: clamp(16px, 1.56vw, 30px);
|
||||
line-height: 1.27;
|
||||
font-weight: 700;
|
||||
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.banner-info::before {
|
||||
content: '';
|
||||
width: clamp(60px, 10.1vw, 194px);
|
||||
aspect-ratio: 1;
|
||||
margin-right: 30px;
|
||||
background: url(icons/arrow-right-down.svg) center/contain no-repeat;
|
||||
}
|
||||
|
||||
.banner-title {
|
||||
font-size: min(15.62vw, 300px);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.banner-title::after {
|
||||
content: '?';
|
||||
font-size: 0.5em;
|
||||
margin-left: clamp(5px, 2vh, 30px);
|
||||
color: var(--color-dark-alternate-2);
|
||||
}
|
||||
|
||||
.banner-pagination-list {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
column-gap: 10px;
|
||||
}
|
||||
|
||||
.banner-pagination-item {
|
||||
display: flex;
|
||||
border-radius: 20%;
|
||||
transition-duration: var(--transition-duration);
|
||||
}
|
||||
.banner-pagination-item:hover {
|
||||
background-color: var(--color-dark-alternate-2);
|
||||
}
|
||||
|
||||
.banner-pagination-button {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
padding: 14px;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
|
||||
}
|
||||
|
||||
.banner-pagination-button.is-current::after {
|
||||
background-color: var(--color-light);
|
||||
}
|
||||
|
||||
.banner-pagination-button::after {
|
||||
content: '';
|
||||
width: 10px;
|
||||
aspect-ratio: 1;
|
||||
|
||||
border: var(--border);
|
||||
border-radius: var(--border-radius);
|
||||
|
||||
transition-duration: var(--transition-duration);
|
||||
|
||||
}
|
||||
|
||||
.banner-pagination-button:not(.is-current):hover::after {
|
||||
border-color: var(--color-light-gray);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@media (max-width: 1070px) {
|
||||
|
||||
.header {
|
||||
flex-wrap: wrap;
|
||||
padding-top: 10px;
|
||||
row-gap: 10px;
|
||||
}
|
||||
|
||||
.header,
|
||||
.banner {
|
||||
padding-inline: 5.2vw;
|
||||
}
|
||||
|
||||
.header-menu {
|
||||
order: 1;
|
||||
flex-basis: 100%;
|
||||
}
|
||||
|
||||
.header-menu-link {
|
||||
height: 50px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@media (max-width: 540px) {
|
||||
.header-menu-link {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.header-menu-list {
|
||||
column-gap: 24px;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
column-gap: 10px;
|
||||
}
|
||||
|
||||
.button {
|
||||
padding-inline: 10px;
|
||||
}
|
||||
|
||||
.header-logo-text {
|
||||
font-size: 20px;
|
||||
}
|
||||
.banner-info::before {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
23
variables.css
Normal file
23
variables.css
Normal file
@ -0,0 +1,23 @@
|
||||
:root {
|
||||
--color-dark: #000000;
|
||||
--color-dark-alternate: #131619;
|
||||
--color-dark-alternate-2: #0d0f11;
|
||||
--color-light: #FFFFFF;
|
||||
--color-dark-gray: #404040;
|
||||
--color-light-gray: #c4c4c4;
|
||||
|
||||
--border-radius: 30px;
|
||||
--border: 1px solid var(--color-light);
|
||||
|
||||
--font-family-base: 'Heebo', sans-serif;
|
||||
--font-family-accent: 'Yantramanav', sans-serif;
|
||||
|
||||
--input-height: 54px;
|
||||
|
||||
--container-width: 1300px;
|
||||
--container-padding-x: 15px;
|
||||
|
||||
--transition-duration: 0.2s;
|
||||
|
||||
--header-height: 90px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user