Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,453 --> 00:00:04,660
So let's continue working on our layout,
2
00:00:04,660 --> 00:00:06,520
the navigation, the logo.
3
00:00:06,520 --> 00:00:09,050
And for that, let's add some styling.
4
00:00:09,050 --> 00:00:11,060
Again for this, attached,
5
00:00:11,060 --> 00:00:14,320
you find a couple of CSS files.
6
00:00:14,320 --> 00:00:17,790
You find a logo.module.CSS file,
7
00:00:17,790 --> 00:00:21,344
and a main navigation.module.CSS file.
8
00:00:21,344 --> 00:00:23,490
And you should download those,
9
00:00:23,490 --> 00:00:25,890
and add them in your layout folder,
10
00:00:25,890 --> 00:00:27,920
next to the logo JS
11
00:00:27,920 --> 00:00:30,513
and main navigation JS file.
12
00:00:31,690 --> 00:00:34,940
Again, there I'd find some CSS styles for you,
13
00:00:34,940 --> 00:00:37,830
which you can of course, tweak and override.
14
00:00:37,830 --> 00:00:40,530
And in the main navigation JS file,
15
00:00:40,530 --> 00:00:44,210
we can now utilize these CSS files.
16
00:00:44,210 --> 00:00:46,640
We can import classes,
17
00:00:46,640 --> 00:00:51,310
from main dash navigation.module.CSS
18
00:00:51,310 --> 00:00:54,210
to take advantage of CSS modules,
19
00:00:54,210 --> 00:00:56,670
and import the classes that belong
20
00:00:56,670 --> 00:00:59,483
to this component, from the CSS file.
21
00:01:00,650 --> 00:01:02,800
And then, we can add them,
22
00:01:02,800 --> 00:01:04,769
for example, on the header,
23
00:01:04,769 --> 00:01:08,410
we should add a class name of classes.header,
24
00:01:08,410 --> 00:01:10,920
which sets up the styling for this header.
25
00:01:10,920 --> 00:01:13,180
And that is actually the only class we have
26
00:01:13,180 --> 00:01:15,930
to add in the main navigation component,
27
00:01:15,930 --> 00:01:19,550
because, all the Abra selectors are just,
28
00:01:19,550 --> 00:01:22,033
nested selectors then, so to say.
29
00:01:23,750 --> 00:01:26,170
That then allows us to work on the logo.
30
00:01:26,170 --> 00:01:27,850
We can already import it.
31
00:01:27,850 --> 00:01:30,270
So let's add an import to,
32
00:01:30,270 --> 00:01:33,620
of logo, from the logo file,
33
00:01:33,620 --> 00:01:34,480
and then let's work
34
00:01:34,480 --> 00:01:37,720
on that logo file, a little bit.
35
00:01:37,720 --> 00:01:39,390
Now the logo component,
36
00:01:39,390 --> 00:01:42,210
will be a fairly trivial component.
37
00:01:42,210 --> 00:01:46,010
Again, created and export it as we always do.
38
00:01:46,010 --> 00:01:47,970
We will need some styles in here.
39
00:01:47,970 --> 00:01:50,500
So we should import classes,
40
00:01:50,500 --> 00:01:55,500
from logo.module.CSS.
41
00:01:56,130 --> 00:01:58,570
So this CSS file we just added.
42
00:01:58,570 --> 00:02:00,690
And then the logo here for me,
43
00:02:00,690 --> 00:02:03,680
is a simple text-based logo.
44
00:02:03,680 --> 00:02:05,040
I'll just set up a div,
45
00:02:05,040 --> 00:02:08,759
with a text of Max Next Blog.
46
00:02:08,759 --> 00:02:11,540
Of course, again, use your name here,
47
00:02:11,540 --> 00:02:13,720
and then I'll add a class name here of,
48
00:02:13,720 --> 00:02:18,720
classes.logo, using one of the CSS classes
49
00:02:18,790 --> 00:02:21,853
or the only CSS class defined in here.
50
00:02:23,060 --> 00:02:25,620
That will style that logo.
51
00:02:25,620 --> 00:02:28,780
Now we add that logo to main navigation,
52
00:02:28,780 --> 00:02:31,800
and we use main navigation and the layout.
53
00:02:31,800 --> 00:02:34,320
And the layout is then wrapped around,
54
00:02:34,320 --> 00:02:35,700
our rendered component
55
00:02:35,700 --> 00:02:37,650
and underscored app JS.
56
00:02:37,650 --> 00:02:39,690
So that should be everything now.
57
00:02:39,690 --> 00:02:41,910
And if we now go back to our page,
58
00:02:41,910 --> 00:02:43,420
we should see this header here,
59
00:02:43,420 --> 00:02:47,770
which blends into the hero section here, on purpose,
60
00:02:47,770 --> 00:02:50,750
where we have the, logo,
61
00:02:50,750 --> 00:02:51,590
which is clickable,
62
00:02:51,590 --> 00:02:53,380
and takes us to the starting page.
63
00:02:53,380 --> 00:02:55,400
And then our two links here,
64
00:02:55,400 --> 00:02:57,210
which are all the clickable,
65
00:02:57,210 --> 00:02:59,180
but we haven't added any content
66
00:02:59,180 --> 00:03:01,000
for those pages yet.
67
00:03:01,000 --> 00:03:02,040
So at the moment,
68
00:03:02,040 --> 00:03:03,363
they won't do anything.
69
00:03:04,250 --> 00:03:06,070
But that is now the layout added,
70
00:03:06,070 --> 00:03:07,770
and the navigation added.
71
00:03:07,770 --> 00:03:09,780
And with that, let's come back
72
00:03:09,780 --> 00:03:12,050
to the starting page and complete it,
73
00:03:12,050 --> 00:03:14,520
by adding the featured posts below,
74
00:03:14,520 --> 00:03:16,193
the hero section here.
5236
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.