Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,200 --> 00:00:07,020
The first thing that I want to do now is to shape up this paragraph and make sure that it's not going
2
00:00:07,020 --> 00:00:11,730
to extend all the way across the full width of the screen like that.
3
00:00:11,730 --> 00:00:23,040
So on our grid item container with a direction of column let's add a class name of classes dot heading.
4
00:00:23,280 --> 00:00:30,330
And now we can go up to our style object and add the heading class here.
5
00:00:30,360 --> 00:00:39,000
Let's say a max width of 40 M we can save that and we'll see the page refresh.
6
00:00:39,000 --> 00:00:45,990
And now we've gotten a much better looking paragraph structure we do still have a problem with the arrows
7
00:00:45,990 --> 00:00:51,340
though because if you notice they're actually sitting a bit above the title here.
8
00:00:51,360 --> 00:00:55,070
And I'd really like them to be aligned in the center more with that.
9
00:00:55,380 --> 00:01:06,270
So on each of our grid items wrapping the icon buttons let's add a class name here of classes dot arrow
10
00:01:06,420 --> 00:01:14,280
container and we'll go ahead and copy this class name and we'll paste that only grid item wrapping our
11
00:01:14,310 --> 00:01:16,190
other arrow as well.
12
00:01:17,360 --> 00:01:28,340
Now we can come up to the top and we'll add the arrow container style with a margin top top of just
13
00:01:28,400 --> 00:01:37,370
zero point five m we can save that page will refresh and it moved those arrows down just enough to look
14
00:01:37,370 --> 00:01:43,200
very nicely centered now you may have noticed the when I'm hovering over this button.
15
00:01:43,320 --> 00:01:48,020
It's given us a little background right there and I really just don't care for that.
16
00:01:48,030 --> 00:01:52,820
I don't really think we need those so on the icon button itself.
17
00:01:52,860 --> 00:02:01,010
Let's add a style of background color transparent and then let's go ahead.
18
00:02:01,030 --> 00:02:05,700
We'll copy that and put it on the icon button down here as well.
19
00:02:05,790 --> 00:02:11,400
So once that refreshes you can see that when we hover over them that background is no longer appearing
20
00:02:13,460 --> 00:02:13,910
man.
21
00:02:13,920 --> 00:02:20,790
I just realized the your text is not actually going to look like this because you do not have the body
22
00:02:20,790 --> 00:02:23,370
one variant even set up yet.
23
00:02:23,400 --> 00:02:25,290
And I really apologize for that.
24
00:02:25,290 --> 00:02:31,710
That is completely my fault because I forgot to remove that variant from my theme after I went through
25
00:02:31,710 --> 00:02:32,820
and done testing.
26
00:02:32,910 --> 00:02:36,580
So now let's go over and come to the theme.
27
00:02:36,700 --> 00:02:40,550
J.S. file and down here you can see I've got my body one.
28
00:02:40,560 --> 00:02:41,870
I'll get rid of that.
29
00:02:41,950 --> 00:02:42,750
We'll save it.
30
00:02:42,900 --> 00:02:46,530
And this should be what you guys have been seeing in this whole time.
31
00:02:46,530 --> 00:02:48,520
So again I'm really sorry about that.
32
00:02:48,540 --> 00:02:50,350
Hopefully that wasn't too confusing.
33
00:02:50,460 --> 00:02:58,140
But let's go ahead now and we'll add that body one style and make sure you get the karma underneath
34
00:02:58,440 --> 00:03:09,960
and then we'll set that to a font size of one point to five REM a color of ARC Gray and a full weight
35
00:03:10,500 --> 00:03:11,910
of 300.
36
00:03:12,090 --> 00:03:13,530
So we'll save that.
37
00:03:13,620 --> 00:03:15,080
And the text will refresh.
38
00:03:15,090 --> 00:03:21,930
Now to I had had before but let's flip back over out of the theme and here what I'd like to do is go
39
00:03:21,930 --> 00:03:25,910
ahead and add some actual padding to this whole page.
40
00:03:25,980 --> 00:03:31,380
So you see how we're pressed all the way up against the left side and all the way up against the top.
41
00:03:31,380 --> 00:03:37,080
Let's go ahead and we'll add some padding to the entire page so that we have consistent borders going
42
00:03:37,080 --> 00:03:40,670
all the way around keeping our contents off the edges.
43
00:03:40,710 --> 00:03:45,810
So we'll come in on the container direction of column for our entire page.
44
00:03:45,810 --> 00:03:49,370
Let's add a class name here of.
45
00:03:49,410 --> 00:03:52,490
Classes dot main container.
46
00:03:52,560 --> 00:04:00,900
And then we can come up to our styles objects to add the main container style with a padding left of
47
00:04:00,930 --> 00:04:15,060
5 m a padding right of 5 m a padding top of 2 m padding bottom 10 m will get us nice spacing along the
48
00:04:15,060 --> 00:04:23,670
bottom there nice border along the top and then our consistent borders on the sides now with those borders
49
00:04:23,910 --> 00:04:29,060
you'll notice that the border it's going to start here on the left edge of this arrow so that's going
50
00:04:29,060 --> 00:04:36,330
to continue all the way down here and any of the text that's now down below here will be aligned actually
51
00:04:36,330 --> 00:04:42,030
with the edge of this arrow when I'd really like it to be aligned with the edge of this actual text
52
00:04:42,030 --> 00:04:42,420
here.
53
00:04:42,720 --> 00:04:49,140
So we're going to go in on the arrow container item for the back arrow.
54
00:04:49,440 --> 00:05:01,230
Let's add a style here where we'll set a margin right of 1 M and then a margin left of negative three
55
00:05:01,230 --> 00:05:09,120
point five m and if we save that that's going to pull our arrow back into the border and push it a little
56
00:05:09,120 --> 00:05:15,810
bit farther away from our text and that should now align aren't text down where the border purchase
57
00:05:15,810 --> 00:05:21,300
on the page and we'll be aligning the rest of the content section make everything look really clean
58
00:05:21,300 --> 00:05:23,630
and nicely aligned.
59
00:05:23,820 --> 00:05:28,640
Now let's set up these icon buttons to actually work before I forget that.
60
00:05:28,770 --> 00:05:38,370
And so we'll add the component prop of link onto the icon button we can go ahead and copy that and paste
61
00:05:38,370 --> 00:05:41,140
it on the second icon button as well.
62
00:05:41,220 --> 00:05:48,210
And now we also need the two property where the path of for this forward arrow will take us to slash
63
00:05:48,420 --> 00:05:50,020
mobile apps.
64
00:05:50,130 --> 00:05:59,100
And here with the icon button for back arrow it will take us to the slash services page so we can save
65
00:05:59,100 --> 00:06:01,170
that the page will refresh.
66
00:06:01,170 --> 00:06:03,970
And now you can see we'll hover over our arrow.
67
00:06:04,050 --> 00:06:07,770
We can click it and then it takes us back to these services page.
68
00:06:07,880 --> 00:06:09,960
We can come back to the custom software.
69
00:06:09,960 --> 00:06:16,580
We can go forward to the mobile apps page and you can see that the navigation is working.
70
00:06:16,600 --> 00:06:22,610
One thing that isn't doing however though is that it isn't updating our menu.
71
00:06:22,630 --> 00:06:28,000
You can see that even though we're on the mobile apps page in the U.R.L. and the content being rendered
72
00:06:28,480 --> 00:06:34,020
the custom software development page is still being marked as active within our menu.
73
00:06:34,060 --> 00:06:41,560
And that's because we need to come and take the props as an input for our custom software props since
74
00:06:41,560 --> 00:06:46,370
we are rendering it with the set value and set selected index props.
75
00:06:46,570 --> 00:06:50,500
And so now we can come in on these icon buttons.
76
00:06:50,500 --> 00:06:52,910
We can also add in on click.
77
00:06:52,930 --> 00:06:55,780
We'll set this equal to our arrow function.
78
00:06:55,780 --> 00:07:04,990
And this is going to call set selected index and set the selected index to zero for the services page
79
00:07:05,880 --> 00:07:10,060
and make sure we have that as props set selected index.
80
00:07:10,060 --> 00:07:11,660
And then we can copy that.
81
00:07:11,800 --> 00:07:19,180
And on the other arrow we'll set these selected index to two for the IRS and Android app development
82
00:07:19,180 --> 00:07:21,310
page so we can save that.
83
00:07:21,520 --> 00:07:23,220
And when the page refreshes.
84
00:07:23,220 --> 00:07:27,160
So now go home we can come to our software development page.
85
00:07:27,160 --> 00:07:33,100
Let's go over to mobile apps and we'll open up the menu to see Iaw and Android app development.
86
00:07:33,160 --> 00:07:40,110
Now being selected let's go back to the custom software development page and we'll start working on
87
00:07:40,110 --> 00:07:44,080
that row of icons that we hadn't seen in the design.
88
00:07:44,130 --> 00:07:49,920
So let's come over and we'll find the row that contains our entire heading.
89
00:07:49,920 --> 00:07:58,140
And underneath this row let's add another grid item container with a direction of row.
90
00:07:58,170 --> 00:08:07,730
We'll open this up and here will add a grid item container with a direction of column column.
91
00:08:07,980 --> 00:08:14,580
This time this item container will be for our first icon with its title.
92
00:08:14,580 --> 00:08:24,150
And so let's add a grid item here and this will wrap a typography variant of H 4 and this will simply
93
00:08:24,150 --> 00:08:32,040
say save energy and now we'll add a grid item underneath that one grid item.
94
00:08:32,040 --> 00:08:41,250
And this is simply wrapping in image that a source of light bulb and an old of light bulb as well we
95
00:08:41,250 --> 00:08:46,560
can close that off and obviously we need to come and import the light bulb image.
96
00:08:46,650 --> 00:08:49,290
So we'll scroll to the top underneath our arrows.
97
00:08:49,290 --> 00:08:54,330
Let's import the light bulb from assets bulb.
98
00:08:55,050 --> 00:09:09,130
And then let's also import cash from assets cash and in import the stopwatch from assets stopwatch.
99
00:09:09,140 --> 00:09:15,880
So now we can scroll back down and let's copy this whole grid item container the direction of column.
100
00:09:16,010 --> 00:09:20,860
So the grid item container wrapping those two grid items.
101
00:09:20,930 --> 00:09:23,270
Let's copy that in adjacent to it.
102
00:09:23,330 --> 00:09:30,240
Let's paste that two more times let's then change this middle one to save time.
103
00:09:30,250 --> 00:09:38,110
And the last one to save money and then change the source of light bulb for save time to stop watch
104
00:09:38,470 --> 00:09:49,370
change the ult to stop watch and then change the source to cash and the old to cache as well let's save
105
00:09:49,370 --> 00:09:56,510
that the page is going to refresh and you can see we now have our icons on the page but they're sitting
106
00:09:56,510 --> 00:10:03,800
on top of each other now this may be interesting to you because we had even explicitly said this is
107
00:10:03,800 --> 00:10:06,390
a container with a direction of Roe.
108
00:10:06,440 --> 00:10:11,770
So how come each of these items are not sitting next to each other from left to right.
109
00:10:11,870 --> 00:10:17,840
But they're instead sitting on top of each other almost as if we were in a direction of column instead
110
00:10:17,840 --> 00:10:19,370
of the direction of Roe.
111
00:10:20,240 --> 00:10:27,350
Well the reason for this we can actually find out if we go and inspect the page and we can scroll down
112
00:10:27,350 --> 00:10:31,180
to where we find the div for these middle icons.
113
00:10:31,250 --> 00:10:35,540
Let's open this up and here's the div for our first icon.
114
00:10:35,660 --> 00:10:42,140
And you can already see that the box is showing that it is spanning the entire width of that page.
115
00:10:42,170 --> 00:10:46,270
So let's click on this and we can see if we scroll here.
116
00:10:46,430 --> 00:10:56,760
It's getting a flex direction of column but the container because it is being set to a grid item container.
117
00:10:56,870 --> 00:11:02,450
This container prop is giving it a width of a 100 percent.
118
00:11:02,450 --> 00:11:06,500
You can see that right here the width of a 100 percent.
119
00:11:06,500 --> 00:11:13,100
And so since it has the container prop and is taking up 100 percent of the width available to it it
120
00:11:13,100 --> 00:11:20,360
is forcing all of the other items down below it giving us this column looking layout but they're actually
121
00:11:20,360 --> 00:11:26,010
all just set to a width of 100 percent because of that container prop.
122
00:11:26,180 --> 00:11:32,660
So the way that we can get around this is if we add on to each of these grid item container direction
123
00:11:32,720 --> 00:11:41,600
columns let's add the medium property to this and this will tell all of these containers the item containers
124
00:11:41,840 --> 00:11:49,550
explicitly that they need to share that space available so don't set the width to 100 percent but share
125
00:11:49,550 --> 00:11:56,420
that space until the medium breakpoint and then after that it's OK for them to take up the full width
126
00:11:56,630 --> 00:11:58,810
and stack on top of each other like this.
127
00:11:58,820 --> 00:12:00,180
So let's save that.
128
00:12:00,200 --> 00:12:01,770
See the page refresh.
129
00:12:01,850 --> 00:12:06,720
And now our icons are sharing that space available to them.
130
00:12:06,800 --> 00:12:13,520
Now if I go ahead and then cancel out of that inspector and I open this up you can see the each of these
131
00:12:13,520 --> 00:12:17,060
begins to take up a pretty large amount of space.
132
00:12:17,120 --> 00:12:21,200
And so what they're doing is they're sharing all of this space available to them.
133
00:12:21,200 --> 00:12:22,570
So this is a third.
134
00:12:22,670 --> 00:12:23,710
This is a third.
135
00:12:23,780 --> 00:12:25,100
And this is a third.
136
00:12:25,100 --> 00:12:27,680
And then there's that border over here.
137
00:12:27,680 --> 00:12:32,000
But they're definitely taking up way more space available than they need.
138
00:12:32,000 --> 00:12:37,410
So instead of taking up all of that space we really we only need that much space.
139
00:12:37,520 --> 00:12:45,530
So we'll come to the code editor and on the same grid item direction column that we just added the medium
140
00:12:45,530 --> 00:12:55,470
property to let's add a style here of Max with 40 m just like we had done for the heading.
141
00:12:55,690 --> 00:13:02,410
But what's copy that and paste that next to the medium property that we added for each of those containers
142
00:13:02,720 --> 00:13:08,690
and we'll save that to see the page jump and you can't really tell a difference there but now they actually
143
00:13:08,690 --> 00:13:11,630
are not taking up quite as much space.
144
00:13:11,630 --> 00:13:18,770
So we'll come back down and let's start fixing some of these alignment issues because these icons are
145
00:13:18,770 --> 00:13:23,630
not aligned with their title and all of these should actually be centered on the page.
146
00:13:23,630 --> 00:13:31,640
So to do that we can go and on the grid item container direction of row there's actually wrapping all
147
00:13:31,640 --> 00:13:32,870
of these items.
148
00:13:32,870 --> 00:13:37,150
Let's set a justify to censor.
149
00:13:37,400 --> 00:13:42,710
And since this is a direction of row that's going to move everything to the center of our horizontal
150
00:13:42,710 --> 00:13:43,470
direction.
151
00:13:43,640 --> 00:13:51,190
So we'll save that and you can see that they did indeed jump over they definitely are not still perfectly
152
00:13:51,190 --> 00:13:52,300
aligned though.
153
00:13:52,430 --> 00:13:54,200
So let's shrink this down.
154
00:13:54,310 --> 00:14:02,070
And on the same grid item container direction column where we added the medium prop and the style with
155
00:14:02,070 --> 00:14:04,100
a max width of 40 m.
156
00:14:04,180 --> 00:14:10,540
Let's go ahead and we'll also add in on line items property of center.
157
00:14:10,590 --> 00:14:14,300
We can go ahead and copy that onto all of these.
158
00:14:14,380 --> 00:14:15,940
Make sure you get that.
159
00:14:16,540 --> 00:14:23,890
And when the page refreshes you'll see that now our icons and their titles are all actually centered.
160
00:14:23,950 --> 00:14:30,010
The last thing I'd like to do really quick before we take a break is let's get this set of icons off
161
00:14:30,100 --> 00:14:31,830
of the paragraph here.
162
00:14:31,840 --> 00:14:34,030
See how it's pressed up right up against it.
163
00:14:34,030 --> 00:14:37,610
Well let's give us some space and make this just a little more open.
164
00:14:37,720 --> 00:14:44,440
And so where we added the justify of center to our container direction of row.
165
00:14:44,560 --> 00:14:54,540
Let's also add a style here of a margin top 15 m and a margin bottom of 20 m.
166
00:14:54,700 --> 00:14:57,520
If we go ahead and save that page or refresh.
167
00:14:57,520 --> 00:15:01,800
And now this entire row has a bit of a spacing around it.
168
00:15:02,080 --> 00:15:07,090
And that is giving a very nice and open clean feel to it.
169
00:15:07,090 --> 00:15:08,570
So this looks really good.
170
00:15:08,650 --> 00:15:12,220
But let's take a break and I'll see you in the next one to keep working.
18359
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.