10
10
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
11
11
< title > Google Form T-shirt Signup</ title >
12
12
< link rel ="shortcut icon " href ="image/html_favicon/icons8-html-color-32.png " type ="image/x-icon ">
13
+ < style >
14
+ * {
15
+ box-sizing : border-box;
16
+ }
13
17
18
+ body {
19
+ background : whitesmoke;
20
+ font-family : sans-serif;
21
+ }
22
+
23
+ main {
24
+ width : 550px ;
25
+ margin : 20px auto;
26
+ }
27
+
28
+ form {
29
+ /* font-size: 14px; */
30
+ }
31
+
32
+ header ,
33
+ form div {
34
+ background : white;
35
+ padding : 10px 15px ;
36
+ border-radius : 5px ;
37
+ margin-bottom : 15px ;
38
+ }
39
+
40
+ header {
41
+ border-top : 10px solid # 673AB7 ;
42
+ padding : 0 0 5px 0 ;
43
+ font-size : 14px ;
44
+ }
45
+
46
+ header h1 {
47
+ font-weight : 500 ;
48
+ padding : 0 20px ;
49
+ }
50
+
51
+ header p a {
52
+ text-decoration : none;
53
+ }
54
+
55
+ header p : not (: last-child ) {
56
+ border-bottom : 1px solid rgba (220 , 220 , 220 , 1.0 );
57
+ padding : 5px 20px ;
58
+ }
59
+
60
+ header p : last-child {
61
+ padding : 0 20px ;
62
+ color : # DD6F41 ;
63
+ }
64
+
65
+ form div .tshirt-size {
66
+ display : flex;
67
+ flex-direction : column;
68
+ justify-content : center;
69
+ }
70
+
71
+ form div .tshirt-preview img {
72
+ width : 50% ;
73
+ height : auto;
74
+ display : block;
75
+ margin : 0 auto;
76
+ }
77
+
78
+ form div .submit-clear {
79
+ display : flex;
80
+ justify-content : space-between;
81
+ background : none;
82
+ padding : unset;
83
+ }
84
+
85
+ form div .submit-clear button {
86
+ background : # 673AB7 ;
87
+ color : white;
88
+ padding : 5px 15px ;
89
+ border-radius : 5px ;
90
+ border : none;
91
+ font-size : 12px ;
92
+ cursor : pointer;
93
+ }
94
+
95
+ form div .submit-clear a {
96
+ text-decoration : none;
97
+ color : # 673AB7 ;
98
+ font-size : 12px ;
99
+ font-weight : 700 ;
100
+ }
101
+
102
+ footer {
103
+ color : grey;
104
+ font-size : 11px ;
105
+ }
106
+
107
+ footer a {
108
+ color : grey;
109
+ }
110
+
111
+ footer p : nth-child (2 ){
112
+ text-align : center;
113
+ margin-top : 15px ;
114
+ }
115
+
116
+ footer h3 {
117
+ text-align : center;
118
+ font-size : 18px ;
119
+ font-family : Arial, Helvetica, sans-serif;
120
+ font-weight : 500 ;
121
+ margin-top : 15px ;
122
+ }
123
+
124
+ footer a .info img {
125
+ height : 25px ;
126
+ width : auto;
127
+ margin-top : -20px ;
128
+ }
129
+
130
+ footer h3 span {
131
+ font-weight : 700 ;
132
+ }
133
+
134
+ form div h5 {
135
+ font-weight : 500 ;
136
+ }
137
+
138
+ input [type = text ] {
139
+ border : none;
140
+ border-bottom : 1px solid whitesmoke;
141
+ display : block;
142
+ width : 100% ;
143
+ margin : 0 auto;
144
+ outline : none;
145
+ padding : 5px ;
146
+ font-size : 14px ;
147
+ }
148
+
149
+ input [type = radio ] {
150
+ margin : 10px 0 ;
151
+ }
152
+ </ style >
14
153
</ head >
15
154
16
155
< body >
@@ -27,28 +166,24 @@ <h3>Class Activities</h3>
27
166
< a href ="class_activity_5.html "> Calculator</ a > |
28
167
29
168
< h3 > Assignment Links</ h3 >
30
- < a href ="assignment_1.html "> Google Form</ a > |
169
+ < a href ="assignment_1.html "> T-Shirt Signup Form</ a > |
31
170
< a href ="assignment_2.html "> Kaduna Electric Form</ a > |
32
171
33
-
34
-
35
172
< main >
36
173
< header >
37
174
< h1 > T-Shirt Sign Up</ h1 >
38
175
< p > Enter your name and size to sign up for a T-shirt</ p >
39
- < hr >
40
176
< p > < a href ="# "> Sign in to Google</ a > to save your progress. < a href ="# "> Learn more</ a > </ p >
41
- < hr >
42
- < p id ="instructions "> *Indicates required question</ p >
177
+ < p id ="instructions "> * Indicates required question</ p >
43
178
</ header >
44
179
45
180
< form action ="">
46
- < section >
181
+ < div >
47
182
< h5 > Name < span > *</ span > </ h5 >
48
- < input type ="text " placeholder ="Your answer ">
49
- </ section >
183
+ < input type ="text " placeholder ="Your answer " autofocus >
184
+ </ div >
50
185
51
- < section >
186
+ < div class =" tshirt-size " >
52
187
< h5 > Shirt size</ h5 >
53
188
< label for ="XS ">
54
189
< input type ="radio " name ="size " id ="XS "> XS
@@ -65,19 +200,19 @@ <h5>Shirt size</h5>
65
200
< label for ="XL ">
66
201
< input type ="radio " name ="size " id ="XL "> XL
67
202
</ label >
68
- </ section >
203
+ </ div >
69
204
70
- < section >
205
+ < div class =" tshirt-preview " >
71
206
< h5 > T-Shirt Preview</ h5 >
72
207
< img src ="image/thebodytshirt.png " alt ="Body Shirt Image ">
73
- </ section >
208
+ </ div >
74
209
75
- < section >
210
+ < div >
76
211
< h5 > Other thoughts or comments</ h5 >
77
212
< input type ="text " placeholder ="Your answer ">
78
- </ section >
213
+ </ div >
79
214
80
- < div >
215
+ < div class =" submit-clear " >
81
216
< button > Submit</ button >
82
217
< a href ="# "> Clear form</ a >
83
218
</ div >
@@ -87,8 +222,8 @@ <h5>Other thoughts or comments</h5>
87
222
< p > Never submit passwords through Google Forms</ p >
88
223
< p > This content is neither created nor endorsed by Google < a href ="# "> Report Abuse</ a > - < a href ="# "> Terms
89
224
of Service</ a > - < a href ="# "> Privacy Policy</ a > </ p >
90
- < h3 > Google Forms</ h3 >
91
- < a href ="# "> < img src ="image/icons8-info-100.png " alt ="Info Message "> </ a >
225
+ < h3 > < span > Google</ span > Forms</ h3 >
226
+ < a href ="# " class =" info " > < img src ="image/icons8-info-100.png " alt ="Info Message "> </ a >
92
227
</ footer >
93
228
</ main >
94
229
</ body >
0 commit comments