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 image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
106 changes: 106 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
.main{
background-image: url("./image.png");
background-size: cover;
display: flex;
align-items: center;
width: 100%;
height: 100vh;
}
#border{
border: 1px solid ;

Choose a reason for hiding this comment

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

missing color value

width: 480px;
margin-bottom: 20px;
}
.intro{
color: #004362;
width: 30%;
margin-right: 100px;
margin-left: 300px;
}
#content{
font-weight: 300;
width: 400px;
}
#Welcome{
font-size: 2em;
font-weight: 500;
width: 500px;
margin-bottom: 20px;
}
.SignArea{
display: flex;
flex-direction: column;
align-items: center;

height: 50vh;
width: 60vh;

Choose a reason for hiding this comment

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

vh is viewport height, width should use vw (viewport width)
and as a container, its height should fit its content, you set a height will cause content overflow
image


background: #FEFEFE;
border: 1px solid #FEFEFE;
border-radius: 8px;
}
#SignUp{
font-size: 2em;
display: flex;
justify-content: center;
color: #474747;
}


.item{
width: 80%;
}
#SignIntro{
display: flex;
justify-content: center;
color: #C2C2C2;
}
.box{
width: 100%;
height:40px;
border: 1px solid #F0F0F0;
border-radius: 8px;
}
.signForm{
height: 25%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.Name,
.Phone-number,
.Dulux-Account{
height: 15%;
margin-bottom: 10px;
color: #AAAAAA;
}
Comment on lines +71 to +77

Choose a reason for hiding this comment

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

can use one class name for simplify

.signButton{
margin-top: 10px;
display: flex;
justify-content: center;
height: 40px;
}
#SignUpButton{
border: 1px solid #F0F0F0;
border-radius: 8px;
color: #FEFEFE;
width: 100%;
height: 100%;
background-color: #007AB0;
}
.SignIn{
height: 15%;
display: flex;
justify-content: center;
align-items: center;
}
#SignInSpan{
color: #568AED;
margin-left: 5px;
cursor: pointer;
}
#SignInSpan:hover{
text-decoration: underline;
}

36 changes: 36 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!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="index.css">
<title>Document</title>
</head>
<body class="main">
<div class="intro">
<div id="Welcome">Welcome to Paint Quote System</div>
<div id="border"></div>
<div id="content">Consequat adipisicing ea do labore irure adipisicing occaecat cupidatat excepteur duis mo</div>
</div>
<div class="SignArea">
<div class="signForm item">
<div id="SignUp">Sign Up</div>
<div id="SignIntro">Enter details to create your account</div>
</div>
Comment on lines +16 to +19

Choose a reason for hiding this comment

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

you should use label tag for input title

<div class="Name item">
<div>Your name</div>
<div><input class="box" type="text" placeholder="Enter your name"></div>
</div>
<div class="Phone-number item">
<div>Your name</div>
<div><input class="box" type="text" placeholder="Enter your phone number"></div>
</div>
<div class="Dulux-Account item">
<div>Your name</div>
<div><input class="box" type="text" placeholder="Enter your Dulux account"></div>
</div>
<div class="signButton item"><button id="SignUpButton">Sign up</button></div>
<div class="SignIn item">Already have an account?<span id="SignInSpan">Sign in</span></div>
</div>
</body>
</html>