Skip to content

Commit

Permalink
🐈 Add style
Browse files Browse the repository at this point in the history
  • Loading branch information
jucomin committed Sep 3, 2019
1 parent 4172d52 commit 4177428
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
Binary file added assets/img/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 34 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link href="./styles/style.css" rel="stylesheet" type="text/css">
<title>Dreamy Pet Survey</title>
</head>
<body>
Expand All @@ -13,17 +14,49 @@ <h1 class="title">The pet of my dreams</h1>
This survey wants to know which pet you have been dreaming.
</p>
<p class="text">
Please answerthe following questions. Your answers are so important to
Please answer the following questions. Your answers are so important to
us. Thank you :)
</p>
<p class="text">Filds marked with (*) are required.</p>

<form>
<fieldset class="fieldset">
<legend>Personal Information</legend>
<label for="name" class="label">Name*:</label>
<input
type="text"
class="field"
name="name"
id="name"
requerid
placeholder="Name"
/>
<label for="email" class="label">Email*:</label>
<input
type="text"
class="field"
name="email"
id="email"
requerid
placeholder="Email"
/>
<label for="age" class="label">Age*:</label>
<input type="text" class="field" name="age" id="age" requerid
placeholder="Age"
</fieldset>
<fieldset class="fieldset">
<legend>Survey Information:</legend>
<p class="question">1. What is your dram pet?</p>
<select name="dream-pet" id="dream-pet">
<option value="">Please select an opition</option>
<option value="dog">Dog</option>
<option value="cat">Cat</option>
<option value="hamster">Hamster</option>
<option value="horse">Horse</option>
</select>

</p>
<input type="radio" name="color" value="pink"><label>Pink</label>
</fieldset>
<input type="submit" value="submit" />
</form>
Expand Down
21 changes: 21 additions & 0 deletions styles/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@import url('https://fonts.googleapis.com/css?family=Luckiest+Guy|Signika&display=swap');

/*Reset style */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Signika', sans-serif;
}
body {
background-image: url('../assets/img/bg.jpg');
}
.main {
background-color: white; /* define bg color*/
padding: 20px 40px 30px; /* define internal spacing*/
width: 800px; /* define a size*/
margin: 30px auto; /* centers */
}
.title {
font-family: 'Luckiest Guy', cursive;
}

0 comments on commit 4177428

Please sign in to comment.