-
Notifications
You must be signed in to change notification settings - Fork 20
finished html and css #7
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?
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 |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Paint Quote System</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body> | ||
| <div class="container"> | ||
| <!--左邊文字--> | ||
| <div class="left-session"> | ||
| <h1><span>Welcome to Paint Quote System</span></h1> | ||
| <p>Consequat adipiscing ea do labore irure adipiscing<br>occaecat cupidatat excepteur duis mollit est.</p> | ||
| </div> | ||
| <!--右邊卡--> | ||
| <div class="right-card"> | ||
| <div class="card"> | ||
| <h2>Sign Up</h2> | ||
| <p class="subtitle">Enter details to create your account</p> | ||
|
|
||
| <form> | ||
| <label>Your Name</label> | ||
| <input type="text" placeholder="Enter your name"> | ||
| <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. use |
||
| <label>Phone number</label> | ||
| <input type="text" placeholder="Enter your phone numbere"> | ||
| <br> | ||
| <label>Dulux account</label> | ||
| <input type="text" placeholder="Enter your Dulux account"> | ||
| <br> | ||
| <button type="submit">Sign Up</button> | ||
| </form> | ||
|
|
||
| <p class="signin-text">Already have your Account? <a href="#">Sign in</a></p> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,143 @@ | ||
| *{ | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| body{ | ||
| font-family: sans-serif; | ||
| height: 100vh; | ||
| background-image: url("20251114160805_20251115030208.png"); | ||
| background-size: cover; | ||
| overflow: hidden; | ||
|
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. this will cause page cannot scroll down if content is exceed the body |
||
| display: flex; /* 用 flex */ | ||
| align-items: center; /* 垂直居中(最重要) */ | ||
| justify-content: center; /* 居中整个 container */ | ||
| } | ||
|
|
||
| .container { | ||
| width: 100%; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| gap: 80px; | ||
| padding: 40px; | ||
| } | ||
|
|
||
| .left-session{ | ||
| flex-basis: 50%; | ||
| background-position: center; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| padding: 80px 60px; | ||
| } | ||
|
Comment on lines
+27
to
+34
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. the content in left session is not horizontal centered, and background-position is unncessary |
||
|
|
||
| .left-session h1{ | ||
| font-size: 32px; | ||
| margin-bottom: 20px; | ||
| font-weight: 400; | ||
| color: rgb(34, 55, 124); | ||
| } | ||
|
|
||
| .left-session h1 span{ | ||
| border-bottom: 2px solid rgb(34, 55, 124); | ||
| display: inline-block; | ||
| } | ||
|
|
||
| .left-session p{ | ||
| font-size: 18px; | ||
| line-height: 1.6; | ||
| opacity: 0.7; | ||
| color: rgb(34, 55, 124); | ||
| } | ||
|
|
||
| .right-card{ | ||
| flex-basis: 50%; | ||
| background-color: white; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| border-radius: 10px; | ||
| } | ||
|
|
||
| .card{ | ||
| width: 380px; | ||
| } | ||
|
|
||
| .card h2{ | ||
| font-size: 32px; | ||
| color: rgb(73, 71, 71); | ||
| font-weight: 400; | ||
| text-align: center; | ||
| align-items: center; | ||
| margin-top: 40px; | ||
| } | ||
|
|
||
| .subtitle{ | ||
| font-size: 16px; | ||
| color: rgb(73, 71, 71); | ||
| opacity: 0.7; | ||
| margin-bottom: 40px; | ||
| text-align: center; | ||
| margin-top: 20px; | ||
| } | ||
|
|
||
| form label{ | ||
| display: block; | ||
| margin-bottom: 8px; | ||
| color: rgb(73, 71, 71); | ||
| opacity: 0.7; | ||
| font-weight: 400; | ||
| } | ||
|
|
||
| form input { | ||
| width: 100%; | ||
| padding: 14px 16px; | ||
| margin-bottom: 20px; | ||
| border: 2px solid #e0e0e0; | ||
| border-radius: 10px; | ||
| font-size: 16px; | ||
| transition: 0.3s; | ||
| } | ||
|
|
||
| form input:focus{ | ||
| outline: none; | ||
| border-color: black; | ||
| } | ||
|
|
||
| button { | ||
| width: 100%; | ||
| padding: 14px; | ||
| background: rgb(52, 52, 235); | ||
| color: white; | ||
| border: none; | ||
| border-radius: 10px; | ||
| font-size: 18px; | ||
| font-weight: 600; | ||
| cursor: pointer; | ||
| transition: 0.3s; | ||
| margin-top: 10px; | ||
| } | ||
|
|
||
| button:hover { | ||
| background: blue; | ||
| } | ||
|
|
||
| .signin-text{ | ||
| text-align: center; | ||
| margin-top: 30px; | ||
| color: #666; | ||
| margin-bottom: 40px; | ||
| } | ||
|
|
||
| .signin-text a{ | ||
| text-align: center; | ||
| margin-top: 30px; | ||
| color: blue; | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| .signin-text a:hover{ | ||
| text-decoration: underline; | ||
| } | ||
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.
miss for attribute to point to input field