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 Apr 4, 2024
1 parent 1d1cc80 commit 1d86785
Show file tree
Hide file tree
Showing 3 changed files with 211 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions Single_price_grid_component/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">

<title>Frontend Mentor | Single Price Grid Component</title>

</head>
<body>

<main>
<div class="container">

<div class="join">
<h1 class="title1">Join our community</h1>
<p class="summ1">30-day, hassle-free money back guarantee</p>
<p class="desc1">Gain access to our full library of tutorials along with expert code reviews. Perfect for any developers who are serious about honing their skills.</p>
</div>

<div class="subscription">
<h2 class="title2">Monthly Subscription</h2>
<div class="price">
<p class="summ2">$29<span> per month </span></p>
<p class="desc2">Full access for less than $1 a day</p>
</div>
<button class="btn">Sign Up</button>
</div>

<div class="why">
<h2 class="title3">Why Us</h2>
<ul class="desc3">
<li>Tutorials by industry experts</li>
<li>Peer & expert code review</li>
<li>Coding exercises</li>
<li>Access to our GitHub repos</li>
<li>Community forum</li>
<li>Flashcard decks</li>
<li>New videos every week</li>
</ul>
</div>

</div>
</main>

<!-- <footer>
<p 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>.
</p>
</footer> -->

</body>
</html>
155 changes: 155 additions & 0 deletions Single_price_grid_component/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

:root {
--Cyan: hsl(179, 62%, 43%);
--Bright_Yellow: hsl(71, 73%, 54%);
--Light_Gray: hsl(204, 43%, 93%);
--Grayish_Blue: hsl(218, 22%, 67%);

--fw_karla_normal: 400;
--fw_karla_bold: 700;
}

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

li {
list-style-type: none;
}

body {
font-family: 'Karla', sans-serif;
font-size: 16px;
color: white;
background-color: var(--Light_Gray);
min-height: 100vh;
display: grid;
place-content: center;
}

.container {
display: grid;
grid-template-columns: 1fr;
margin: 2rem;
border-radius: 0.3rem;
overflow: hidden;
max-width: 39rem;
box-shadow: 0 5px 5px 8px hsla(0, 0%, 0%, 0.03);
}

/* Join our community */

.join {
padding: 1.8rem 1.5rem;
background-color: white;
}

.title1 {
font-size: 1.22rem;
color: var(--Cyan);
}

.summ1 {
color: var(--Bright_Yellow);
font-weight: var(--fw_karla_bold);
padding: 1.6rem 0 1.2rem;
}

.desc1 {
font-size: 0.86rem;
line-height: 1.9;
color: var(--Grayish_Blue);
}

/* Monthly Subscription */

.subscription {
padding: 1.5rem;
background-color: var(--Cyan);
}

.title2 {
font-size: 1.22rem;
letter-spacing: -1px;
}

.price {
padding: 1rem 0 2rem;
}

.summ2 {
font-size: 2rem;
font-weight: var(--fw_karla_bold);
display: flex;
align-items: center;
gap: 0.6rem;
}

.summ2 span {
font-size: 1rem;
font-weight: var(--fw_karla_normal);
color: hsl(204, 30%, 80%);
}

.desc2 {
padding-top: 0.4rem;
}

.btn {
width: 100%;
border: none;
font-family: inherit;
font-weight: var(--fw_karla_bold);
color: inherit;
padding: 1rem 0;
border-radius: 0.3rem;
background-color: var(--Bright_Yellow);
box-shadow: 1px 2px 5px hsla(0, 0%, 0%, 0.3);
}

.btn:hover{
cursor: pointer;
box-shadow: inset 1px 2px 5px hsla(0, 0%, 0%, 0.3);
}

/* Why Us */

.why {
padding: 1.5rem;
background-color: hsl(179, 47%, 52%);
}

.title3 {
font-size: 1.2rem;
letter-spacing: -1px;
}

.desc3 {
padding-top: 1.2rem;
font-size: 0.8rem;
letter-spacing: 0.4px;
line-height: 1.56;
color: hsl(204, 30%, 80%);
}

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

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

@media only screen and (min-width: 768px) {
.container {
grid-template-columns: repeat(2, 1fr);
}

.join {
grid-column: 1/3;
}
}

0 comments on commit 1d86785

Please sign in to comment.