Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,180 --> 00:00:07,330
Now that we have all of the content on the screen for this page let's start going through and making
2
00:00:07,330 --> 00:00:11,750
sure we have all of this perfectly responsive.
3
00:00:11,770 --> 00:00:17,170
The first thing that I want to do real quickly actually is just add a little bit of extra margin down
4
00:00:17,170 --> 00:00:18,970
here on the bottom of the page.
5
00:00:18,970 --> 00:00:24,140
That way we have a bit more space between the last row here and our footer.
6
00:00:24,160 --> 00:00:27,300
I just think that that extra white space looks pretty nice.
7
00:00:27,400 --> 00:00:36,220
And so here let's see this is the grid item container direction row with justify space around for the
8
00:00:36,220 --> 00:00:39,740
automation and user experience design sections.
9
00:00:39,880 --> 00:00:49,180
And here on that wrapping container let's go ahead and add a style of margin bottom 10 am.
10
00:00:49,330 --> 00:00:54,400
We can save that page refresh and we've got our extra space.
11
00:00:54,430 --> 00:00:55,810
So that looks a bit better.
12
00:00:55,930 --> 00:01:03,070
And now we can go ahead and we'll start shrinking this down so we can see what we have to do in order
13
00:01:03,070 --> 00:01:04,580
to make this responsive.
14
00:01:04,580 --> 00:01:07,390
And you can already see a lot of problems.
15
00:01:07,390 --> 00:01:08,790
There were some issues there.
16
00:01:08,890 --> 00:01:10,890
None of this looks really good.
17
00:01:10,910 --> 00:01:13,030
That was almost fine.
18
00:01:13,260 --> 00:01:15,760
He's still out of place.
19
00:01:15,760 --> 00:01:17,530
None of this really is looking correct.
20
00:01:17,560 --> 00:01:22,220
So we have a decent amount of work to do but it should hopefully go pretty quick.
21
00:01:22,260 --> 00:01:28,500
The first thing that I want to do is I said I would actually like to hide these arrows if we're on the
22
00:01:28,530 --> 00:01:35,160
mobile navigation and we can do that easily using the hidden component that we are familiar with.
23
00:01:35,460 --> 00:01:44,130
So let's come up to the top here and under our import for use media query let's import hidden from app
24
00:01:44,210 --> 00:01:49,100
material dash UI slash core slash hidden.
25
00:01:49,530 --> 00:01:56,280
And then we can scroll down to where we have the grid items wrapping the icon buttons and we're going
26
00:01:56,280 --> 00:02:06,570
to wrap that entire grid item in a hidden M.D. down component so then go ahead and or just cut that
27
00:02:06,570 --> 00:02:12,160
entire grid item and paste it inside of the hidden M.D. down.
28
00:02:12,300 --> 00:02:20,220
And so that will make sure that this is not visible on any of the mobile screens and we can scroll down
29
00:02:20,330 --> 00:02:25,710
we'll find the next grid item for the forward button and let's do the same thing.
30
00:02:25,740 --> 00:02:29,530
So we'll wrap that with a hidden empty down.
31
00:02:29,550 --> 00:02:31,820
Cut it pasted inside.
32
00:02:31,920 --> 00:02:38,980
And now we can save the page and you can see the arrows are gone the hidden component really is a very
33
00:02:38,980 --> 00:02:44,320
convenient way for doing stuff like this especially when you're working with the grid system.
34
00:02:44,350 --> 00:02:46,300
But let's bring this up actually.
35
00:02:46,360 --> 00:02:52,720
I'll bring it up just right until right here where we're at the medium break point because this is really
36
00:02:52,720 --> 00:02:59,760
where I want to start the responsive styles when we're going to our mobile navigation in the menu as
37
00:02:59,770 --> 00:03:03,340
when generally most of the page is going to have to start resizing.
38
00:03:03,340 --> 00:03:09,070
So it's come up to the top and underneath are constant of classes.
39
00:03:09,070 --> 00:03:18,580
Let's create our constant of theme with the use theme hook and now we'll finally use the use media query
40
00:03:18,850 --> 00:03:27,940
and we'll create our constant of matches M.D. equal to the use media query hook called with our theme
41
00:03:28,200 --> 00:03:37,190
top break points down for medium now if we are on this medium break point the first thing we would do
42
00:03:37,190 --> 00:03:42,710
is get all of this text centered up and we'll make sure the rest of the content starts to be censored
43
00:03:42,710 --> 00:03:50,990
up as necessary so we can start by scrolling down and we'll find the grid item container with a direction
44
00:03:51,050 --> 00:03:52,290
of a row.
45
00:03:52,370 --> 00:03:58,460
And this is the container that is wrapping all of our heading text including the arrows that we just
46
00:03:58,460 --> 00:03:59,930
wrapped with the hidden component.
47
00:04:00,350 --> 00:04:08,570
And on this grid item container let's add a justify property and we'll set this equal to a ternary statement
48
00:04:08,780 --> 00:04:13,270
checking our matches M.D. variable and if that's true.
49
00:04:13,280 --> 00:04:16,000
So we are at the median breakpoint or below.
50
00:04:16,280 --> 00:04:21,670
Let's go ahead and say a justified property of center to move all this text over to the right.
51
00:04:21,860 --> 00:04:26,390
And if we are not at the median breakpoint or below so where are our larger screens.
52
00:04:26,390 --> 00:04:28,550
Let's just leave this as on defined.
53
00:04:28,570 --> 00:04:35,730
So it will stay where it is we can save that and we'll see the page refresh in our text has moved over
54
00:04:36,060 --> 00:04:41,880
but you can see that although the text is in the center it is actually still left aligned.
55
00:04:41,880 --> 00:04:48,360
So we need to go ahead and on each of these typography components for all of that heading text.
56
00:04:48,360 --> 00:04:55,860
We need to add in a line property and we'll set it to the same matches M.D. ternary statement.
57
00:04:55,860 --> 00:04:58,560
And if that's true then we'll set a center.
58
00:04:58,560 --> 00:05:07,530
Otherwise leave it as undefined and let's go ahead and we'll copy that online property onto all of these
59
00:05:07,590 --> 00:05:08,520
typography.
60
00:05:08,550 --> 00:05:13,520
So the one for the title and all of the body want paragraphs as well.
61
00:05:13,570 --> 00:05:20,210
And when that refreshes you can see now there is all been censored the first part of this page is looking
62
00:05:20,210 --> 00:05:20,890
really good.
63
00:05:20,890 --> 00:05:24,020
Now I think we've got most of the responsiveness for this.
64
00:05:24,020 --> 00:05:25,520
I think that's fine.
65
00:05:25,520 --> 00:05:30,200
These icons that are still going to be sharing that space until we get to this small break point and
66
00:05:30,200 --> 00:05:31,190
then they'll be stacking.
67
00:05:31,190 --> 00:05:36,830
So we can take care of that in a second but we'll keep working on this medium breakpoint and if we scroll
68
00:05:36,830 --> 00:05:42,110
down let's actually go ahead and you see how this animation is being cut off right here.
69
00:05:42,410 --> 00:05:48,410
Well that's because it's not going to have enough space to put all of this text the animation this other
70
00:05:48,410 --> 00:05:55,070
animation and this other text all on the same line right here and especially on a actual medium sized
71
00:05:55,070 --> 00:06:00,380
device and sort of just my resized browser here that's going to look a lot more cramped.
72
00:06:00,380 --> 00:06:06,310
So go ahead and write here we'll just change this to now being stacked on top of one another.
73
00:06:06,320 --> 00:06:10,390
So that way though each have plenty of room we can do this.
74
00:06:10,390 --> 00:06:18,910
If we scroll down to where we have the grid item container direction of row and that's wrapping the
75
00:06:18,910 --> 00:06:28,470
item container direction column so we can scroll down and here what's find the grid item container direction
76
00:06:28,480 --> 00:06:37,690
row justify a space around for the digital documents and data container as well as the section for scale.
77
00:06:37,720 --> 00:06:45,610
So the item container direction row wrapping both of these items right here and we're actually going
78
00:06:45,610 --> 00:06:53,320
to change this row value on the direction property and let's make this a ternary statement checking
79
00:06:53,320 --> 00:07:02,920
the matches medium variable if that's true then let's add a direction of column and otherwise we'll
80
00:07:02,920 --> 00:07:05,080
leave it at the direction of row.
81
00:07:05,110 --> 00:07:08,040
So if we save that we'll see the page jump.
82
00:07:08,230 --> 00:07:15,230
And now they're being stacked on top of one another and that animation has plenty of space again.
83
00:07:15,310 --> 00:07:22,180
Now though the items are still being aligned to the left because now that we're in a direction of column
84
00:07:22,270 --> 00:07:26,380
there's nothing aligning them over into the centre or the right.
85
00:07:26,380 --> 00:07:33,580
And so to move them over to the right while we're in a direction of column where the main axis is vertical
86
00:07:33,580 --> 00:07:36,070
so up and down that's the main axis.
87
00:07:36,070 --> 00:07:37,390
Well we need to move it over.
88
00:07:37,390 --> 00:07:38,050
Right.
89
00:07:38,050 --> 00:07:42,070
So that would be the cross axis which we can do with a line items.
90
00:07:42,070 --> 00:07:49,690
So on that same item container let's add in a line items property and asset this equal to our matches
91
00:07:50,020 --> 00:07:54,840
medium Turner statement and if that's true let's set it to centre.
92
00:07:54,880 --> 00:08:02,470
Otherwise undefined and we can save that page will refresh and our content is in the middle of the screen
93
00:08:03,680 --> 00:08:11,540
if you remember the row down here we actually had copied and adapted from this original row up here.
94
00:08:11,630 --> 00:08:18,280
So we're going to want those same styles for this row as well to make sure that it's responsive.
95
00:08:18,350 --> 00:08:24,950
So let's go ahead and a line items and direction properties that we just made responsive for the digital
96
00:08:24,950 --> 00:08:26,630
documents and data row.
97
00:08:26,690 --> 00:08:33,770
Let's go ahead and copy that and we'll scroll down past the root cause analysis section down to the
98
00:08:33,920 --> 00:08:41,210
grid item container for the automation and user experience design section and here let's replace that
99
00:08:41,210 --> 00:08:47,570
direction property with the direction and a line item properties that we just copied and if we save
100
00:08:47,570 --> 00:08:49,460
that we'll see this refresh.
101
00:08:49,460 --> 00:08:56,410
And now those are stacked on top of one another as well although these items are centered though you
102
00:08:56,410 --> 00:08:57,520
see the here.
103
00:08:57,520 --> 00:09:01,680
They're both smooshed right next to each other as well as here.
104
00:09:01,690 --> 00:09:08,410
So on the digital documents and data section and the automation section let's go ahead and add a margin
105
00:09:08,410 --> 00:09:10,420
bottom to give us some spacing.
106
00:09:11,580 --> 00:09:18,480
So let's come over here and just below where we were the grid item container with the class name item
107
00:09:18,480 --> 00:09:19,550
container.
108
00:09:19,590 --> 00:09:25,620
Let's go ahead and make sure this is around the automation section and let's go ahead and here we'll
109
00:09:25,620 --> 00:09:37,170
add a style a style of margin bottom 15 m but we actually don't want this applied all the time because
110
00:09:37,170 --> 00:09:41,210
remember we only need this if they're stacked on top of each other like this.
111
00:09:41,250 --> 00:09:44,420
So we'll actually need to make this value a ternary statement.
112
00:09:44,520 --> 00:09:52,610
Sending it to matches and D and if that's true or use the 15 m otherwise leave it at 0.
113
00:09:52,620 --> 00:09:57,800
So save that page or refresh and you can see we've got the spacing underneath there.
114
00:09:57,800 --> 00:10:06,610
Now let's go ahead and copy that style and scroll of to the digital documents and data section.
115
00:10:06,820 --> 00:10:13,930
Go to it's item container and paste that style on as well so screw up here and you can see it once we
116
00:10:13,930 --> 00:10:15,510
save that.
117
00:10:15,550 --> 00:10:19,940
Now we have this space here as well these look pretty good now.
118
00:10:20,050 --> 00:10:25,210
But if we scroll up remember how mean we shrunk this page down.
119
00:10:25,210 --> 00:10:30,280
Once we get to this small breakpoint that now all of sudden these are sitting on top of each other like
120
00:10:30,280 --> 00:10:30,630
that.
121
00:10:31,120 --> 00:10:36,160
Well that looks good and that is what we want but we don't want them squished up against one another
122
00:10:36,160 --> 00:10:37,210
so closely.
123
00:10:37,210 --> 00:10:44,280
So on the save time item we can add a margin top and a margin bottom to give spacing for both of those.
124
00:10:44,290 --> 00:10:50,230
So let's scroll up and here is our save time typography and so on.
125
00:10:50,260 --> 00:10:57,120
This grid item container direction of column here next to the max width in the style.
126
00:10:57,130 --> 00:11:03,460
Let's add a margin top of matches in here we'll need a small.
127
00:11:03,460 --> 00:11:05,740
So we'll have to create that just a second.
128
00:11:05,740 --> 00:11:14,590
But if we are this small breakpoint let's give it a margin top of 10 m otherwise zero and then we'll
129
00:11:14,590 --> 00:11:22,780
set a margin bottom two matches small 10 m 0 as well.
130
00:11:22,810 --> 00:11:23,970
So let's go up now.
131
00:11:23,980 --> 00:11:28,120
And underneath underneath are matches medium constant.
132
00:11:28,150 --> 00:11:36,380
Let's add the constant of matches small using our use media query hook and the theme dot breakpoints
133
00:11:36,380 --> 00:11:38,650
dot down for small this time.
134
00:11:39,040 --> 00:11:45,910
So now we can go ahead and save that and you'll see we now have a nice bit of spacing between all of
135
00:11:45,910 --> 00:11:48,110
those icons.
136
00:11:48,160 --> 00:11:50,110
I think this is an OK place to stop.
137
00:11:50,140 --> 00:11:56,290
So we'll take a break now and we'll finish up this page and our responsive styles in the next video.
15119
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.