-
Notifications
You must be signed in to change notification settings - Fork 38
Almog Lavi #13
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
base: main
Are you sure you want to change the base?
Almog Lavi #13
Changes from 3 commits
1e99f40
90b7e63
c7e8383
7c06710
15fa71f
89e64ba
21d2ba3
c31998f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,52 +1,165 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device --> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <!-- displays site properly based on user's device --> | ||
|
|
||
| <link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png"> | ||
|
|
||
| <title>Frontend Mentor | Newsletter sign-up form with success message</title> | ||
|
|
||
| <title>Frontend Mentor | Newsletter sign-up form with success message</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| <!-- Feel free to remove these styles or customise in your own stylesheet 👍 --> | ||
| <style> | ||
| .attribution { font-size: 11px; text-align: center; } | ||
| .attribution a { color: hsl(228, 45%, 44%); } | ||
| .attribution { | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| font-size: 11px; | ||
| text-align: center; | ||
| } | ||
|
|
||
| .attribution a { | ||
| color: hsl(228, 45%, 44%); | ||
| } | ||
| </style> | ||
|
|
||
| <link rel="preconnect" href="https://fonts.googleapis.com"> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <link | ||
| href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap" | ||
| rel="stylesheet"> | ||
| </head> | ||
| <body> | ||
|
|
||
| <body> | ||
| <!-- Sign-up form start --> | ||
| <div class="main-rect"> | ||
| <div class="left-form"> | ||
| <h1 class="title"> | ||
| Stay updated! | ||
| </h1> | ||
| <p class="desc"> | ||
| Join 60,000+ product managers receiving monthly | ||
| <br> | ||
| updates on: | ||
| </p> | ||
|
|
||
| Stay updated! | ||
| <div class="checklistItem"> | ||
Lavi2910 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <img src="assets/images/icon-success.svg" alt="" class="tickImg"> | ||
| <p> | ||
| Product discovery and building what matters | ||
| </p> | ||
| </div> | ||
| <div class="checklistItem"> | ||
| <img src="assets/images/icon-success.svg" alt="" class="tickImg"> | ||
| <p> | ||
| Measuring to ensure updates are a success | ||
| </p> | ||
| </div> | ||
| <div class="checklistItem"> | ||
| <img src="assets/images/icon-success.svg" alt="" class="tickImg"> | ||
| <p> | ||
| And much more! | ||
| </p> | ||
| </div> | ||
| <form class="main-form" action="success.html" method="get"> | ||
| <label for="email" class="lab">Email adress</label> | ||
| <input type="email" placeholder="email@company.com" required> | ||
| <button type="submit">Subscribe to monthly newsletter</button> | ||
| </form> | ||
| </div> | ||
| <div class="right-img"> | ||
| <img src="assets/images/illustration-sign-up-desktop.svg" class="desk-img" alt=""> | ||
| </div> | ||
| </div> | ||
|
|
||
| Join 60,000+ product managers receiving monthly updates on: | ||
| <div class="mobile-main"> | ||
| <img src="assets/images/illustration-sign-up-mobile.svg" class="pic"> | ||
| <div class="lower-part"> | ||
| <h1 class="title"> | ||
| Stay updated! | ||
| </h1> | ||
| <p class="desc"> | ||
| Join 60,000+ product managers receiving <br> monthly updates on: | ||
| </p> | ||
| <div class="checklistItem"> | ||
| <img src="assets/images/icon-success.svg" alt="" class="tickImg"> | ||
| <p> | ||
| Product discovery and building what <br> matters | ||
| </p> | ||
| </div> | ||
| <div class="checklistItem"> | ||
| <img src="assets/images/icon-success.svg" alt="" class="tickImg"> | ||
| <p> | ||
| Measuring to ensure updates are a <br> success | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </p> | ||
| </div> | ||
| <div class="checklistItem"> | ||
| <img src="assets/images/icon-success.svg" alt="" class="tickImg"> | ||
| <p> | ||
| And much more! | ||
| </p> | ||
| </div> | ||
| <form class="main-form" action="success.html" method="post"> | ||
| <label for="email" class="lab">Email adress</label> | ||
| <input type="email" placeholder="email@company.com" required> | ||
| <button type="submit">Subscribe to monthly newsletter</button> | ||
| </form> | ||
|
|
||
| Product discovery and building what matters | ||
| Measuring to ensure updates are a success | ||
| And much more! | ||
| </div> | ||
| </div> | ||
|
|
||
| Email address | ||
| email@company.com | ||
| <div class="tablet-main"> | ||
| <img src="assets/images/illustration-sign-up-tablet.svg" class="pic"> | ||
| <div class="lower-part"> | ||
| <h1 class="title"> | ||
| Stay updated! | ||
| </h1> | ||
| <p class="desc"> | ||
| Join 60,000+ product managers receiving <br> monthly updates on: | ||
| </p> | ||
| <div class="checklistItem"> | ||
| <img src="assets/images/icon-success.svg" alt="" class="tickImg"> | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <p> | ||
| Product discovery and building what <br> matters | ||
| </p> | ||
| </div> | ||
| <div class="checklistItem"> | ||
| <img src="assets/images/icon-success.svg" alt="" class="tickImg"> | ||
| <p> | ||
| Measuring to ensure updates are a <br> success | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </p> | ||
| </div> | ||
| <div class="checklistItem"> | ||
| <img src="assets/images/icon-success.svg" alt="" class="tickImg"> | ||
| <p> | ||
| And much more! | ||
| </p> | ||
| </div> | ||
| <form class="main-form" action="success.html" method="post"> | ||
| <label for="email" class="lab">Email adress</label> | ||
| <input type="email" placeholder="email@company.com" required> | ||
| <button type="submit">Subscribe to monthly newsletter</button> | ||
| </form> | ||
|
|
||
| Subscribe to monthly newsletter | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Sign-up form end --> | ||
|
|
||
| <!-- Success message start --> | ||
|
|
||
| Thanks for subscribing! | ||
| <!-- Thanks for subscribing! | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| A confirmation email has been sent to ash@loremcompany.com. | ||
| A confirmation email has been sent to ash@loremcompany.com. | ||
| Please open it and click the button inside to confirm your subscription. | ||
|
|
||
| Dismiss message | ||
| Dismiss message --> | ||
|
|
||
| <!-- Success message end --> | ||
| <div class="attribution"> | ||
| Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. | ||
|
|
||
| <!-- <div class="attribution"> | ||
| Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. | ||
| Coded by <a href="#">Your Name Here</a>. | ||
| </div> | ||
| </div> --> | ||
| </body> | ||
|
|
||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,211 @@ | ||
| :root { | ||
| font-family: "Roboto"; | ||
| } | ||
|
|
||
| body { | ||
| background-color: hsl(235, 18%, 26%); | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| flex-direction: column; | ||
| height: 100vh; | ||
| } | ||
|
|
||
| .main-rect { | ||
| height: 55vh; | ||
| width: 50vw; | ||
| display: flex; | ||
| background-color: hsl(0, 0%, 100%); | ||
| border-radius: 25px; | ||
| padding: 60px; | ||
| box-shadow: 0px 0px 25px 5px rgba(0, 0, 0, 0.574); | ||
| } | ||
|
|
||
| .left-form { | ||
| justify-content: start; | ||
| display: flex; | ||
| align-items: start; | ||
| width: 60%; | ||
| color: hsl(234, 29%, 20%); | ||
| flex-direction: column; | ||
| gap: 0px; | ||
| } | ||
|
|
||
| .title { | ||
| font-size: 55px; | ||
| margin: 0px; | ||
| } | ||
|
|
||
| .desc { | ||
| font-size: medium; | ||
| } | ||
|
|
||
| .checklistItem { | ||
| display: flex; | ||
| flex-direction: row; | ||
| gap: 20px; | ||
| } | ||
|
|
||
| .tickImg { | ||
| max-width: 25px; | ||
| } | ||
|
|
||
| .lab { | ||
| font-weight: bold; | ||
| color: hsl(234, 29%, 20%); | ||
| } | ||
|
|
||
| .main-form { | ||
| display: flex; | ||
| flex-direction: column; | ||
| margin-top: 20px; | ||
| gap: 20px; | ||
| width: 80%; | ||
| } | ||
|
|
||
| input[type=email] { | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| padding: 15px; | ||
| width: 100%; | ||
| border-radius: 5px; | ||
| border: solid 1px rgb(197, 197, 197); | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| button[type=submit] { | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| width: 110%; | ||
| padding: 15px; | ||
| border-radius: 5px; | ||
| border: 0px; | ||
| background-color: hsl(234, 29%, 20%); | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| color: hsl(0, 0%, 100%); | ||
| font-size: small; | ||
| cursor: not-allowed; | ||
| } | ||
|
|
||
| .main-form:valid button[type=submit] { | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| width: 110%; | ||
| padding: 15px; | ||
| border-radius: 5px; | ||
| border: 0px; | ||
| background-image: hsl(234, 29%, 20%); | ||
| color: hsl(0, 0%, 100%); | ||
| font-size: small; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .main-form:valid:hover button[type=submit] { | ||
| width: 110%; | ||
| padding: 15px; | ||
| border-radius: 5px; | ||
| border: 0px; | ||
| background-image: linear-gradient(to right, hsl(4, 100%, 67%), hsl(23, 100%, 67%)); | ||
| color: hsl(0, 0%, 100%); | ||
| font-size: small; | ||
| cursor: pointer; | ||
| box-shadow: 0px 0px 20px 2px hsla(4, 58%, 54%, 0.525); | ||
| } | ||
|
|
||
| .right-img { | ||
| width: 40%; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .desk-img { | ||
| width: 22vw; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are mixing too many different units, pick 1 and go with it
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it ok if i'll use vw for width, vh for height and em for all the other stuff? |
||
| } | ||
|
|
||
| .mobile-main { | ||
| display: none; | ||
| } | ||
|
|
||
| .tablet-main { | ||
| display: none; | ||
| } | ||
|
|
||
| @media (max-width: 600px) { | ||
| body { | ||
| height: 93vh; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| background-color: hsl(0, 0%, 100%); | ||
| flex-direction: column; | ||
| width: 96vw; | ||
| } | ||
|
|
||
| .tablet-main { | ||
| display: none; | ||
| } | ||
|
|
||
| .main-rect { | ||
| display: none; | ||
Lavi2910 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| .mobile-main { | ||
| display: flex; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .title { | ||
| font-size: 45px; | ||
| } | ||
|
|
||
| .lower-part { | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| display: flex; | ||
| justify-content: start; | ||
| align-items: start; | ||
| flex-direction: column; | ||
| margin-top: 20px; | ||
| color: hsl(234, 29%, 20%); | ||
| margin-left: 30px; | ||
| gap : 0px; | ||
| } | ||
|
|
||
| .pic{ | ||
| width: 100%; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| @media (min-width: 601px) and (max-width: 1024px) { | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| .main-rect { | ||
| display: none; | ||
| } | ||
| body{ | ||
| background-color: hsl(0, 0%, 100%); | ||
| padding: 0px; | ||
| } | ||
| .mobile-main { | ||
| display: none | ||
| } | ||
| .tablet-main{ | ||
| display: flex; | ||
| width: 100vw; | ||
| height: 100vh; | ||
| flex-direction: column; | ||
| margin: 0px; | ||
| } | ||
| .pic{ | ||
| width: 100%; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| height: 100%; | ||
| margin-top: -325px; | ||
Lavi2910 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| .lower-part { | ||
| display: flex; | ||
| justify-content: start; | ||
| align-items: start; | ||
| flex-direction: column; | ||
| color: hsl(234, 29%, 20%); | ||
| margin-left: 50px; | ||
| gap : 0px; | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.