Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecloete committed Nov 30, 2023
0 parents commit be782a3
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 0 deletions.
Binary file added images/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image-qr-code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!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">

<title>Frontend Mentor | QR code component</title>

</head>
<body>
<div class="container">
<div class="card">
<img src="images/image-qr-code.png" alt="www.frontendmentor.io">
<h1>Improve your front-end skills by building projects</h1>

<p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
</div>
</div>

<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://github.com/kylecloete">Kyle Cloete</a>.
</div>
</body>
</html>
64 changes: 64 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body{
font-family: Outfit;
font-size: 15px;
background-color: hsl(212, 45%, 89%);
}
.container{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}

.card {
padding: 1rem;
width: 225px;
background-color: hsl(0, 0%, 100%);
border-radius: 1.5rem;
text-align: center;
box-shadow: 5px 5px 25px hsla(218, 44%, 22%, 0.2);
}
img {
width: 100%;
border-radius: 0.75rem;
}

h1{
padding-top: 1rem;
font-size: 1rem;
color: hsl(218, 44%, 22%);
}
p {
padding: 1rem 0;
font-size: 0.75rem;
color: hsl(220, 15%, 55%);
}

.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }

/* Mobile friendly version */
@media screen and (max-width: 640px){
body{
font-size: 30px;
}

.card {
width: 350px;
}

h1{
font-size: 1.75rem;
}
p {
font-size: 1.25rem;
}
}

0 comments on commit be782a3

Please sign in to comment.