Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<div class="main-container">

<div class="welcome-section">
<h1>Welcome to Paint Quote System</h1>
<div class="divider"></div>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use ::after or border-bottom to replace

<p>
Welcome to Paint Quote System. Welcome to Paint Quote System.
Comment on lines +16 to +17

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

miss a closing tag

</div>

<div class="signup-card">
<div class="card-header">
<h2>Sign Up</h2>
<p>Enter details to create your account</p>
</div>

<form class="form" action="/submit" method="post">
<div class="form-group">
<label for="name">Your name</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
</div>

<div class="form-group">
<label for="phone">Phone number</label>
<input type="tel" id="phone" name="phone" placeholder="Enter your phone number">
</div>

<div class="form-group">
<label for="dulux-account">Dulux account</label>
<input type="text" id="dulux-account" name="dulux_account" placeholder="Enter your Dulux account">
</div>

<button type="submit" class="btn-submit">Sign up</button>
</form>

<div class="card-footer">
<p>Already have an account? <a href="#">Sign in</a></p>
</div>
</div>

</div>

</body>
</html>
128 changes: 128 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
body {
font-family: Arial, sans-serif;
background-image: url('background.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;

min-height: 100vh;
display: flex;
justify-content: center;
}

.main-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 20px;
gap: 150px;
}

.welcome-section h1 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 15px;
color: #476d78;
}

.divider {
width: 100%;
height: 2px;
background-color: #476d78;
margin-bottom: 20px;
opacity: 0.6;
}

.welcome-section p {
font-size: 1rem;
line-height: 1.6;
color: #476d78;
}

.signup-card {
flex: 0 0 400px;
background-color: #ffffff;
padding: 40px;
border-radius: 8px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* 柔和的阴影 */
}

.card-header {
text-align: center;
margin-bottom: 30px;
}

.card-header h2 {
font-size: 1.5rem;
color: #476d78;
margin-bottom: 10px;
}

.card-header p {
color: #476d78;
font-size: 0.9rem;
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
font-size: 0.9rem;
color: #476d78;
margin-bottom: 8px;
font-weight: 500;
}

.form-group input {
width: 100%;
padding: 12px 15px;
font-size: 0.9rem;
border: 1px solid #999a9a;
border-radius: 4px;
box-sizing: border-box;
}

.form-group input::placeholder {
color: #aeabab;
}

.form-group input:focus {
border-color: #007ba8;
}

.btn-submit {
width: 100%;
padding: 12px;
background-color: #006c93;
color: white;
border: none;
border-radius: 4px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
margin-top: 10px;
}

.btn-submit:hover {
background-color: #005a7d;
}

.card-footer {
text-align: center;
margin-top: 20px;
font-size: 0.9rem;
color: #434343;
}

.card-footer a {
color: #077198;
text-decoration: none;
font-weight: 500;
}

.card-footer a:hover {
text-decoration: underline;
}