Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,110 --> 00:00:04,840
Let's get started on the last of these services pages.
2
00:00:04,950 --> 00:00:07,420
The Web site development page.
3
00:00:07,620 --> 00:00:15,270
So we'll begin by coming over and on our components folder create a new file and we'll name that our
4
00:00:15,270 --> 00:00:23,540
Web sites dot J.S. here we can import react from react.
5
00:00:23,890 --> 00:00:38,940
Import the link from react router Dom import make styles and use theme from app material.
6
00:00:38,950 --> 00:00:49,770
Dash UI such core sash styles or import the grid from app material UI slash core grid.
7
00:00:49,960 --> 00:01:02,140
Import the icon button from at materials dash UI slash core slash icon button import typography from
8
00:01:02,270 --> 00:01:15,700
app material dash UI slash core slash typography import use media query from material UI use media query
9
00:01:16,120 --> 00:01:25,400
and lastly import the hidden component from material dash UI slash core slash hidden.
10
00:01:25,500 --> 00:01:36,670
Now we can create our constant of use styles with our Make styles hook theme arrow function return the
11
00:01:36,670 --> 00:01:48,070
object and then export default our function websites sites open it up create our consent classes use
12
00:01:48,160 --> 00:02:02,680
styles create a constant theme use theme and return are grid container direction column bam you will
13
00:02:02,680 --> 00:02:09,700
probably have that perfectly memorized by the time you finish this course let's go to the custom software
14
00:02:09,700 --> 00:02:18,010
page and we'll scroll down and let's grab this first grid item with the heading in the arrows we'll
15
00:02:18,010 --> 00:02:24,780
grab that first grid item container and we will copy that and we'll come over to the websites and we'll
16
00:02:24,790 --> 00:02:29,900
paste that in just like we did before just like we did before.
17
00:02:29,910 --> 00:02:39,060
We also need to come up and let's create our constant of matches medium with the use media query with
18
00:02:39,060 --> 00:02:50,490
our theme break points down for medium and then the constant matches X as with the use media query for
19
00:02:50,490 --> 00:02:52,530
the extra small breakpoint
20
00:02:56,020 --> 00:03:09,520
extra small then let's come up and let's import back arrow from assets back arrow and import forward
21
00:03:09,520 --> 00:03:22,010
arrow from assets slash forward arrow then we need to come over to the app DOJ s file and let's copy
22
00:03:22,010 --> 00:03:29,600
any of the render props and scroll down to where we have our component for the website and we'll paste
23
00:03:29,600 --> 00:03:30,500
this in.
24
00:03:30,500 --> 00:03:42,670
Change this to Web sites and then scroll up and import the Web sites from dot slash Web sites let's
25
00:03:42,670 --> 00:03:47,400
save this now and we'll get an error because we haven't saved this file at all.
26
00:03:47,710 --> 00:03:49,030
But let's finish it up.
27
00:03:49,270 --> 00:03:53,440
Take props as the input and see.
28
00:03:53,470 --> 00:03:54,910
I think that was the last thing.
29
00:03:54,940 --> 00:03:58,360
So let's save that now and the page will refresh.
30
00:03:58,360 --> 00:04:02,310
And here we see our title again.
31
00:04:02,390 --> 00:04:08,510
Let's go back to the custom software page real quick and let's copy these first three styles.
32
00:04:08,510 --> 00:04:14,990
Once again flip back over and paste those inside of our styles object and we'll save this.
33
00:04:14,990 --> 00:04:19,790
And now the heading is styled so close our custom software.
34
00:04:19,790 --> 00:04:25,430
And then we need to change the routes for our arrows to make sure that our navigation is going to the
35
00:04:25,430 --> 00:04:26,510
right place.
36
00:04:26,510 --> 00:04:31,660
So now that we're going to be on the website development page it's changed that title Roll clicks.
37
00:04:31,680 --> 00:04:39,350
We don't forget website development page the back arrow is going to take us back to the mobile apps
38
00:04:39,500 --> 00:04:40,300
page.
39
00:04:40,340 --> 00:04:50,420
So let's say back to the Iaw slash Android app development page and then our forward arrow actually
40
00:04:50,510 --> 00:04:58,040
make sure the prop stops sets select index that will be set to 2 and then the forward arrow will be
41
00:04:58,040 --> 00:05:01,540
taking us to these slash services route.
42
00:05:01,580 --> 00:05:07,940
So since we're on the last services page the Web site's development the Web site development page we're
43
00:05:07,940 --> 00:05:12,150
just going to want to go in a big circle and take it back to the services page now.
44
00:05:12,170 --> 00:05:17,080
So we'll say forward to the services not.
45
00:05:17,120 --> 00:05:24,770
Services and services page and then we will change the set selected index property to zero.
46
00:05:24,800 --> 00:05:28,250
I will make sure the services page is selected in our menu.
47
00:05:28,340 --> 00:05:34,850
So if we save this we can now see the page refresh and if we click the forward arrow it takes us to
48
00:05:34,850 --> 00:05:36,420
the services page.
49
00:05:36,410 --> 00:05:39,000
We can go to the custom software development page.
50
00:05:39,170 --> 00:05:45,380
Use its forward arrow to go to the IRS and Android app development page and use the forward arrow again
51
00:05:45,440 --> 00:05:51,140
to go to the Web site development page and then we can go all the way backwards as well.
52
00:05:52,080 --> 00:05:58,000
So that's a nice little bit of extra functionality for our desktop users but let's go back to the Web
53
00:05:58,030 --> 00:06:01,680
site development page and we need to change the paragraphs here.
54
00:06:02,010 --> 00:06:08,280
So I'm going to open up the design file and I'm going to scroll on down to the Web site development
55
00:06:08,280 --> 00:06:12,600
page and let's copy these two paragraphs out of here.
56
00:06:13,140 --> 00:06:21,720
So paste in the first one copy the second paragraph we don't need an extra space copy the second paragraph
57
00:06:22,230 --> 00:06:27,930
we'll paste that in and then we do not need these last two typography components.
58
00:06:27,930 --> 00:06:34,830
So we'll get rid of those and we can minimize the design file for now and save the page and we'll see
59
00:06:34,830 --> 00:06:38,360
now the correct text is on the page.
60
00:06:38,450 --> 00:06:43,030
Now we can start working on the next row for the content of this page.
61
00:06:43,160 --> 00:06:49,940
So it will come down and underneath the previous grid items so with only one grid tag underneath us
62
00:06:50,330 --> 00:06:56,460
let's open up a new grid item container direction of row.
63
00:06:56,780 --> 00:07:04,340
And with the class name remember of classes dog row container to make sure we have the appropriate borders
64
00:07:04,700 --> 00:07:10,750
we can open that up and inside this we will have to grid items.
65
00:07:11,060 --> 00:07:16,200
So might create two of these grid items right now.
66
00:07:16,400 --> 00:07:26,200
And then inside of the first grid item we will have a grid container with a direction of column.
67
00:07:26,240 --> 00:07:33,470
The reason that I have a grid item wrapping the grid container instead of having a grid item container
68
00:07:33,500 --> 00:07:40,820
here is because I don't want this to be taking up the 100 percent width of the screen that is allocated
69
00:07:40,820 --> 00:07:42,750
with the container prop.
70
00:07:42,860 --> 00:07:49,460
So by nesting it like this it will make the alignment between these outer two grid items much easier
71
00:07:50,810 --> 00:07:56,360
so that's always something to keep in mind that 100 percent with from the container prop it's not always
72
00:07:56,360 --> 00:07:57,380
desirable.
73
00:07:57,380 --> 00:08:04,970
And so you may have to nest the container within an external item sometimes which then allows you to
74
00:08:04,970 --> 00:08:13,310
specify the position of all of this content by specifying the justify in a line items properties on
75
00:08:13,310 --> 00:08:14,870
the wrapping row.
76
00:08:14,960 --> 00:08:20,130
And that will move around these items irrespective of the content inside.
77
00:08:20,240 --> 00:08:26,080
Whereas otherwise if this was taking up 100 percent of the width it wouldn't be able to be moved around
78
00:08:26,090 --> 00:08:28,890
by our line items and justify properties.
79
00:08:28,910 --> 00:08:35,880
So that's something that you may have to mess with some times in your own projects inside of this container.
80
00:08:35,880 --> 00:08:37,560
Direction of column.
81
00:08:37,560 --> 00:08:47,640
We're gonna want a grid item and that will wrap a typography variant of H four with the gutter bottom
82
00:08:47,790 --> 00:08:48,450
property.
83
00:08:48,570 --> 00:08:53,050
And then this will say analytics.
84
00:08:53,200 --> 00:08:53,590
All right.
85
00:08:53,620 --> 00:09:03,340
And underneath this great item we will have another grid item and this will wrap our image with a source
86
00:09:03,490 --> 00:09:16,090
of analytics and an old of graph with magnifying glass revealing ones and zeros.
87
00:09:16,090 --> 00:09:20,190
So pretty details all tag on that one but I think that that's good.
88
00:09:20,260 --> 00:09:24,200
And then we need to come up and import our analytics image.
89
00:09:24,250 --> 00:09:32,430
So underneath here we'll import the analytics from our assets analytics.
90
00:09:32,470 --> 00:09:45,610
And while we're here let's go ahead and import s e o from assets such as C O import outreach from assets
91
00:09:45,610 --> 00:09:55,700
slash outreach and then import e commerce from assets e commerce.
92
00:09:55,750 --> 00:10:02,680
Now we can scroll back down and let's save the page so all of this will refresh and you can see we already
93
00:10:02,680 --> 00:10:08,070
have our analytics titles sitting on top of our analytics icon that looks really good.
94
00:10:09,550 --> 00:10:14,440
Let's go ahead and now in this second grid item that one that we had left empty.
95
00:10:14,440 --> 00:10:23,410
Let's go ahead here and add a typography variance of body one and we can open this up and inside of
96
00:10:23,410 --> 00:10:27,800
here we can open up the design file real quick and go into this paragraph.
97
00:10:27,820 --> 00:10:31,450
Copy that text and paste that right into our code.
98
00:10:31,450 --> 00:10:37,540
So then we can save the page and we'll see that refresh and you can see that our text is actually sitting
99
00:10:37,540 --> 00:10:47,230
down below it we can go ahead and fix this if we come up to the RO container and let's add in a line
100
00:10:47,320 --> 00:10:51,980
items property here and add that of center.
101
00:10:52,000 --> 00:10:59,200
And since we're in a direction of row and the line items specifies the cross axis that's going to be
102
00:10:59,200 --> 00:11:08,890
centering of the items along the vertical axis which should put our text here in the middle of the icon
103
00:11:09,100 --> 00:11:15,400
but then we also need a max width on our paragraph to make sure that it doesn't take up so much space
104
00:11:15,400 --> 00:11:16,160
like that.
105
00:11:16,180 --> 00:11:26,320
So on our paragraph here let's add a class name of classes dot paragraph container and then I will come
106
00:11:26,320 --> 00:11:37,330
up to our style objects and add the paragraph or graph container and it will set this style to a max
107
00:11:37,390 --> 00:11:45,580
width of 30 m and let's save the page and we'll see it jump and you can see that it did exactly what
108
00:11:45,580 --> 00:11:51,850
we had wanted is a max width so that the text was not spanning the full within the page and was now
109
00:11:51,850 --> 00:11:58,870
sitting alongside the icon and then by specifying the align items of center we moved it from sitting
110
00:11:58,870 --> 00:12:04,240
here at the top to being down in the center vertically with this icon.
111
00:12:04,240 --> 00:12:11,240
So that was really good and matches the design file I like to nit pick of course though and I want to
112
00:12:11,240 --> 00:12:17,990
change a little thing where this magnifying glass I have it sticking out I'll side the graph and so
113
00:12:17,990 --> 00:12:25,280
that's making it align with the title of to the top with the end here of the magnifying glass and I'd
114
00:12:25,280 --> 00:12:29,780
really like the bar graph to be aligned with the title instead.
115
00:12:29,780 --> 00:12:33,560
So I'd give the magnifying glass kind of a hanging overlook to it.
116
00:12:33,590 --> 00:12:37,730
So let's go ahead and on our analytics image.
117
00:12:37,730 --> 00:12:49,730
So down here with our analytics image let's add a style set to a margin left of negative two point seventy
118
00:12:49,730 --> 00:12:57,710
five m and we can save that and it will jump over and you can see that that looks very much more nicely
119
00:12:57,740 --> 00:13:06,240
aligned the rest of the page is just going to be repeating this section and then changing the icon title
120
00:13:06,270 --> 00:13:12,300
and the text for the different section content but that structure is going to be the exact same.
121
00:13:12,300 --> 00:13:17,130
So this is a good place to stop and take a break and we'll finish that off in the next video.
14015
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.