Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravgorane authored Feb 28, 2024
1 parent 0d5f2b9 commit a88c360
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 75 deletions.
87 changes: 12 additions & 75 deletions Qr_Code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,93 +8,30 @@
<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:[email protected]&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<title>Frontend Mentor | QR code component</title>

<style>
:root {
--White: hsl(0, 0%, 100%);
--Light_gray: hsl(212, 45%, 89%);
--Grayish_blue: hsl(220, 15%, 55%);
--Dark_blue: hsl(218, 44%, 22%);
}

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

body {
font-family: 'Outfit', sans-serif;
background-color: var(--Light_gray);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-size: 15px;
flex-direction: column;
}

.card{
background-color: var(--White);
padding: 18px;
border-radius: 17px;
text-align: center;
margin: 1rem;
box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
}

.container {
max-width: 360px;
margin: 0 auto;
}

.card img {
width: 100%;
border-radius: 12px;
}

.text{
padding: 22px 10px;
}

.text h2{
color: var(--Dark_blue);
padding-bottom: 15px;
}

.text p{
color: var(--Grayish_blue);
}

.attribution {
font-size: 11px;
text-align: center;
}

.attribution a {
color: hsl(228, 45%, 44%);
}
</style>

</head>

<body>

<div class="container">
<main>
<div class="card">
<img src="images/image-qr-code.png" alt="Qr-Code Image">
<img src="images/image-qr-code.png" alt="Qr Code">
<div class="text">
<h2>Improve your front-end skills by building projects</h2>
<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>
</main>

<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/gauravgorane">Gaurav Gorane</a>.
</div>
<footer>
<div class="attribution">
<p>
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. Coded by <a href="https://github.com/gauravgorane">Gaurav Gorane</a>.
</p>
</div>
</footer>

</body>

Expand Down
67 changes: 67 additions & 0 deletions Qr_Code/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
--White: hsl(0, 0%, 100%);
--Light_gray: hsl(212, 45%, 89%);
--Grayish_blue: hsl(220, 15%, 55%);
--Dark_blue: hsl(218, 44%, 22%);
}

html{
font-size: 62.5%;
}

body {
background-color: var(--Light_gray);
font-family: 'Outfit', sans-serif;
font-size: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
min-height: 100vh;
padding: 1rem;
text-align: center;
}

.card {
background-color: var(--White);
max-width: 36rem;
padding: 1.8rem;
border-radius: 17px;
box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
}

.card img {
display: block;
max-width: 100%;
border-radius: 12px;
}

.text {
padding: 22px 10px;
}

.text h1 {
font-size: 2.5rem;
color: var(--Dark_blue);
padding-bottom: 12px;
}

.text p {
color: var(--Grayish_blue);
font-size: 1.63rem;
}

.attribution {
font-size: 1.1rem;
margin-top: 1rem;
}

.attribution a {
color: hsl(228, 45%, 44%);
}

0 comments on commit a88c360

Please sign in to comment.