Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semantick template #3

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions 03-lection1/01-button/button.css
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
/* Стилизация кнопки */
:root {
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
--background-color: #ACB5BD;
}

.container__buttons {
width: 70%;
height: 500px;
margin: auto;
background-color: var(--background-color);
padding: 30px;
box-sizing: border-box;
display: grid;
grid-template-columns: repeat(2,1fr);
}

.button__position {
align-self: center;
justify-self: center;
}

.button {
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
width: calc(50% - 10px);
height: 48px;
border-radius: 8px;
}
9 changes: 8 additions & 1 deletion 03-lection1/01-button/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
<link rel="stylesheet" href="./button.css">
</head>
<body>

<div class="container__buttons">
<button class="button button__position">Primary</button>
<button class="button button__position"></button>
<button class="button button__position">Secondary</button>
<button class="button button__position"></button>
<button class="button button__position">Alternate</button>
<button class="button button__position"></button>
</div>
</body>
</html>
27 changes: 27 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,30 @@
* {
font-family: 'Roboto', sans-serif;
}

body {
margin: 0;
}

.container {
max-width: 1400px;
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
margin: 0 auto;
padding: 0 15px;
box-sizing: border-box;
}

.container__flex-position {
display: flex;
flex-wrap: wrap;
justify-content: center;
}

.container__flex-position {
display: flex;
flex-wrap: wrap;
justify-content: center;
}

.button_color {
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
background-color: var(--purple);
}
11 changes: 11 additions & 0 deletions components/card/card.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.card {
height: 367px;
left: 165px;
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
top: 305px;

background: #FFFFFF;
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
/* Card Shadow */

box-shadow: 0px 2px 4px rgba(33, 36, 41, 0.05);
border-radius: 12px;
}
22 changes: 22 additions & 0 deletions components/footer/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.footer__title {
font-family: Inter;
font-style: normal;
font-weight: 500;
font-size: 38px;
line-height: 48px;
text-align: center;
/* identical to box height, or 126% */


/* Black */

color: #212429;
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
}

.footer__description {
text-align: center;
width: 640px;
margin: 0 auto 100px auto;
;
}

16 changes: 16 additions & 0 deletions components/header/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

.header__title {
/* h1 */

font-family: Inter;
font-style: normal;
font-weight: 500;
font-size: 50px;
line-height: 64px;
/* identical to box height, or 128% */


/* Black */

color: #212429;
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
}
9 changes: 9 additions & 0 deletions components/main/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.main {
background-color: #ACB5BD;
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
height: auto;
GSemikozov marked this conversation as resolved.
Show resolved Hide resolved
}

.main__card {
margin: 15px;
width: calc(30% - 30px);
}
28 changes: 27 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,34 @@
<html lang="ru">
<head>
<link rel="stylesheet" href="./assets/css/main.css">
<link rel="stylesheet" href="./components/footer/footer.css">
<link rel="stylesheet" href="./components/header/header.css">
<link rel="stylesheet" href="./components/main/main.css">
<link rel="stylesheet" href="./components/card/card.css">
</head>
<body>

<div class="wrapper">
<header class="header">
<div class="container">
<h1 class="header__title">Reusable Component Library</h1>
</div>
</header>
<main class="main">
<div class="container container__flex-position">
<article class="card main__card"></article>
<article class="card main__card"></article>
<article class="card main__card"></article>
<article class="card main__card"></article>
<article class="card main__card"></article>
<article class="card main__card"></article>
</div>
</main>
<footer class="footer">
<div class="container">
<h1 class="footer__title">About</h1>
<p class="footer__description">This project is a collection of professionally designed, pre-built, fully responsive HTML snippets you can drop into your projects. Get started by checking out our free preview components, or browsing the PNG previews in the categories you're most curious about.</p>
</div>
</footer>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"dependencies": {
"husky": "^6.0.0",
"lint-staged": "^10.5.4",
"normalize.css": "^8.0.1",
"prettier": "^2.2.1"
}
}