-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49c35a4
commit 30f810e
Showing
2 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png"> | ||
<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=Outfit:wght@400;700&display=swap" rel="stylesheet"> | ||
<title>QR Code Component | Daniel Ervanda</title> | ||
</head> | ||
<body> | ||
<main class="card"> | ||
<img src="./images/image-qr-code.png" class="card__image" alt="QR code"> | ||
<h1 class="card__title">Improve your front-end skills by building projects</h1> | ||
<p class="card__description">Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
:root { | ||
--white: hsl(0, 0%, 100%); | ||
--light-gray: hsl(212, 45%, 89%); | ||
--grayish-blue: hsl(220, 15%, 55%); | ||
--dark-blue: hsl(218, 44%, 22%); | ||
} | ||
|
||
*, *::after, *::before { | ||
padding: 0; | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
display: flex; | ||
min-height: 100vh; | ||
background-color: var(--light-gray); | ||
font-family: 'Outfit', arial, sans-serif; | ||
font-size: .9375rem /* 15px */ ; | ||
} | ||
|
||
.card { | ||
display: flex; | ||
flex-direction: column; | ||
margin: auto; | ||
background-color: var(--white); | ||
width: 18.75rem /* 300px */ ; | ||
padding: 1rem /* 16px */ ; | ||
border-radius: 1.25rem /* 20px */ ; | ||
box-shadow: 0 10px 15px rgb(0, 0, 0, .05); | ||
} | ||
|
||
.card__image { | ||
display: block; | ||
width: 100%; | ||
height: auto; | ||
margin-bottom: 1.75rem /* 28px */ ; | ||
border-radius: .625rem /* 10px */ ; | ||
} | ||
|
||
.card__title, .card__description { | ||
text-align: center; | ||
margin: 0 .625rem /* 10px */ ; | ||
} | ||
|
||
.card__title { | ||
color: var(--dark-blue); | ||
font-size: 1.25rem /* 20px */ ; | ||
font-weight: 700; | ||
margin-bottom: 1.125rem /* 18px */ ; | ||
} | ||
|
||
.card__description { | ||
font-weight: 400; | ||
color: var(--grayish-blue); | ||
margin-bottom: 1.25rem /* 20px */ ; | ||
} |