Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,820 --> 00:00:07,870
The last thing that we have to do to finish up our footer if you remember from our design is to add
2
00:00:07,870 --> 00:00:13,020
these social media icons here in the bottom right hand corner.
3
00:00:13,170 --> 00:00:15,840
Make sure that these are lined up correctly.
4
00:00:15,840 --> 00:00:18,910
We're going to be using the grid system again.
5
00:00:19,080 --> 00:00:26,310
So let's actually start by coming up to the top and under our footer adornment let's import Facebook
6
00:00:26,790 --> 00:00:37,650
from up to directories assets and then Facebook dot SPG and then we'll import Twitter from the same
7
00:00:37,650 --> 00:00:39,010
place assets.
8
00:00:39,060 --> 00:00:48,250
But Twitter dot SPG and we'll import Instagram from the same place of assets.
9
00:00:48,450 --> 00:00:56,820
Instagram and then we'll come down here but below our image this time and it will create a another grid
10
00:00:57,470 --> 00:01:00,080
container container.
11
00:01:00,150 --> 00:01:08,340
This grid container is going to contain a grid item and inside this item let's create an image with
12
00:01:08,340 --> 00:01:15,380
an alt tag of Facebook logo a source of Facebook.
13
00:01:15,480 --> 00:01:22,400
And then we can go ahead and close that off let's create all of the items for the other icons.
14
00:01:22,420 --> 00:01:28,620
So a grid item within image with an alter of Twitter logo.
15
00:01:28,690 --> 00:01:31,890
And that's the source of Twitter.
16
00:01:32,080 --> 00:01:43,650
Close that off and then our last grid item with an image Instagram logo source of Instagram.
17
00:01:43,740 --> 00:01:49,660
Close that off and now we can go ahead and save this to see how far that gets us.
18
00:01:49,990 --> 00:01:54,250
And at first you won't really notice anything except our slash.
19
00:01:54,250 --> 00:02:02,290
It now appears is messed up and that is due to our images being rendered below it although you don't
20
00:02:02,290 --> 00:02:08,340
see any images and that's actually because we haven't set a height or width for these images.
21
00:02:08,560 --> 00:02:19,500
So let's go ahead and add a class name of classes dot icon to each of the social media icons.
22
00:02:19,510 --> 00:02:26,650
So the class name to each of these and then we can come up to our styles object and let's add the icon
23
00:02:26,710 --> 00:02:38,400
style here will start with just a height of 4 M and a width of 4 M also if we scroll back down to our
24
00:02:38,400 --> 00:02:45,960
icons we haven't actually sent anything to navigate the user to the actual pages and so on are grid
25
00:02:46,050 --> 00:02:46,980
items.
26
00:02:46,980 --> 00:02:55,050
Let's add a component and instead of the link we're actually going to set this to a regular h t email
27
00:02:55,050 --> 00:02:55,680
element.
28
00:02:55,680 --> 00:03:03,060
So inside of quotation marks just put in a four hour anchor tag which will give each of these grid items
29
00:03:03,090 --> 00:03:06,350
the same properties as an anchor tag.
30
00:03:06,360 --> 00:03:11,170
So that means we can add a Harith which will tell the link where to go.
31
00:03:11,250 --> 00:03:18,830
In this case too w w w dot Facebook dot com I'm just going to put the bass.
32
00:03:18,830 --> 00:03:20,950
You are rails for these companies in here.
33
00:03:20,970 --> 00:03:24,370
But if you want to go ahead and add your own page or something feel free to do so.
34
00:03:24,410 --> 00:03:33,470
But we'll just leave that Facebook and then we'll come down and we'll add a components equals a for
35
00:03:33,470 --> 00:03:37,080
both of these component equals A.
36
00:03:37,220 --> 00:03:46,080
And then we'll also come up and add our half of in this case to be WW dot Twitter and dot com.
37
00:03:46,160 --> 00:03:54,850
And in this case Sheriff w w w dot Instagram dot com go ahead and save this now.
38
00:03:54,860 --> 00:04:00,790
We'll see the page refresh and you can see our nice icons underneath our slash.
39
00:04:01,130 --> 00:04:08,420
If I go ahead and click this Instagram logo you'll see that it took me to just slash Instagram up here
40
00:04:08,420 --> 00:04:11,650
in the page which obviously is not the correct page.
41
00:04:11,660 --> 00:04:12,920
We want to be on.
42
00:04:13,040 --> 00:04:19,250
And that's because we actually need to tell these links to open up in a new tab or to open them in the
43
00:04:19,250 --> 00:04:19,700
app.
44
00:04:19,700 --> 00:04:27,590
If a user is on a mobile device and so we also need to come and add to these grid items let's also add
45
00:04:27,830 --> 00:04:39,030
a real property set to quotations and then no opener so no spaces and then a space no refer work.
46
00:04:39,770 --> 00:04:41,390
So make sure you have those correct.
47
00:04:41,750 --> 00:04:50,840
And then we'll also add a target equal to quotation marks underscore blink and this will tell these
48
00:04:50,840 --> 00:04:54,020
links to open up in a new page or the app.
49
00:04:54,050 --> 00:05:01,610
So let's go ahead and we'll copy both both of these props and paste that onto not the image but our
50
00:05:01,640 --> 00:05:07,430
other grid items and we can go ahead and save this now and the page will refresh.
51
00:05:07,500 --> 00:05:14,180
Go ahead and click one of those links to now be taken and it actually looks like it is going here to
52
00:05:14,210 --> 00:05:15,580
this wrong U.R.L..
53
00:05:15,620 --> 00:05:17,270
So let's go for all of these.
54
00:05:17,270 --> 00:05:22,450
Make sure you add an H TTP colon slash slash in front of it.
55
00:05:22,610 --> 00:05:30,400
And that will just make sure that we're actually getting to the right page at age GDP slash slash.
56
00:05:30,530 --> 00:05:37,300
And actually make age GDP s just for safety and if we go ahead and save that now the page will refresh.
57
00:05:37,340 --> 00:05:42,200
And now if I try and go to one of these links you'll see that it takes me over to Instagram so I'll
58
00:05:42,500 --> 00:05:49,430
close off out of that but you can see that the links are working these icons however are obviously not
59
00:05:49,430 --> 00:05:53,460
in the right place because we don't want it to be underneath the slash.
60
00:05:53,510 --> 00:05:59,790
We want it to be sitting on top of it just like these links were and be able to move around independently.
61
00:05:59,790 --> 00:06:05,900
So let's go ahead and on our grid container where all of these social media icons are.
62
00:06:05,960 --> 00:06:14,410
Let's go ahead and add a class name here of classes dot social social container.
63
00:06:14,750 --> 00:06:22,490
So then we can come up to our styles object and we'll add these social container styles beginning with
64
00:06:22,490 --> 00:06:28,700
a position of absolute just as we had done for the footer links container.
65
00:06:28,790 --> 00:06:31,980
So let's save this and see where that gets us.
66
00:06:32,000 --> 00:06:38,930
And now you can see that we have this gap underneath the footer where our icons are actually being hidden
67
00:06:39,720 --> 00:06:43,100
to go ahead and pull those back up into view.
68
00:06:43,100 --> 00:06:52,460
Let's go ahead and set a margin top on our social container to negative 6 m and so that's going to move
69
00:06:52,460 --> 00:06:59,780
our container up by setting the negative margin on the top which should bring them back into view.
70
00:06:59,780 --> 00:07:05,870
So if we go ahead and we save that we now see that our icons are sitting on top of the footer where
71
00:07:05,870 --> 00:07:08,130
they're supposed to be.
72
00:07:08,140 --> 00:07:14,560
Now we have the problem though that they're on the wrong side so to get them over onto that right side
73
00:07:14,800 --> 00:07:22,090
let's go ahead and specify a right property which tells the elements how far their edges should be from
74
00:07:22,090 --> 00:07:27,520
the right edge of the screen and we'll set this to one point five m.
75
00:07:27,520 --> 00:07:34,060
And now if we save that we'll see the screen refresh and it still isn't in the right place but that's
76
00:07:34,060 --> 00:07:41,080
because we need to actually go down to our grid container where we're setting these social icons and
77
00:07:41,080 --> 00:07:51,310
we need to add a justify property set to flex end and ASOS since we are using this container with the
78
00:07:51,310 --> 00:07:59,080
default direction of row the justify property is going to target our main axis which is the left and
79
00:07:59,080 --> 00:08:07,150
right horizontal axis and setting the Flex end property will push these icons over to the far right
80
00:08:07,330 --> 00:08:09,070
end of that main axis.
81
00:08:09,070 --> 00:08:15,220
So let's go ahead and save the code now and we'll see there are icons were properly pushed over to the
82
00:08:15,220 --> 00:08:23,280
right edge while still maintaining that extra little margin from our right property now I also want
83
00:08:23,280 --> 00:08:30,450
to add a little more space between those icons themselves and so just like we did for the footer links.
84
00:08:30,480 --> 00:08:36,930
Let's come up to the container again and we'll add a spacing property so that we can space out all of
85
00:08:36,930 --> 00:08:41,590
the grid items inside this container which are icons.
86
00:08:41,700 --> 00:08:45,670
So we'll add a spacing of two just as we did before.
87
00:08:45,690 --> 00:08:52,780
We'll save that and we'll see the page refresh to now give us a little better spacing between our icons.
88
00:08:53,040 --> 00:08:58,710
If we go ahead now and we start shrinking our page down we'll see the links disappear.
89
00:08:58,710 --> 00:09:06,390
But our icons remain there as we continue to shrink down the page all the way down to our smallest size
90
00:09:07,360 --> 00:09:14,640
at this small size however you can see that those icons do look a bit too large and kind of out of place.
91
00:09:14,670 --> 00:09:21,190
So let's go ahead and add some styles to make the icons responsive to our screen size ensuring the best
92
00:09:21,230 --> 00:09:23,610
look across all devices.
93
00:09:23,610 --> 00:09:28,970
So let's come up to our styles object and under the icon.
94
00:09:29,040 --> 00:09:37,290
Let's go ahead and we're going to add a breakpoint here using the theme dot breakpoints syntax to specify
95
00:09:37,320 --> 00:09:41,910
when we are down below the extra small breakpoint.
96
00:09:41,940 --> 00:09:52,440
So for extra small or below then we're going to change our height to 2.5 M and do the same for our width
97
00:09:52,740 --> 00:09:58,660
as well 2.5 M we can save this and the screen will refresh.
98
00:09:58,660 --> 00:10:04,270
And now we can see that we've got much smaller icons there that look like they're sized appropriately
99
00:10:04,270 --> 00:10:06,530
for the screen.
100
00:10:06,540 --> 00:10:08,140
Now this looks pretty good.
101
00:10:08,230 --> 00:10:14,620
But if you go ahead and open the development server up on your phone you might notice that the icons
102
00:10:14,620 --> 00:10:17,630
could use a little bit of pushing over still.
103
00:10:17,650 --> 00:10:20,550
I think that there's still just a little out of place.
104
00:10:20,650 --> 00:10:27,250
And so if we come over and let's actually just copy this breakpoint here and on our social container
105
00:10:27,490 --> 00:10:34,510
we'll add that breakpoint but get rid of these properties and just add a right property and we'll overwrite
106
00:10:34,510 --> 00:10:37,800
this to just zero point six m.
107
00:10:37,870 --> 00:10:41,170
And so if we save this we'll see at the page refresh.
108
00:10:41,170 --> 00:10:48,070
And now these icons are going to be much more closer to the edge for mobile devices which I think gives
109
00:10:48,070 --> 00:10:49,680
it a much cleaner look.
110
00:10:49,690 --> 00:10:55,700
And if you don't believe me then pull it up on your phone yourself and I'm sure that you will see that.
111
00:10:55,750 --> 00:10:59,680
And with that we have already completely finished up our footer.
112
00:10:59,680 --> 00:11:01,810
It really wasn't much to do here.
113
00:11:01,810 --> 00:11:05,680
We just have to kind of wrap our heads around the grid component.
114
00:11:05,680 --> 00:11:09,790
But this was a really good example to use for learning the grid.
115
00:11:09,880 --> 00:11:16,410
Before we get into the actual more complex layouts of the content on our different pages.
116
00:11:16,810 --> 00:11:23,210
That is when we're really going to have to worry more about how content is resizing for different breakpoints.
117
00:11:23,290 --> 00:11:29,710
And so by getting the core functionality of how the grid system works in this less complex example I
118
00:11:29,710 --> 00:11:35,020
think that that's going to make it a lot easier for you guys to focus on the responsive aspects of it
119
00:11:35,260 --> 00:11:37,370
when we move on to the later sections.
120
00:11:37,570 --> 00:11:43,210
So you can see if we go ahead we can make our screen bigger again and our footer links appear with our
121
00:11:43,210 --> 00:11:51,240
icons still down in place and now the backbone of the site is really finished and everything else kind
122
00:11:51,240 --> 00:11:56,610
of builds on top of what we have just learned and is sandwiched in between the two components we have
123
00:11:56,610 --> 00:11:57,810
just created.
124
00:11:57,840 --> 00:12:03,120
So these really weren't necessary for everything else that we're going to do and have come together
125
00:12:03,120 --> 00:12:04,260
to look great.
126
00:12:05,100 --> 00:12:12,090
So now that we have our header and our footer finished it's time for us to dive into the actual site
127
00:12:12,120 --> 00:12:18,660
itself to get down and nitty gritty with the content with the animations with our complex layouts and
128
00:12:18,660 --> 00:12:23,610
let's go ahead and start getting an idea of what that's going to take what that's going to look like
129
00:12:23,940 --> 00:12:25,200
in the next section.
14744
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.