Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,360 --> 00:00:04,793
Let's now start building the how it works section.
2
00:00:05,670 --> 00:00:08,510
And so here we are going to build something similar
3
00:00:08,510 --> 00:00:11,600
to what I draw in this sketch here.
4
00:00:11,600 --> 00:00:15,240
So yet another one of these beautiful sketches here
5
00:00:15,240 --> 00:00:16,690
that I have,
6
00:00:16,690 --> 00:00:20,910
and you see that we have something like a Z pattern here.
7
00:00:20,910 --> 00:00:22,800
So similar to that example
8
00:00:22,800 --> 00:00:25,810
that is here on the bottom right
9
00:00:25,810 --> 00:00:29,110
now here each of the rows of the C pattern
10
00:00:29,110 --> 00:00:33,590
will be for one of the steps of how Omnifood works.
11
00:00:33,590 --> 00:00:34,540
Okay.
12
00:00:34,540 --> 00:00:36,580
So with those big numbers,
13
00:00:36,580 --> 00:00:39,860
a bit similar to that very first design
14
00:00:39,860 --> 00:00:42,050
that I have here at the very top.
15
00:00:42,050 --> 00:00:44,320
So we're gonna have those big numbers,
16
00:00:44,320 --> 00:00:47,070
then something like a smaller heading
17
00:00:47,070 --> 00:00:50,290
and then some description of the step itself.
18
00:00:50,290 --> 00:00:52,220
And then on the side of that,
19
00:00:52,220 --> 00:00:55,180
there's going to be one of the three application screens
20
00:00:55,180 --> 00:00:57,283
that we got from Omnifood.
21
00:00:58,300 --> 00:01:02,460
And above all that I also want to add a headline,
22
00:01:02,460 --> 00:01:05,370
something like this other small design example,
23
00:01:05,370 --> 00:01:06,870
that they have here.
24
00:01:06,870 --> 00:01:09,370
So where we have this big headline,
25
00:01:09,370 --> 00:01:11,950
which is a bit informative about
26
00:01:11,950 --> 00:01:13,970
what the section is all about.
27
00:01:13,970 --> 00:01:17,310
And then above that in this small in color text,
28
00:01:17,310 --> 00:01:21,290
there is a very direct description of the section.
29
00:01:21,290 --> 00:01:23,600
So basically naming the section.
30
00:01:23,600 --> 00:01:25,350
And so, as I mentioned before,
31
00:01:25,350 --> 00:01:28,470
this is a very nice pattern that I have been seeing.
32
00:01:28,470 --> 00:01:31,320
And so I would like to use that now right here.
33
00:01:31,320 --> 00:01:32,530
Okay.
34
00:01:32,530 --> 00:01:35,140
So I hope this looks like fun.
35
00:01:35,140 --> 00:01:37,463
Hence of let's now get started with this.
36
00:01:38,810 --> 00:01:40,710
And actually in the last lecture,
37
00:01:40,710 --> 00:01:43,250
we already created the section here.
38
00:01:43,250 --> 00:01:48,250
And of course also these container and grid classes,
39
00:01:49,450 --> 00:01:51,210
but let's remove all of this
40
00:01:51,210 --> 00:01:54,690
and start over with a blank section.
41
00:01:54,690 --> 00:01:58,610
And so now let's add our first container element here
42
00:01:58,610 --> 00:02:00,493
for the section heading.
43
00:02:01,860 --> 00:02:04,790
So I'm gonna give it to class of container
44
00:02:04,790 --> 00:02:06,890
because of course we're gonna want to have
45
00:02:06,890 --> 00:02:09,970
these headings centered on the page.
46
00:02:09,970 --> 00:02:14,110
And here, it's now time to use the H2 element.
47
00:02:14,110 --> 00:02:17,373
So after H1 that we had here,
48
00:02:18,400 --> 00:02:19,540
so right here,
49
00:02:19,540 --> 00:02:22,350
this is the primary heading with the H1.
50
00:02:22,350 --> 00:02:27,190
And so remember there should only be one H1 per page.
51
00:02:27,190 --> 00:02:28,930
And so now in each of the sections,
52
00:02:28,930 --> 00:02:30,663
we're going to use the H2.
53
00:02:31,840 --> 00:02:34,350
And again, I'm giving each of the headings
54
00:02:34,350 --> 00:02:39,150
a class name so that I can select everything using classes.
55
00:02:39,150 --> 00:02:42,413
And so this is a heading secondary.
56
00:02:43,760 --> 00:02:45,290
Okay.
57
00:02:45,290 --> 00:02:48,590
And I think here, we actually do have the heading.
58
00:02:48,590 --> 00:02:50,050
So that's this one,
59
00:02:50,050 --> 00:02:53,803
your daily dose of health in three simple steps.
60
00:02:55,930 --> 00:02:59,690
So this is quite a descriptive heading of the section.
61
00:02:59,690 --> 00:03:02,020
But remember that now before that,
62
00:03:02,020 --> 00:03:05,700
we also want to add basically the name of the section
63
00:03:05,700 --> 00:03:07,160
to make it a little bit easier
64
00:03:07,160 --> 00:03:10,100
for the eye to scan quickly the page
65
00:03:10,100 --> 00:03:12,700
in case we don't have the time
66
00:03:12,700 --> 00:03:15,140
to read this big heading here,
67
00:03:15,140 --> 00:03:17,540
then we can simply read how it works.
68
00:03:17,540 --> 00:03:19,500
And then immediately it becomes clear
69
00:03:19,500 --> 00:03:21,920
what this section is all about.
70
00:03:21,920 --> 00:03:22,753
Now here,
71
00:03:22,753 --> 00:03:26,880
you might think that we could use like an H3 element,
72
00:03:26,880 --> 00:03:27,940
for example,
73
00:03:27,940 --> 00:03:31,220
because this one is simply smaller than the H2.
74
00:03:31,220 --> 00:03:35,300
And so H3 might look like a good choice,
75
00:03:35,300 --> 00:03:38,140
but actually it is not a good choice
76
00:03:38,140 --> 00:03:40,760
because if this was an H3 here,
77
00:03:40,760 --> 00:03:44,230
this would actually not be a heading of any new parts
78
00:03:44,230 --> 00:03:46,130
inside of this section.
79
00:03:46,130 --> 00:03:48,290
So basically this H3,
80
00:03:48,290 --> 00:03:52,433
the goal of it is to describe what this H2 is all about.
81
00:03:53,410 --> 00:03:56,600
So basically naming it in a way, right?
82
00:03:56,600 --> 00:04:00,520
And so I believe that here using a heading like this,
83
00:04:00,520 --> 00:04:04,630
so an element which has the semantic meaning of a heading
84
00:04:04,630 --> 00:04:06,680
is not the right choice.
85
00:04:06,680 --> 00:04:09,970
So we can of course use H3 in this section here,
86
00:04:09,970 --> 00:04:11,690
but it should then actually
87
00:04:11,690 --> 00:04:15,230
describe some new parts of the section.
88
00:04:15,230 --> 00:04:18,990
Okay. And we will in fact use an H3 in a minute,
89
00:04:18,990 --> 00:04:21,600
and then it will make a bit more sense.
90
00:04:21,600 --> 00:04:24,140
So here we should just use something generic,
91
00:04:24,140 --> 00:04:27,973
like a paragraph, or maybe even a span.
92
00:04:29,260 --> 00:04:33,280
So remember span is like a generic text element.
93
00:04:33,280 --> 00:04:34,650
And so let's use that here
94
00:04:35,970 --> 00:04:39,690
and let's call it a subheading,
95
00:04:39,690 --> 00:04:40,893
so not heating.
96
00:04:43,110 --> 00:04:44,450
That's right.
97
00:04:44,450 --> 00:04:48,107
And so here we write, "how it works."
98
00:04:49,033 --> 00:04:50,340
Okay.
99
00:04:50,340 --> 00:04:54,320
All right. And now let's actually add or Z pattern.
100
00:04:54,320 --> 00:04:57,510
So basically all those elements which have the text
101
00:04:57,510 --> 00:04:58,820
and the images.
102
00:04:58,820 --> 00:05:01,823
So basically the content that we want for this section.
103
00:05:02,670 --> 00:05:05,040
Now where should we put all that?
104
00:05:05,040 --> 00:05:08,083
Should we put it also inside of this container right here?
105
00:05:08,950 --> 00:05:10,890
Well, not really.
106
00:05:10,890 --> 00:05:14,750
Right? Because for the layout of that component,
107
00:05:14,750 --> 00:05:19,630
so of that Z pattern, we will probably need or grid.
108
00:05:19,630 --> 00:05:23,100
Right. And so we do not want that grid here.
109
00:05:23,100 --> 00:05:25,023
Here we only want these headings.
110
00:05:26,290 --> 00:05:31,140
And so we can simply create a new div element
111
00:05:32,230 --> 00:05:36,173
and also call it a container that is no problem at all.
112
00:05:38,890 --> 00:05:40,090
Okay.
113
00:05:40,090 --> 00:05:42,430
Now we could also of course have created
114
00:05:42,430 --> 00:05:46,460
simply a new div in here like this
115
00:05:46,460 --> 00:05:48,163
and then call that one a grid.
116
00:05:49,140 --> 00:05:51,130
So that would have worked as well.
117
00:05:51,130 --> 00:05:52,950
But I think it's cleaner
118
00:05:52,950 --> 00:05:56,410
to just keep adding new containers like this,
119
00:05:56,410 --> 00:06:01,150
then these pieces are a bit more self-contained, right?
120
00:06:01,150 --> 00:06:04,090
So we have just one container for the headings.
121
00:06:04,090 --> 00:06:06,320
And then we can actually nicely copy that here
122
00:06:06,320 --> 00:06:08,550
from one section to the next one,
123
00:06:08,550 --> 00:06:10,523
without worrying what comes next.
124
00:06:12,200 --> 00:06:13,090
All right.
125
00:06:13,090 --> 00:06:15,060
So then here we have our container
126
00:06:15,060 --> 00:06:18,320
and this is probably where the grid will be,
127
00:06:18,320 --> 00:06:21,870
but for now let's not worry about the visual part here
128
00:06:21,870 --> 00:06:24,120
and only about the content.
129
00:06:24,120 --> 00:06:26,730
So if you remember the sketch that I showed you
130
00:06:26,730 --> 00:06:29,050
in the beginning of this lecture,
131
00:06:29,050 --> 00:06:32,330
you will remember that there was like a box on the left side
132
00:06:32,330 --> 00:06:33,820
with some text content,
133
00:06:33,820 --> 00:06:37,400
and then on the right side the image, right?
134
00:06:37,400 --> 00:06:40,633
And so let's now create boxes for those two.
135
00:06:44,520 --> 00:06:48,223
So let's call this a step text box,
136
00:06:49,830 --> 00:06:53,810
and then the other one will be a text box for the image.
137
00:06:53,810 --> 00:06:57,373
Let's actually put that right here immediately.
138
00:07:00,490 --> 00:07:01,410
So step
139
00:07:03,610 --> 00:07:05,033
image box.
140
00:07:06,630 --> 00:07:08,240
and since we're here,
141
00:07:08,240 --> 00:07:10,010
and since this one is very easy,
142
00:07:10,010 --> 00:07:13,000
let's immediately put the image right here.
143
00:07:13,000 --> 00:07:15,350
And so it is inside the app folder.
144
00:07:15,350 --> 00:07:16,950
And then of course,
145
00:07:16,950 --> 00:07:19,303
we're starting with the app screen, number one,
146
00:07:21,262 --> 00:07:24,593
then let's give it a class of step image,
147
00:07:25,460 --> 00:07:27,540
which is why the parent element
148
00:07:27,540 --> 00:07:30,150
is called the step image box.
149
00:07:30,150 --> 00:07:33,730
And so then of course we need the alt text.
150
00:07:33,730 --> 00:07:35,200
Never forget that.
151
00:07:35,200 --> 00:07:39,180
And here, this is actually on an iPhone.
152
00:07:39,180 --> 00:07:43,653
So I'm calling it iPhone app preferences,
153
00:07:49,190 --> 00:07:50,023
selection,
154
00:07:51,790 --> 00:07:54,323
screen, giving it a save.
155
00:07:55,310 --> 00:07:56,910
That's not correct.
156
00:07:56,910 --> 00:07:59,240
And let's just quickly take a look at the image,
157
00:07:59,240 --> 00:08:01,563
just so the description makes more sense.
158
00:08:02,500 --> 00:08:04,310
And so, yeah, this is like a screen
159
00:08:04,310 --> 00:08:07,361
where the user can select their preferences.
160
00:08:07,361 --> 00:08:10,160
And so that's why that's the description
161
00:08:10,160 --> 00:08:12,070
that I gave it here.
162
00:08:12,070 --> 00:08:13,210
Now. Okay.
163
00:08:13,210 --> 00:08:15,670
And now here as for the text content,
164
00:08:15,670 --> 00:08:18,630
remember we want the number of the step.
165
00:08:18,630 --> 00:08:22,560
Then we want like a, a heading a smaller one
166
00:08:22,560 --> 00:08:25,483
and then some text description after that.
167
00:08:26,500 --> 00:08:30,563
So let's use a P here for each of them.
168
00:08:33,130 --> 00:08:35,320
So here let's call it the step number
169
00:08:36,170 --> 00:08:39,240
and it starts with zero one of course.
170
00:08:39,240 --> 00:08:42,570
And now it's actually time for a that H3
171
00:08:42,570 --> 00:08:43,863
that I mentioned before.
172
00:08:44,860 --> 00:08:47,423
And first of all, let's get our content here.
173
00:08:48,510 --> 00:08:50,890
So we have these three blocks
174
00:08:50,890 --> 00:08:52,433
and this one is the first one.
175
00:08:53,300 --> 00:08:54,423
Let's get that.
176
00:08:56,150 --> 00:08:59,083
And let's just paste that in here for now.
177
00:09:00,060 --> 00:09:01,550
Okay.
178
00:09:01,550 --> 00:09:03,720
So we have all of this here
179
00:09:03,720 --> 00:09:06,720
and it's kind of separated here with this colon.
180
00:09:06,720 --> 00:09:09,490
So this here is probably the right text for the heading
181
00:09:09,490 --> 00:09:13,840
and this then for kind of the description of this step.
182
00:09:13,840 --> 00:09:15,500
Okay.
183
00:09:15,500 --> 00:09:17,620
Well actually it shouldn't be here
184
00:09:18,930 --> 00:09:20,920
that doesn't make any sense.
185
00:09:20,920 --> 00:09:23,600
It should be here indeed.
186
00:09:23,600 --> 00:09:26,320
And now I'm just cutting this part here
187
00:09:26,320 --> 00:09:28,403
and I'm gonna put it inside an H3.
188
00:09:31,150 --> 00:09:31,983
And again,
189
00:09:31,983 --> 00:09:33,070
I'm assuming that this one here
190
00:09:33,070 --> 00:09:35,500
might be reused across the page.
191
00:09:35,500 --> 00:09:38,250
And so I'm giving it a more general name
192
00:09:38,250 --> 00:09:42,140
and I'm not call it like step heading or something.
193
00:09:42,140 --> 00:09:43,200
Okay.
194
00:09:43,200 --> 00:09:45,580
So I'm calling it heading tertiary now
195
00:09:46,930 --> 00:09:51,053
because it might be reused somewhere else.
196
00:09:51,970 --> 00:09:54,380
And so on headings that happens all the time
197
00:09:54,380 --> 00:09:58,450
and therefore they are a nice candidate of giving them
198
00:09:58,450 --> 00:10:00,513
like a general name like this.
199
00:10:02,740 --> 00:10:03,573
Okay.
200
00:10:04,750 --> 00:10:07,430
And I'll, let's just add a paragraph again,
201
00:10:07,430 --> 00:10:11,060
for the description of the step here,
202
00:10:11,060 --> 00:10:14,163
the sort of step description.
203
00:10:16,600 --> 00:10:18,110
Okay.
204
00:10:18,110 --> 00:10:19,820
Next removing these colon here
205
00:10:20,840 --> 00:10:22,023
and there we go.
206
00:10:23,650 --> 00:10:25,670
So as I was saying before,
207
00:10:25,670 --> 00:10:28,973
now here it actually makes sense to use an H3
208
00:10:28,973 --> 00:10:32,100
because this kind of introduces a new part
209
00:10:32,100 --> 00:10:33,670
inside of this section,
210
00:10:33,670 --> 00:10:37,240
which is this piece of content that comes after it.
211
00:10:37,240 --> 00:10:40,010
So here it does make sense to use an H3
212
00:10:40,010 --> 00:10:43,670
while here it really didn't make a lot of sense.
213
00:10:43,670 --> 00:10:46,653
So that's why we went with this generic span here.
214
00:10:48,130 --> 00:10:48,997
Okay.
215
00:10:48,997 --> 00:10:51,520
Now let's just take a quick look here.
216
00:10:51,520 --> 00:10:54,070
And well,
217
00:10:54,070 --> 00:10:55,560
there we go.
218
00:10:55,560 --> 00:10:58,560
So the image as always is very large
219
00:10:58,560 --> 00:11:01,740
and there of course not side-by-side yet,
220
00:11:01,740 --> 00:11:04,140
but of course we want them side by side.
221
00:11:04,140 --> 00:11:08,563
And so let's now use or grid class,
222
00:11:09,850 --> 00:11:11,083
so let's go up here.
223
00:11:12,150 --> 00:11:13,170
And so the container,
224
00:11:13,170 --> 00:11:15,590
we already have it right here
225
00:11:16,600 --> 00:11:18,303
and then let's add the grid.
226
00:11:20,570 --> 00:11:21,680
And just like this,
227
00:11:21,680 --> 00:11:25,420
we easily transformed this into a grid container,
228
00:11:25,420 --> 00:11:27,840
which has this gap here.
229
00:11:27,840 --> 00:11:30,763
So all without writing any new, additional CSS.
230
00:11:31,600 --> 00:11:35,773
And then of course this one is the one with two columns.
231
00:11:36,810 --> 00:11:38,130
Okay.
232
00:11:38,130 --> 00:11:39,970
Now this gap here is just temporary.
233
00:11:39,970 --> 00:11:43,153
It might not be the one that we use in the end.
234
00:11:44,400 --> 00:11:46,450
So we're probably gonna change that later
235
00:11:47,350 --> 00:11:50,563
and here quickly getting rid of this background color.
236
00:11:52,440 --> 00:11:53,970
Okay,
237
00:11:53,970 --> 00:11:55,390
nice.
238
00:11:55,390 --> 00:11:59,080
And now this image as always is way too big.
239
00:11:59,080 --> 00:12:03,180
So let's make it flexible by saying that it should occupy
240
00:12:03,180 --> 00:12:08,180
only basically 100% of the available parent.
241
00:12:08,640 --> 00:12:11,270
So images are always one of the first things
242
00:12:11,270 --> 00:12:14,190
that we have to style, because as I mentioned,
243
00:12:14,190 --> 00:12:18,853
they do not automatically scale up or down like text.
244
00:12:20,660 --> 00:12:24,020
So let's just say with a hundred percent
245
00:12:24,020 --> 00:12:26,800
or let's even go for 50% for now
246
00:12:26,800 --> 00:12:30,020
because a hundred percent also seems kind of large.
247
00:12:30,020 --> 00:12:33,920
And so with this, we are safe at least for now.
248
00:12:33,920 --> 00:12:37,083
So we're just experimenting here anyway for now.
249
00:12:37,990 --> 00:12:40,980
And so, yeah, that looks better.
250
00:12:40,980 --> 00:12:43,133
Can of course, inspect this very quickly.
251
00:12:44,480 --> 00:12:47,860
And indeed now each of the two columns
252
00:12:47,860 --> 00:12:50,870
are the same size as we can see here.
253
00:12:50,870 --> 00:12:52,510
And yeah,
254
00:12:52,510 --> 00:12:54,850
the image occupies exactly half,
255
00:12:54,850 --> 00:12:58,000
so 50% of the parent container,
256
00:12:58,000 --> 00:13:01,363
which of course, is this a step image box here.
257
00:13:03,750 --> 00:13:05,250
Okay.
258
00:13:05,250 --> 00:13:09,090
But for now let's not worry too much about the visual style.
259
00:13:09,090 --> 00:13:12,823
And instead let's keep adding or next step here.
260
00:13:14,700 --> 00:13:15,533
Okay.
261
00:13:16,680 --> 00:13:18,670
Now, before going back, remember that,
262
00:13:18,670 --> 00:13:21,260
now we wanted the opposite way.
263
00:13:21,260 --> 00:13:24,230
So here we have the text on the left side,
264
00:13:24,230 --> 00:13:25,600
the image on the right.
265
00:13:25,600 --> 00:13:27,920
But since we're building a Z pattern,
266
00:13:27,920 --> 00:13:32,090
which remember is quite popular on startup sites
267
00:13:32,090 --> 00:13:33,350
like this one,
268
00:13:33,350 --> 00:13:35,973
then we will now have the image on the left side,
269
00:13:35,973 --> 00:13:38,400
and the text on the right.
270
00:13:38,400 --> 00:13:41,870
And so what that means is that the next element in the grid
271
00:13:41,870 --> 00:13:45,300
will be again, an image, right?
272
00:13:45,300 --> 00:13:46,653
So it's the opposite now.
273
00:13:48,590 --> 00:13:50,580
So yeah,
274
00:13:50,580 --> 00:13:52,980
Here we had first step text box
275
00:13:52,980 --> 00:13:54,610
and then the step image box,
276
00:13:54,610 --> 00:13:58,940
but now we will have the step image box first.
277
00:13:58,940 --> 00:14:02,363
And here I forgot to close this.
278
00:14:03,250 --> 00:14:04,810
Now that's better,
279
00:14:04,810 --> 00:14:09,140
but still Google Chrome managed to fix the code
280
00:14:09,140 --> 00:14:12,220
because you see that actually it looked the same before.
281
00:14:12,220 --> 00:14:15,150
So it looked correct before.
282
00:14:15,150 --> 00:14:18,390
And so that's because browsers are actually very forgiving
283
00:14:18,390 --> 00:14:21,150
with our errors in the HTML.
284
00:14:21,150 --> 00:14:23,270
They will still try to understand it
285
00:14:23,270 --> 00:14:25,773
and then fix these errors internally.
286
00:14:27,500 --> 00:14:28,333
But anyway,
287
00:14:28,333 --> 00:14:30,710
let's now go to step two
288
00:14:30,710 --> 00:14:32,860
and let me actually add some comments here.
289
00:14:33,730 --> 00:14:35,470
So right in the HTML,
290
00:14:35,470 --> 00:14:39,620
and to remember we can hit CMD + / for that
291
00:14:39,620 --> 00:14:42,200
or CTRL + / on windows.
292
00:14:42,200 --> 00:14:45,073
So here that's step zero one,
293
00:14:46,020 --> 00:14:48,950
just so we don't get confused as the code gets longer
294
00:14:48,950 --> 00:14:49,783
and longer.
295
00:14:50,670 --> 00:14:54,743
So step two, and eventually we're gonna have a step three
296
00:14:59,260 --> 00:15:03,393
and why not copy a, this here immediately.
297
00:15:07,020 --> 00:15:09,303
So two and three,
298
00:15:10,140 --> 00:15:13,640
but of course we now need different descriptions.
299
00:15:13,640 --> 00:15:16,063
So now we need to describe this one here.
300
00:15:17,780 --> 00:15:19,813
So it's still an iPhone app.
301
00:15:21,210 --> 00:15:26,153
Let's call it the meal approving plan,
302
00:15:27,670 --> 00:15:31,430
because while that's what this one here is all about,
303
00:15:31,430 --> 00:15:32,600
basically.
304
00:15:32,600 --> 00:15:35,150
So there's one of these meals here per day,
305
00:15:35,150 --> 00:15:37,870
and then the user can approve it or not.
306
00:15:37,870 --> 00:15:40,170
And then the app screen number three
307
00:15:40,170 --> 00:15:44,500
is basically for the delivery, right?
308
00:15:44,500 --> 00:15:46,610
So let's call that iPhone app
309
00:15:49,450 --> 00:15:52,273
delivery screen into your screen as well.
310
00:15:54,470 --> 00:15:55,575
Now. Okay.
311
00:15:55,575 --> 00:15:59,023
And now let's get the step text box here,
312
00:16:01,150 --> 00:16:03,650
but remember that here in step number two,
313
00:16:03,650 --> 00:16:06,480
it should appear after the image
314
00:16:06,480 --> 00:16:07,940
so that it's on the right side
315
00:16:07,940 --> 00:16:11,360
then while here in step number three,
316
00:16:11,360 --> 00:16:13,440
we are building the Z pattern.
317
00:16:13,440 --> 00:16:16,173
And so it is now back to the beginning.
318
00:16:17,650 --> 00:16:18,740
Okay.
319
00:16:18,740 --> 00:16:21,800
And now just replacing the content here, zero two
320
00:16:25,140 --> 00:16:27,380
triple clicking here
321
00:16:27,380 --> 00:16:30,550
and putting it here
322
00:16:30,550 --> 00:16:34,083
and this of course belongs again in the H3.
323
00:16:39,640 --> 00:16:42,263
And then, finally step number three.
324
00:16:47,630 --> 00:16:52,560
So creating the HTML is always some copy and pasting.
325
00:16:52,560 --> 00:16:54,083
That's just completely normal.
326
00:16:55,710 --> 00:16:59,310
So just as I'm doing here, okay.
327
00:16:59,310 --> 00:17:03,550
Ah, here, we need to use step zero three,
328
00:17:03,550 --> 00:17:04,933
but now we should be good.
329
00:17:06,380 --> 00:17:09,883
And indeed, we now have a nice Z pattern.
330
00:17:11,700 --> 00:17:14,820
So beautiful, well, except for,
331
00:17:14,820 --> 00:17:16,580
of course the text formatting
332
00:17:16,580 --> 00:17:19,270
and the size of these images,
333
00:17:19,270 --> 00:17:23,060
but the content itself is already arranged in the right way.
334
00:17:23,060 --> 00:17:25,050
So the layout is already working,
335
00:17:25,050 --> 00:17:27,760
thanks to our reusable grid.
336
00:17:27,760 --> 00:17:31,670
And yeah. So now let's take care.
337
00:17:31,670 --> 00:17:34,150
I would say of styling first,
338
00:17:34,150 --> 00:17:35,010
this heading
339
00:17:35,010 --> 00:17:36,560
and this subheading right here.
340
00:17:40,170 --> 00:17:43,933
So that's the heading tertiary.
341
00:17:44,900 --> 00:17:45,790
Oh, actually, no,
342
00:17:45,790 --> 00:17:50,100
it's the heading secondary and the subheading.
343
00:17:50,100 --> 00:17:52,290
And so these are gonna be reusable.
344
00:17:52,290 --> 00:17:53,853
So let's put them up here.
345
00:17:57,160 --> 00:18:00,250
So close to the other heading
346
00:18:08,210 --> 00:18:12,280
and well, since we're building another heading here,
347
00:18:12,280 --> 00:18:16,260
we can use some of the same design elements as here.
348
00:18:16,260 --> 00:18:18,680
So we might use the same color,
349
00:18:18,680 --> 00:18:20,430
the same font weight
350
00:18:20,430 --> 00:18:22,980
and maybe also the same letter spacing here
351
00:18:22,980 --> 00:18:25,100
in the heading secondary.
352
00:18:25,100 --> 00:18:30,030
And so we should probably not just copy them here, right.
353
00:18:30,030 --> 00:18:32,120
That would not make a lot of sense.
354
00:18:32,120 --> 00:18:34,230
So instead we can create
355
00:18:36,420 --> 00:18:39,520
a list of selectors for the heading primary
356
00:18:40,440 --> 00:18:43,460
and the heading secondary,
357
00:18:43,460 --> 00:18:45,420
and then simply add these styles
358
00:18:45,420 --> 00:18:47,623
that are common to them right here.
359
00:18:50,950 --> 00:18:54,260
So moving down so that we can select all three of them
360
00:18:54,260 --> 00:18:55,420
at the same time
361
00:18:55,420 --> 00:18:57,493
and then move them all up here.
362
00:18:59,630 --> 00:19:01,280
And so now immediately with this,
363
00:19:01,280 --> 00:19:05,280
the heading secondary also has this color, this font weight,
364
00:19:05,280 --> 00:19:07,493
and also the decreased letter spacing.
365
00:19:08,440 --> 00:19:10,963
Now of course the font size should be smaller.
366
00:19:12,930 --> 00:19:17,323
So let's go maybe one step down from 52 to 44.
367
00:19:19,840 --> 00:19:22,460
So that's exactly why we have the system.
368
00:19:22,460 --> 00:19:24,015
Otherwise.
369
00:19:24,015 --> 00:19:27,390
Now we would have to think about this font size.
370
00:19:27,390 --> 00:19:32,240
So it should be used 40 pixels or 45 or 35, but no,
371
00:19:33,400 --> 00:19:34,660
we don't have to think.
372
00:19:34,660 --> 00:19:36,560
We just choose it's value.
373
00:19:36,560 --> 00:19:39,803
And then we just check out if it looks nice or not,
374
00:19:40,920 --> 00:19:42,973
and let's actually do that right now.
375
00:19:44,420 --> 00:19:48,180
And yeah, I think that is not too big.
376
00:19:48,180 --> 00:19:50,430
The color is also good.
377
00:19:50,430 --> 00:19:52,570
We just didn't define any line height
378
00:19:52,570 --> 00:19:56,450
because it is just one line, at least in this width,
379
00:19:56,450 --> 00:20:00,000
because imagine that the page gets small.
380
00:20:00,000 --> 00:20:03,590
Well then the line height is not too well-defined
381
00:20:03,590 --> 00:20:05,540
so let's give it some line height here.
382
00:20:07,560 --> 00:20:10,120
And since the text is still quite large,
383
00:20:10,120 --> 00:20:12,123
let's go with 1.2 here.
384
00:20:14,540 --> 00:20:19,273
And that didn't look as if it changed a lot, but yeah,
385
00:20:19,273 --> 00:20:21,390
but still, that looks good.
386
00:20:21,390 --> 00:20:22,880
So let's keep it this way
387
00:20:24,680 --> 00:20:26,990
and yeah, about the color here,
388
00:20:26,990 --> 00:20:30,083
I just chose it at the beginning of the section here,
389
00:20:30,980 --> 00:20:34,720
it seemed kind of randomly right, just as 333.
390
00:20:34,720 --> 00:20:35,850
So I told you back then
391
00:20:35,850 --> 00:20:38,890
that I simply liked to use these gray colors,
392
00:20:38,890 --> 00:20:40,950
which all have the same number.
393
00:20:40,950 --> 00:20:45,570
So we used 333 for basically the darker text
394
00:20:45,570 --> 00:20:48,800
and then 555 for the lighter text.
395
00:20:48,800 --> 00:20:50,720
But of course we could also have,
396
00:20:50,720 --> 00:20:53,050
for example, used a shadow
397
00:20:54,730 --> 00:20:57,193
or actually a shade.
398
00:20:58,230 --> 00:21:01,960
So for example, instead of using like 333
399
00:21:01,960 --> 00:21:05,290
we could have used this value here.
400
00:21:05,290 --> 00:21:09,123
So just to illustrate that, let me actually do that here.
401
00:21:11,670 --> 00:21:15,260
So just declaring it after this one.
402
00:21:15,260 --> 00:21:16,930
So it will then override it.
403
00:21:16,930 --> 00:21:18,893
So no need to replace that one.
404
00:21:20,220 --> 00:21:25,220
And so you'll see that this still looks quite decent.
405
00:21:25,470 --> 00:21:26,960
Maybe it's a bit too dark.
406
00:21:26,960 --> 00:21:28,110
Let's go with this one
407
00:21:30,010 --> 00:21:31,830
and I'm not gonna keep this anyway,
408
00:21:31,830 --> 00:21:34,530
but just to show you
409
00:21:34,530 --> 00:21:37,700
that this actually does look quite good as well.
410
00:21:37,700 --> 00:21:39,640
And it nicely integrates actually
411
00:21:39,640 --> 00:21:41,420
with the rest of the colors,
412
00:21:41,420 --> 00:21:43,180
like with this orange color.
413
00:21:43,180 --> 00:21:46,690
And that makes sense because well that was actually
414
00:21:46,690 --> 00:21:48,930
the starting point of creating this color
415
00:21:48,930 --> 00:21:50,013
in the first place.
416
00:21:50,850 --> 00:21:53,180
Now, the reason why I'm not using this color here
417
00:21:53,180 --> 00:21:54,490
for our design
418
00:21:54,490 --> 00:21:57,220
and a similar one for the rest of the text
419
00:21:57,220 --> 00:22:00,210
is because that will kind of move us away a little bit
420
00:22:00,210 --> 00:22:04,510
from the typical look of the startup website personality,
421
00:22:04,510 --> 00:22:07,350
which uses more of the gray color
422
00:22:07,350 --> 00:22:11,060
than a really this like earthy looking colors.
423
00:22:11,060 --> 00:22:14,063
So colors like brown and things like that.
424
00:22:14,910 --> 00:22:17,250
So here we are going more for the,
425
00:22:17,250 --> 00:22:20,750
a little bit more traditional gray, I would say.
426
00:22:20,750 --> 00:22:23,780
And so that's why I simply went with a regular gray
427
00:22:23,780 --> 00:22:25,210
instead of using a shade
428
00:22:26,170 --> 00:22:29,040
also instead of using a shade, we could,
429
00:22:29,040 --> 00:22:32,780
of course also use the color from open color here,
430
00:22:32,780 --> 00:22:35,040
for example, this one here.
431
00:22:35,040 --> 00:22:37,910
So this is actually quite similar to 333.
432
00:22:37,910 --> 00:22:42,910
And so why not try that out as well?
433
00:22:43,550 --> 00:22:46,580
I will actually keep this here just as a comment,
434
00:22:46,580 --> 00:22:49,723
like as a reference that you could have used that one.
435
00:22:51,020 --> 00:22:52,013
Okay.
436
00:22:53,530 --> 00:22:56,290
And so this looks decent as well.
437
00:22:56,290 --> 00:22:58,210
However, these gray colors here,
438
00:22:58,210 --> 00:23:00,890
they have a little bit of a blue touch.
439
00:23:00,890 --> 00:23:03,500
So if you look closely, they are a gray,
440
00:23:03,500 --> 00:23:06,883
but they are pushed a little bit into the blue direction.
441
00:23:08,010 --> 00:23:12,740
So I think that doesn't really fit our background color here
442
00:23:12,740 --> 00:23:16,100
and of course, or primary color as well.
443
00:23:16,100 --> 00:23:18,633
And so that's the reason why I went against that.
444
00:23:19,890 --> 00:23:22,730
So just trying to give you some more insights
445
00:23:22,730 --> 00:23:26,530
into the design choices here, right.
446
00:23:26,530 --> 00:23:29,440
And so again, for a startup personality,
447
00:23:29,440 --> 00:23:31,370
I think one of these neutral grays
448
00:23:31,370 --> 00:23:34,993
that is really a true gray works just fine.
449
00:23:35,890 --> 00:23:40,363
Okay. But anyway, now about the subheading,
450
00:23:42,420 --> 00:23:43,253
first of all,
451
00:23:43,253 --> 00:23:45,960
let's actually make it a block
452
00:23:45,960 --> 00:23:48,500
because remember that we used a span
453
00:23:48,500 --> 00:23:50,880
and the span is an inline element.
454
00:23:50,880 --> 00:23:52,820
And so we need to make it a block
455
00:23:52,820 --> 00:23:54,373
before doing anything else.
456
00:23:55,490 --> 00:23:57,580
Then let's give it a font size
457
00:23:57,580 --> 00:24:00,322
and let's just start at 20 pixels
458
00:24:00,322 --> 00:24:02,722
and we can always tone it down a little bit then
459
00:24:03,770 --> 00:24:05,160
and the font the weight of course
460
00:24:05,160 --> 00:24:06,860
needs to be a bit smaller now.
461
00:24:06,860 --> 00:24:09,477
So not 700, maybe 500.
462
00:24:10,660 --> 00:24:13,030
So slightly above the regular.
463
00:24:13,030 --> 00:24:14,290
So medium.
464
00:24:14,290 --> 00:24:16,090
I think I called that.
465
00:24:16,090 --> 00:24:20,053
And now here, remember we want our primary color.
466
00:24:21,060 --> 00:24:23,300
So that's, that's already here.
467
00:24:23,300 --> 00:24:25,350
So that's this one,
468
00:24:25,350 --> 00:24:28,880
but actually we should not use this one
469
00:24:28,880 --> 00:24:31,530
because remember that there is some issues
470
00:24:31,530 --> 00:24:34,340
with using this colors on
471
00:24:34,340 --> 00:24:36,310
and let me show it to you.
472
00:24:36,310 --> 00:24:39,040
So remember using this orange color
473
00:24:39,040 --> 00:24:41,530
on this background color right here.
474
00:24:41,530 --> 00:24:45,500
So the color of contrast ratio was not perfect for that.
475
00:24:45,500 --> 00:24:48,166
And so I will actually use this orange color for the
476
00:24:48,166 --> 00:24:49,743
subheadings as well.
477
00:24:50,760 --> 00:24:51,593
Now in this case,
478
00:24:51,593 --> 00:24:54,890
of course it is on the regular white background.
479
00:24:54,890 --> 00:24:56,420
So it might be okay,
480
00:24:56,420 --> 00:25:00,480
but probably at some later point it will not.
481
00:25:00,480 --> 00:25:04,293
And so let's give it again, this darker orange color.
482
00:25:05,430 --> 00:25:06,263
And just by the way,
483
00:25:06,263 --> 00:25:09,510
I'm noticing here that the text is way too big.
484
00:25:09,510 --> 00:25:14,260
So let's put it a little bit down.
485
00:25:14,260 --> 00:25:15,093
So maybe 1.6
486
00:25:17,775 --> 00:25:21,357
and here I'm going for that darker tone now.
487
00:25:22,730 --> 00:25:23,890
Okay.
488
00:25:23,890 --> 00:25:26,963
Let's now also make it uppercase.
489
00:25:28,180 --> 00:25:31,760
So text transform uppercase,
490
00:25:31,760 --> 00:25:33,510
and also some margin to the bottom
491
00:25:36,850 --> 00:25:39,573
of 1.6 rem.
492
00:25:40,600 --> 00:25:42,160
And by the way,
493
00:25:42,160 --> 00:25:44,350
maybe you've been noticing something
494
00:25:44,350 --> 00:25:47,340
that I have been doing for some time actually,
495
00:25:47,340 --> 00:25:50,483
which is to write these property names here in VS code,
496
00:25:51,380 --> 00:25:53,290
simply like this.
497
00:25:53,290 --> 00:25:57,890
So without any hyphen, for example, and simply keep writing.
498
00:25:57,890 --> 00:26:00,810
And so that works because VS code will still recognize
499
00:26:00,810 --> 00:26:03,840
what I want when I then use the auto-complete
500
00:26:03,840 --> 00:26:05,480
with enter like this
501
00:26:06,380 --> 00:26:07,213
Right.
502
00:26:07,213 --> 00:26:11,380
And I can even like do it just with the first few words,
503
00:26:11,380 --> 00:26:16,040
and then I can start writing the B O for bottom
504
00:26:16,040 --> 00:26:19,310
and then still VS code will recognize it.
505
00:26:19,310 --> 00:26:22,420
And I also do it for stuff like background color,
506
00:26:22,420 --> 00:26:25,380
so I can immediately start writing the color
507
00:26:25,380 --> 00:26:27,810
and then immediately it will give me the property
508
00:26:27,810 --> 00:26:28,860
that I'm looking for.
509
00:26:30,310 --> 00:26:34,710
Right. So that's just another nice trick of VS code
510
00:26:34,710 --> 00:26:38,410
and yeah, here we're just missing some
511
00:26:38,410 --> 00:26:41,570
big spacing below this heading.
512
00:26:41,570 --> 00:26:44,300
And also we can give this one here,
513
00:26:44,300 --> 00:26:45,760
an additional touch
514
00:26:45,760 --> 00:26:49,040
by adding some space between the letters.
515
00:26:49,040 --> 00:26:51,620
So when the text is really small and uppercase,
516
00:26:51,620 --> 00:26:52,930
it looks nicer.
517
00:26:52,930 --> 00:26:55,570
Like it gives it some space to breathe
518
00:26:55,570 --> 00:26:57,693
if we add some letter spacing there.
519
00:26:58,930 --> 00:27:01,443
So I believe that will look really nice.
520
00:27:02,730 --> 00:27:07,730
So letter spacing like 0.75 pixels,
521
00:27:08,120 --> 00:27:11,340
and of course you can experiment around with this
522
00:27:11,340 --> 00:27:12,513
as you like.
523
00:27:13,420 --> 00:27:14,410
And actually this is already
524
00:27:14,410 --> 00:27:17,880
the second time we have used some letter spacing.
525
00:27:17,880 --> 00:27:22,880
So let's add that here to our design decisions basically.
526
00:27:27,020 --> 00:27:28,380
So we have used this one
527
00:27:28,380 --> 00:27:31,643
and also minus 0.5 pixels before.
528
00:27:34,760 --> 00:27:39,760
And we have also already used a 1.2 at some point.
529
00:27:39,890 --> 00:27:43,430
So let's call this medium, for example,
530
00:27:43,430 --> 00:27:44,950
the name doesn't really matter.
531
00:27:44,950 --> 00:27:47,170
It's just so we keep on
532
00:27:47,170 --> 00:27:50,593
keeping track basically of our design decisions.
533
00:27:52,290 --> 00:27:54,170
Okay. Now just here,
534
00:27:54,170 --> 00:27:57,363
let's add some big space to the bottom here.
535
00:28:00,030 --> 00:28:03,230
So again, using that trick of simply starting
536
00:28:03,230 --> 00:28:05,990
to write the second part of the property name
537
00:28:07,000 --> 00:28:07,870
and here again,
538
00:28:07,870 --> 00:28:11,263
let's actually go for 9.6 rem.
539
00:28:12,210 --> 00:28:13,190
Okay.
540
00:28:13,190 --> 00:28:16,330
You might think that this maybe looks a bit too much
541
00:28:16,330 --> 00:28:19,920
because that is also the padding of the section itself,
542
00:28:19,920 --> 00:28:23,560
but it will not be, let me explain your why.
543
00:28:23,560 --> 00:28:27,003
And so the reason is because as I said, we have 9.6 REM,
544
00:28:28,770 --> 00:28:30,980
so 96 pixels here.
545
00:28:30,980 --> 00:28:33,370
So between the beginning of the section
546
00:28:33,370 --> 00:28:35,670
and the beginning of the content,
547
00:28:35,670 --> 00:28:38,670
but we also have 96 pixels here.
548
00:28:38,670 --> 00:28:42,560
So this one is also plus another 96 pixels.
549
00:28:42,560 --> 00:28:46,870
And so here we have like a 192 pixels, I think,
550
00:28:46,870 --> 00:28:48,980
between all of this.
551
00:28:48,980 --> 00:28:51,870
And so having then 92 pixels here
552
00:28:51,870 --> 00:28:53,763
should be then good again.
553
00:28:54,740 --> 00:28:57,800
So basically to have this part here,
554
00:28:57,800 --> 00:29:01,140
so this heading stand out nicely from the content
555
00:29:01,140 --> 00:29:02,610
that comes next
556
00:29:02,610 --> 00:29:05,810
and that will, of course be, way better visible
557
00:29:05,810 --> 00:29:08,670
once we actually style all of this here,
558
00:29:08,670 --> 00:29:11,860
but let's leave that to the next lecture actually.
559
00:29:11,860 --> 00:29:14,093
So hopefully I see you there soon.
39784
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.