-
Notifications
You must be signed in to change notification settings - Fork 38
L1 hw #23
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?
L1 hw #23
Changes from all commits
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 |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| <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"> | ||
| <link rel="stylesheet" href="styles.css"> | ||
|
|
||
| <title>Frontend Mentor | Newsletter sign-up form with success message</title> | ||
|
|
||
|
|
@@ -14,11 +15,34 @@ | |
| .attribution a { color: hsl(228, 45%, 44%); } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <body style="background-color: hsl(234, 29%, 20%);"> | ||
|
|
||
| <div class="container"> | ||
| <div class="text"> | ||
| <div class="title"> | ||
| <h1>Stay updated!</h1> | ||
| </div> | ||
| <p>Join 60,000+ product managers receiving monthly updates on:</p> | ||
| <div class="options"> | ||
| <img class="opimg"src="assets/images/icon-list.svg"> | ||
|
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. Missing alt artibute inside the img label |
||
| <span class="data"> Product discovery and building what matters</span><br> | ||
| <img class="opimg"src="assets/images/icon-list.svg"> | ||
| <span class="data"> Product discovery and building what matters</span><br> | ||
|
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. All three bullet points currently show the same text, and class name data its not a good name. 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. Its not best practice to work with br label for spacing, Consider using marging it will fits good for your needs. |
||
| <img class="opimg"src="assets/images/icon-list.svg"> | ||
| <span class="data"> Product discovery and building what matters</span><br> | ||
| </div> | ||
| <h1 class="emailTitle">Email addres:</h1> | ||
| <input type="text" id="email" name="email" placeholder="Email@company.com"><br><br> | ||
| <button class="subbtn">Subscribe to monthly newsletter</button> | ||
| </div> | ||
| <div class="image"> | ||
| <img src="assets/images/illustration-sign-up-desktop.svg" alt="Italian Trulli"> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Sign-up form start --> | ||
|
|
||
| Stay updated! | ||
| <!--Stay updated! | ||
|
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. we dont leave our comments inside. its better just to delete them : ) |
||
|
|
||
| Join 60,000+ product managers receiving monthly updates on: | ||
|
|
||
|
|
@@ -29,24 +53,20 @@ | |
| Email address | ||
| email@company.com | ||
|
|
||
| Subscribe to monthly newsletter | ||
| Subscribe to monthly newsletter--> | ||
|
|
||
| <!-- Sign-up form end --> | ||
|
|
||
| <!-- Success message start --> | ||
|
|
||
| Thanks for subscribing! | ||
| <!--Thanks for subscribing! | ||
|
|
||
| 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>. | ||
| Coded by <a href="#">Your Name Here</a>. | ||
| </div> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| .container{ | ||
| border-radius: 25px; | ||
| margin: 0; | ||
| position: absolute; | ||
| top: 50%; | ||
| left: 50%; | ||
| transform: translate(-50%, -50%); | ||
| width: 800px; | ||
|
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. It’s not recommended — and even considered incorrect — to use fixed pixel sizes for a div. If the user changes their screen size, the entire layout can break |
||
| height:600px; | ||
| display: grid; | ||
| background-color: white; | ||
| grid-template-columns: 1fr 1fr; | ||
| border: 1px solid white; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| .container img { | ||
| width: 95%; | ||
|
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. Nice job! |
||
| height: 100%; | ||
| object-fit: fill; | ||
| } | ||
|
|
||
| .text { | ||
| padding-left: 40px; | ||
| padding-block: 80px; | ||
| padding-right: 40px; | ||
| } | ||
| .title{ | ||
| font-size: 25px; | ||
| } | ||
|
|
||
| .opimg{ | ||
| max-height: 15px; | ||
| max-width:25px; | ||
| } | ||
|
|
||
| .data{ | ||
| padding-left: 5px; | ||
| font-size: 14px; | ||
| } | ||
|
|
||
| .emailTitle{ | ||
| font-size: 14px; | ||
| } | ||
|
|
||
| #email{ | ||
| display: flex; | ||
| width: 300px; | ||
| height: 8%; | ||
| } | ||
| .subbtn{ | ||
| display: flex; | ||
| width: 308px; | ||
|
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. same comment as before |
||
| height: 8%; | ||
| justify-content: center; | ||
| align-items: center; | ||
| background-color: hsl(234, 29%, 20%); | ||
| color: white; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its better to move the styling to the style.css file.
Keep a single tag and move the background-color into the CSS instead of using an inline style attribute.