Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,190 --> 00:00:08,210
Let's begin working on the About Us page so we'll get it finally from our dummy component into the full
2
00:00:08,210 --> 00:00:09,430
design that we see.
3
00:00:09,770 --> 00:00:18,010
And it will start like usual by coming over to the components folder and we'll add in about about Dot
4
00:00:18,140 --> 00:00:32,280
J.S. let's import react from react along with our import for make styles and use theme from material.
5
00:00:32,360 --> 00:00:36,490
Dash UI slash core slash styles.
6
00:00:36,680 --> 00:00:45,770
And then we'll import the grid from app material dash UI slash core slash grid and we'll import typography
7
00:00:46,130 --> 00:00:55,360
from app material dash UI slash core slash typography let's come down and we'll create the constant
8
00:00:55,360 --> 00:01:07,870
use styles with make styles calling the theme arrow function return object and then export default function
9
00:01:08,260 --> 00:01:20,210
about and then open it up create our concept classes equals use styles and concept theme goals use theme.
10
00:01:20,260 --> 00:01:29,380
Now we can return a grid container with a direction of column and this will be the wrapping grid for
11
00:01:29,380 --> 00:01:34,460
our entire page we'll start off with a grid item.
12
00:01:34,900 --> 00:01:41,950
And this is going to be wrapping a typography variant of H two and this will be for our title about
13
00:01:41,950 --> 00:01:51,880
us then we can come down and create an adjacent grid item and here let's create a typography variant
14
00:01:51,970 --> 00:02:00,460
of H four and we'll give this a class name of classes dot mission statement and then we'll open this
15
00:02:00,460 --> 00:02:08,950
up create a new line and what's open up the design file and we can come up to the About Us page should
16
00:02:08,950 --> 00:02:10,450
be somewhere up here.
17
00:02:10,450 --> 00:02:13,630
Here we are and we'll go ahead.
18
00:02:13,670 --> 00:02:18,310
I can make this a little bigger we'll go ahead and copy in the mission statement.
19
00:02:18,340 --> 00:02:22,520
So copy that text come back and we'll paste that right in.
20
00:02:22,630 --> 00:02:30,190
And before we even save this I'll go up and let's add our mission statement style with a font style
21
00:02:30,250 --> 00:02:43,570
set to italic a font weight set to 300 a font size of one point five or rim and then a max width of
22
00:02:43,660 --> 00:02:51,250
50 m and a line height of one point for all right.
23
00:02:51,310 --> 00:02:54,500
And that will get our mission statement looking correct.
24
00:02:54,610 --> 00:03:01,570
So we can go ahead and save this now and let's flip over to the app dog J.S. file where we can scroll
25
00:03:01,570 --> 00:03:08,620
down and let's go ahead and copy the render prop off the revolution and let's replace the component
26
00:03:08,620 --> 00:03:09,730
prop for our.
27
00:03:09,730 --> 00:03:11,730
About us dummy component.
28
00:03:11,860 --> 00:03:18,190
We'll paste in that render prop and we'll change revolution here to about which means we need to come
29
00:03:18,190 --> 00:03:25,840
up and under a revolution we'll import about from dot slash about and we can go ahead and save that
30
00:03:25,920 --> 00:03:27,530
in our page we'll refresh.
31
00:03:27,610 --> 00:03:33,220
And now you see our title here on the left along with our mission statement.
32
00:03:33,250 --> 00:03:38,800
Go ahead and close out of app dot J.S. and let's move that text to the mission statement over into the
33
00:03:38,800 --> 00:03:47,900
center by providing our variant of H four within a line of center so we can save that.
34
00:03:48,040 --> 00:03:55,270
And we'll see that the text has now become center aligned so to move the actual text over into the center
35
00:03:55,270 --> 00:03:56,270
of the page.
36
00:03:56,320 --> 00:04:03,430
Let's change the wrapping grid item to a grid item container and then we can set the justify property
37
00:04:03,430 --> 00:04:08,240
here to Center and then we can save that.
38
00:04:08,360 --> 00:04:13,800
And we'll see the page refresh and it has now jumped into this center.
39
00:04:13,840 --> 00:04:14,750
This looks good.
40
00:04:14,830 --> 00:04:18,100
But let's actually go back to the revolution page real quick.
41
00:04:18,100 --> 00:04:20,170
We'll open this up and what's copy.
42
00:04:20,170 --> 00:04:27,790
The row container style that we're using here and then let's flip back to the about Dot J.S. and underneath
43
00:04:27,850 --> 00:04:29,620
the mission statement style.
44
00:04:29,620 --> 00:04:37,540
Let's go ahead and paste the row container style on in then on both this grid item wrapping are titled
45
00:04:37,540 --> 00:04:38,310
typography.
46
00:04:38,320 --> 00:04:43,360
We can add the class name of classes dot row container.
47
00:04:43,780 --> 00:04:53,110
And then here I'll also add a style of margin top to M so that we have a bit of more spacing up here
48
00:04:53,290 --> 00:04:57,980
between the title and the app bar so we can go ahead and save that now.
49
00:04:58,120 --> 00:05:04,870
And we will see the title has now jumped and has the spacing here on the side that we had wanted and
50
00:05:04,870 --> 00:05:08,450
then we can go ahead and on the grid item container.
51
00:05:08,530 --> 00:05:10,870
There is wrapping our mission statement.
52
00:05:10,870 --> 00:05:17,080
Let's add the class name of classes dot row container as well.
53
00:05:17,080 --> 00:05:23,950
And now we can save that and we will see that there isn't really an effect there because the spacing
54
00:05:23,950 --> 00:05:28,810
here on the side is already greater than the padding that we're providing.
55
00:05:29,020 --> 00:05:35,740
But as we get closer you'll see now the padding is pushing our text inside of it where we would want
56
00:05:35,740 --> 00:05:37,070
it.
57
00:05:37,270 --> 00:05:41,350
I'll go ahead and refresh this up to this size though.
58
00:05:41,350 --> 00:05:47,740
And now we can start working on the next part of this page which is the history section.
59
00:05:47,890 --> 00:05:57,190
So adjacent to the row container for the mission statement what's add a new grid item container with
60
00:05:57,190 --> 00:06:01,810
a class name of classes dock row container.
61
00:06:02,410 --> 00:06:11,830
And it will open this up and have it wrap a grid item container itself but with a direction of column
62
00:06:12,290 --> 00:06:14,000
and then we can open this up.
63
00:06:14,080 --> 00:06:23,710
And the first grid item within here will be our typography variant H for more add the gutter bottom
64
00:06:23,710 --> 00:06:24,350
prop.
65
00:06:24,460 --> 00:06:30,860
And this will be for our title of history underneath this grid item.
66
00:06:30,860 --> 00:06:40,160
We can add another grid item and this is going to wrap a typography variant body one with the paragraph
67
00:06:40,340 --> 00:06:52,670
prop and we'll set a style here of font weight 700 force style italics actually adjust the italic and
68
00:06:52,670 --> 00:06:56,580
then we can go ahead and open this typography component up.
69
00:06:56,750 --> 00:07:02,950
And this will be the sentence we're the new kid on the block.
70
00:07:03,050 --> 00:07:08,810
Let's go ahead and save this now and we'll see the page refresh and then we have the beginning of our
71
00:07:08,810 --> 00:07:10,330
history section.
72
00:07:10,670 --> 00:07:17,960
You see the font weight of 700 gave us that thicker style here and the font style of italic obviously
73
00:07:17,960 --> 00:07:21,130
gives us these slanted italic look.
74
00:07:21,320 --> 00:07:29,210
We'll go ahead and underneath this typography component let's add a another typography variant body
75
00:07:29,210 --> 00:07:33,920
one paragraph but then we'll just open it up like that.
76
00:07:33,980 --> 00:07:40,370
And now let's flip to the design file and it looks like we'll need one two three four.
77
00:07:40,400 --> 00:07:47,600
So go ahead and copy that empty typography pasted three more times and then we can go in and paste in
78
00:07:47,660 --> 00:07:50,450
these paragraphs or sentences I should say
79
00:07:57,980 --> 00:07:58,370
all right.
80
00:07:58,790 --> 00:08:03,360
And then we'll minimize that again go ahead and save this.
81
00:08:03,410 --> 00:08:07,230
We'll see the page refresh with our text in place.
82
00:08:07,250 --> 00:08:13,320
Now let's go ahead and outside of this grid item container direction of column wrapping.
83
00:08:13,340 --> 00:08:18,470
All of that text will create a grid item adjacent to that.
84
00:08:18,470 --> 00:08:28,130
And this is going to be wrapping our image with a source of history and an old of quill pen sitting
85
00:08:28,370 --> 00:08:31,140
on top of book.
86
00:08:31,230 --> 00:08:37,670
We can close that image tag off come up to the top and underneath our typography import let's import
87
00:08:37,910 --> 00:08:41,430
history from our assets folder.
88
00:08:41,630 --> 00:08:50,370
History Dias v g let's go ahead and we can save this and we can see our history image has has appeared
89
00:08:50,670 --> 00:08:56,070
but it's not sharing this space with the text it is sitting on its own new line.
90
00:08:56,070 --> 00:08:58,170
So remember how we fix that.
91
00:08:58,170 --> 00:09:00,240
Go ahead and on the grid item.
92
00:09:00,330 --> 00:09:03,920
Let's give that the large prop.
93
00:09:03,930 --> 00:09:12,780
Go ahead and on the adjacent grid item direction column we'll add the large prop as well forcing these
94
00:09:12,780 --> 00:09:18,570
items to share the line in their space until after the large break point.
95
00:09:18,810 --> 00:09:22,240
So let's go ahead and save that file and the page will refresh.
96
00:09:22,320 --> 00:09:25,560
And now we're getting a shared space.
97
00:09:25,950 --> 00:09:32,850
If we go ahead now and we resize this page up you can see that the history section is actually staying
98
00:09:32,850 --> 00:09:35,920
too close over and next to the text.
99
00:09:35,970 --> 00:09:40,910
We'd really prefer it to be over here in the middle of it's half of the screen.
100
00:09:41,040 --> 00:09:46,260
And so to do that all you have to do is come over to the grid item.
101
00:09:46,250 --> 00:09:54,060
And since we want to control the icons position within the space available to it let's make this a container
102
00:09:54,120 --> 00:09:58,900
item and then we can set the justify property here to Center.
103
00:09:58,900 --> 00:10:02,750
OK I'm going to resize the screen that you can see.
104
00:10:02,870 --> 00:10:10,070
And now I'll save this and you'll see that the image jumps over to the right and it is now centered
105
00:10:10,130 --> 00:10:12,310
within the middle of it's half of the screen.
106
00:10:12,380 --> 00:10:18,380
But we also had a little bit of distortion there occur if you noticed the image is a little bit stretched
107
00:10:18,380 --> 00:10:19,520
out long ways.
108
00:10:19,760 --> 00:10:29,240
So we need to come on to our image tag and give it a style with a max height of twenty two m we can
109
00:10:29,240 --> 00:10:30,830
go ahead and save that.
110
00:10:30,920 --> 00:10:39,650
And the image will jump to a more proportional aspect ratio let's keep going and we'll add a max width
111
00:10:39,710 --> 00:10:45,920
to this item with all of our typography is so that they don't spread out quite as large as this.
112
00:10:45,920 --> 00:10:48,090
I think that's a little too hard to read.
113
00:10:48,140 --> 00:10:50,590
It looks a lot better entire tighter paragraphs like that.
114
00:10:50,900 --> 00:10:58,820
So we'll come up to the item container direction column and we'll apply a style where they max width
115
00:10:59,210 --> 00:11:01,410
of 35 m.
116
00:11:01,490 --> 00:11:07,230
Go ahead and save that and we'll see the page refreshed and now no matter how large this is we have
117
00:11:07,280 --> 00:11:10,330
very nice looking paragraphs.
118
00:11:10,420 --> 00:11:17,740
This causes an issue though because now the history section and the icon they're no longer centered
119
00:11:17,740 --> 00:11:22,620
properly on their page and they both are appearing to the left.
120
00:11:22,630 --> 00:11:28,660
So what I would like ideally is for them to have equal amount of space around them.
121
00:11:28,660 --> 00:11:36,430
So obviously I'm wanting to use the space around property but if we come over and if we add on the row
122
00:11:36,430 --> 00:11:44,980
container that is holding both of these items and we give it a justify of space around to distribute
123
00:11:44,980 --> 00:11:52,840
that space let me increase the screen size here I can save the file and you'll see nothing happens.
124
00:11:52,840 --> 00:11:53,490
OK.
125
00:11:53,560 --> 00:11:59,340
And the reason for that is that these are both grid item containers right.
126
00:11:59,350 --> 00:12:03,880
So they're both taking up 100 percent of the space available to them.
127
00:12:03,940 --> 00:12:09,580
And when you're doing that that means you cannot move them around with these properties at least not
128
00:12:09,580 --> 00:12:13,310
horizontally because of that width of 100 percent.
129
00:12:13,330 --> 00:12:14,880
So to get around this.
130
00:12:14,890 --> 00:12:23,080
Well I can do is we're going to wrap each of these grid item containers with an item so that that item
131
00:12:23,110 --> 00:12:25,660
will then be affected by the space around.
132
00:12:25,720 --> 00:12:33,290
But the content inside will be preserved with our item containers max width and direction of column.
133
00:12:33,370 --> 00:12:41,350
But by wrapping this it will allow the container to then move these around as if they were not containers
134
00:12:41,350 --> 00:12:45,390
themselves trying to take up the whole space available to them.
135
00:12:45,430 --> 00:12:51,190
So hopefully that makes sense but we'll go ahead and we'll wrap this with a grid item.
136
00:12:51,520 --> 00:12:59,530
So then we'll come down let's find the closing tag underneath underneath here at our slash closing grid
137
00:12:59,860 --> 00:13:07,240
and then we'll wrap this grid item container wrapping our image also with a grid item will come underneath
138
00:13:07,240 --> 00:13:11,240
here you know at our slash grid.
139
00:13:11,350 --> 00:13:18,250
And now if we save this we'll see the page jump and the content was correctly moved in the right place
140
00:13:18,490 --> 00:13:25,840
thanks to the fact that it's applying this space around to the grid item and not to a container.
141
00:13:25,840 --> 00:13:30,670
So this is looking good so far and there's already been a couple new little tricks that we've learned.
142
00:13:30,670 --> 00:13:35,560
Like wrapping that in the great item so hopefully you're getting more and more comfortable with creating
143
00:13:35,560 --> 00:13:41,290
these complex layouts but we'll continue with the team section for this page in the next one.
15726
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.