Skip to content

Nuc designs #17

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

Merged
merged 3 commits into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
13 changes: 10 additions & 3 deletions projectfolder/Design/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
name="viewport"
content="width=device-width, initial-scale=1.0"
/>


<link rel="stylesheet" href="style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap"
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<title>Lisbon Chair Shop</title>
</head>
<body>
Expand Down Expand Up @@ -109,6 +111,11 @@ <h3>The Laid Back</h3>
</ul>
<div class="chair-price">
<strong>250€</strong>
<span>Weighs 22 kg</span>
</li>
</ul>
<div class="chair-price">
<strong>525€</strong>
<a href="#" class="btn btn--small">Add to cart</a>
</div>
</div>
Expand All @@ -134,6 +141,7 @@ <h3>The Worker Bee</h3>
</ul>
<div class="chair-price">
<strong>525€</strong>

<a href="#" class="btn btn--small">Add to cart</a>
</div>
</div>
Expand Down Expand Up @@ -165,7 +173,6 @@ <h3>The Chair 4/2</h3>
</figure>
</div>
</section>

<footer>
Copyright &copy; 2027 by Jonas Schmedtmann. Part of "Build
Responsive Real-World Websites with HTML and CSS" online course.
Expand Down
77 changes: 58 additions & 19 deletions projectfolder/Design/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
*/


/* Main Color: #087f5b
Grey Color: #343a40

*/
:root {
--MainColor: #087f5b;
--SecondaryColor: #343a40;
Expand All @@ -21,6 +26,9 @@ FONT SIZE SYSTEM (px)
/* GENERAL STYLES */
/* ------------------------ */
body {

/* font-family: sans-serif; */

font-family: 'Poppins' sans-serif;
color: var(--SecondaryColor);
border-bottom: 8px solid var(--MainColor);
Expand All @@ -38,12 +46,41 @@ section {

h2 {
margin-bottom: 48px;
font-size: 30px;
letter-spacing: -1px;
}

.grid-3-cols {
display: grid;
grid-template-columns: repeat(3, 1fr);
column-gap: 80px;

}

.btn:link,
.btn:visited {
background-color: #087f5b;
color: #fff;
text-decoration: none;
text-transform: uppercase;

display: inline-block;
font-weight: 500;
}

.btn:hover,
.btn:active {
background-color: #099268;
}

.btn--big {
padding: 16px 32px;
font-size: 18px;
}

.btn--small {
font-size: 14px;
padding: 8px 12px;
}

/* ------------------------ */
Expand All @@ -64,10 +101,17 @@ header {

h1 {
margin-bottom: 24px;
font-size: 44px;
/* / 44 / 52 / 62 / */
line-height: 1.1;
letter-spacing: -2px;
}

.header-text {
margin-bottom: 24px;
/* 16 / 18 / 20 */
font-size: 18px;
line-height: 1.7;
}

img {
Expand All @@ -80,13 +124,19 @@ img {

.features-title {
margin-bottom: 16px;
font-size: 20px;
}

.features-text {
font-size: 18px;
line-height: 1.7;
}

/* TESTIMONIAL */
.testimonial-section {
background-color: #087f5b;
color: white;
padding: 24px;
}

.testimonial-box {
Expand All @@ -96,11 +146,15 @@ img {

.testimonial-box h2 {
margin-bottom: 24px;
/* 20 / 24 / 30 */
font-size: 24px;
}

.testimonial-text {
font-style: italic;
margin-bottom: 24px;
font-size: 18px;
line-height: 1.7;
}

/* CHAIRS */
Expand All @@ -110,6 +164,7 @@ img {

h3 {
margin-bottom: 24px;
font-size: 20px;
}

.chair-details {
Expand All @@ -134,27 +189,11 @@ h3 {
.chair-price {
display: flex;
justify-content: space-between;
font-size: 20px;
}

footer {
margin-bottom: 48px;
}
/* Buttons */

.btn {
text-decoration: none;
}
.btn--big {
border-color: var(--MainColor);
font-size: 18;
padding: 14px 28px;
color: white;
background-color: var(--MainColor);
}
.btn--small {
border-color: var(--MainColor);
font-size: 12;
padding: 14px 28px;
color: white;
background-color: var(--MainColor);
font-size: 14px;
color: #868e96;
}