Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,060 --> 00:00:06,850
In this video, what we're gonna do is build out our landing page.
2
00:00:07,320 --> 00:00:10,440
So let's remember exactly how our landing page looked like.
3
00:00:10,450 --> 00:00:12,000
So we had the nav bar.
4
00:00:12,300 --> 00:00:18,300
Then we had this H1 header that's just says, Welcome to restaurant Li, which is our application.
5
00:00:18,600 --> 00:00:26,490
And then we had a button or a link that will allow us to navigate to the list of top 50 restaurants.
6
00:00:27,330 --> 00:00:29,520
So very, very simple landing page.
7
00:00:30,000 --> 00:00:33,750
So let's actually go ahead and begin with the nav bar.
8
00:00:34,200 --> 00:00:40,680
Now, the that bar would be a relatively complex and cumbersome thing to build ourself.
9
00:00:41,130 --> 00:00:47,070
But we are actually going to utilize bootstrap for this, and you're going to see how much easier it
10
00:00:47,070 --> 00:00:48,030
is going to be.
11
00:00:48,750 --> 00:00:54,450
So let's actually go ahead and like usual, what we're going to do is we're going to create a component
12
00:00:54,450 --> 00:00:55,770
folder for this.
13
00:00:56,340 --> 00:00:57,060
So let's go over here.
14
00:00:57,060 --> 00:00:58,920
We're going to say components.
15
00:00:59,280 --> 00:01:03,000
And then over here we're going to say nav dot view.
16
00:01:03,630 --> 00:01:08,580
And let me go ahead and rename that to nav dot view.
17
00:01:09,030 --> 00:01:12,000
So over here, we're going to house our component.
18
00:01:12,170 --> 00:01:14,550
We're going to have our template tags like.
19
00:01:14,550 --> 00:01:20,340
So now what we're going to do is we're going to go to bootstrap right over here, and then we're going
20
00:01:20,340 --> 00:01:26,760
to go to the components section inside of the component section, and we're going to click on NAV Bar.
21
00:01:27,060 --> 00:01:32,100
Once we click on NAV Bar, you're going to see this nav bar right over here.
22
00:01:32,400 --> 00:01:36,090
And this is actually the one that we are going to be utilizing for our North Bar.
23
00:01:36,450 --> 00:01:37,260
So I'm going to go here.
24
00:01:37,270 --> 00:01:42,330
I'm going to click copied to Clipboard to just get all of this code, and I'm going to go ahead and
25
00:01:42,330 --> 00:01:44,490
just paste it right over here.
26
00:01:45,300 --> 00:01:49,500
Now, what I'm going to do is I'm going to get rid of this container.
27
00:01:50,100 --> 00:01:54,360
And over here, I'm just going to say hello, get rid of that as well.
28
00:01:54,720 --> 00:01:58,340
And then I'm going to render that nav bar.
29
00:01:58,350 --> 00:02:01,320
So I'm going to go ahead and render that nav.
30
00:02:01,950 --> 00:02:02,850
So let's go over here.
31
00:02:02,850 --> 00:02:06,540
And as you can see, we have our wonderful nav bar.
32
00:02:06,930 --> 00:02:09,540
Now, of course, there's quite a bit of things that we need to change.
33
00:02:09,810 --> 00:02:12,540
So the first thing that I want to do is I want to change the color of this.
34
00:02:12,540 --> 00:02:13,700
I don't want it to be light.
35
00:02:13,710 --> 00:02:15,690
I would rather it be dark.
36
00:02:16,200 --> 00:02:20,160
So to do that, what we're going to do here is we're in the NAV Tigre over here.
37
00:02:20,160 --> 00:02:21,960
You can see there's a bunch of classes.
38
00:02:22,320 --> 00:02:25,500
We're going to specifically focus on these classes right over here.
39
00:02:25,830 --> 00:02:33,570
We're going to change this from nav bar light to nav bar dark and from big light to big dark.
40
00:02:33,840 --> 00:02:37,230
That's pretty much all we need to do to get it nice and dark.
41
00:02:38,100 --> 00:02:41,390
Now, over here, there's a bunch of different elements that we don't need.
42
00:02:41,400 --> 00:02:46,890
For example, this button here, we can completely get rid of it over here.
43
00:02:47,130 --> 00:02:52,800
Let's go ahead and use this anchor tag and we're going to keep this as home, but we're going to this
44
00:02:52,800 --> 00:02:56,250
should redirect us to slash right over here.
45
00:02:56,250 --> 00:02:58,880
This should redirect us to restaurant.
46
00:02:58,890 --> 00:03:00,000
So we're going to say slash.
47
00:03:00,480 --> 00:03:01,980
So restaurants here.
48
00:03:02,950 --> 00:03:08,080
So over here it's going to be slash restaurants like so.
49
00:03:08,860 --> 00:03:16,240
And then over here I think we can remove this whole l i let's get rid of that.
50
00:03:17,260 --> 00:03:23,260
Let's get rid of this ally and let's get rid of this form entirely as well.
51
00:03:23,830 --> 00:03:28,030
So now you should have enough bar that looks a little something like this.
52
00:03:28,660 --> 00:03:37,270
So the last thing that I want to do is I want to add one more style in order to move this bar right
53
00:03:37,270 --> 00:03:39,280
over here all the way to the left.
54
00:03:40,000 --> 00:03:45,520
So in order to do this, what we're going to do is I am going to go right over here to this ul this
55
00:03:45,520 --> 00:03:51,940
housing these allies, and I am going to call this margin l auto.
56
00:03:51,940 --> 00:03:53,470
So margin left auto.
57
00:03:53,680 --> 00:03:57,010
No, I don't believe that's an actual tag inside of bootstrap.
58
00:03:57,310 --> 00:04:02,860
So what we're going to do here is we're going to manually say margin left and then auto.
59
00:04:03,190 --> 00:04:08,500
So what this is going to do is it's going to move it to the right as much as possible so we can go ahead
60
00:04:08,500 --> 00:04:09,280
and save that.
61
00:04:09,280 --> 00:04:10,060
And there we go.
62
00:04:10,480 --> 00:04:16,480
So you can see now we have our nav bar and when we click on these specific links, you can see it actually
63
00:04:16,480 --> 00:04:19,600
redirects us to slash restaurant.
64
00:04:19,600 --> 00:04:24,460
So if I go here might be a little bit too small for you guys to see, but I just copy the to the clipboard.
65
00:04:24,760 --> 00:04:26,500
This is what it redirected me to.
66
00:04:26,800 --> 00:04:31,930
And then when I click on like nav bar or home, then it's going to redirect to me.
67
00:04:31,930 --> 00:04:33,850
Will actually over here with the nav bar.
68
00:04:33,850 --> 00:04:39,610
We got to change that to slash and honestly this go ahead and change this to restaurant.
69
00:04:39,940 --> 00:04:46,690
Lee Keep in mind, restaurant is kind of a tough word to spell, so make sure that you're spelling it
70
00:04:46,690 --> 00:04:49,240
correctly, especially on these right over here.
71
00:04:49,600 --> 00:04:51,880
So make sure that you spell that correctly.
72
00:04:52,390 --> 00:04:53,380
So let's go over here.
73
00:04:53,380 --> 00:05:00,130
And now if I click on this, you can see maybe very faintly that it's going to redirect us to the home
74
00:05:00,130 --> 00:05:00,550
page.
75
00:05:01,300 --> 00:05:02,080
So that's pretty much it.
76
00:05:02,080 --> 00:05:03,730
So now we've got our nav bar.
77
00:05:03,790 --> 00:05:09,970
Now what I'm going to do actually is I'm going to create a div and inside of this div I'm going to create
78
00:05:09,970 --> 00:05:10,870
a container.
79
00:05:11,050 --> 00:05:14,260
I'm going to style this container manually as well.
80
00:05:14,620 --> 00:05:16,330
So I'm going to say container.
81
00:05:16,810 --> 00:05:22,930
And then over here I'm going to say this is going to have a text, a line of center, and I believe
82
00:05:22,930 --> 00:05:24,880
that should be really it.
83
00:05:25,300 --> 00:05:27,520
Now, right over here, we're going to say H1.
84
00:05:27,790 --> 00:05:32,530
We're just going to simply say welcome to press to Toronto the like.
85
00:05:32,530 --> 00:05:35,410
So so there we go we have our nice header.
86
00:05:35,590 --> 00:05:41,350
Obviously not the prettiest application in the world, but whatever we're here to learn not to build
87
00:05:41,350 --> 00:05:42,700
beautiful applications.
88
00:05:43,300 --> 00:05:46,360
So let's give it a margin top of around five rims.
89
00:05:46,360 --> 00:05:47,500
I like that a lot.
90
00:05:47,890 --> 00:05:53,160
And then right over here, let's also add another anchor tag that's going to take us to restaurants.
91
00:05:53,170 --> 00:05:56,950
Keep in mind, again, try your best to spell this correctly.
92
00:05:57,400 --> 00:05:59,350
This is a difficult word to spell.
93
00:05:59,350 --> 00:06:00,610
Restaurants.
94
00:06:00,820 --> 00:06:02,350
So restaurants with an S.
95
00:06:03,460 --> 00:06:08,740
Then over here, go to restaurants or whatever.
96
00:06:10,030 --> 00:06:10,780
Like so.
97
00:06:11,500 --> 00:06:11,920
Okay.
98
00:06:11,920 --> 00:06:15,460
So that's pretty much it for the landing page.
99
00:06:15,760 --> 00:06:18,300
Now, over here, we can we can click on it.
100
00:06:18,310 --> 00:06:20,290
We get redirected to slash restaurants.
101
00:06:20,500 --> 00:06:23,960
However, of course, the page is staying exactly the same.
102
00:06:24,490 --> 00:06:30,820
So now what I want to do is I want to have the ability to have multiple pages in my Nux application.
103
00:06:31,150 --> 00:06:34,870
We're going to explore exactly how we can do that in the next video.
9766
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.