Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,560 --> 00:00:08,060
Let's go ahead and set the background image for our call to action now so we can actually see this properly.
2
00:00:08,220 --> 00:00:14,700
And we'll start by coming inside of our grid container this big the whole wrapping container and just
3
00:00:14,700 --> 00:00:21,530
above it will add our div with a class name of classes.
4
00:00:21,720 --> 00:00:26,340
Classes dot background and then we'll close that off.
5
00:00:26,340 --> 00:00:33,350
And now we can come up and we need to import the background so it will come underneath our import statements.
6
00:00:33,390 --> 00:00:39,810
And I said earlier that we're actually going to be using two backgrounds so we'll import the background
7
00:00:40,200 --> 00:00:49,100
from one directories up to directories and then assets and then background background.
8
00:00:49,130 --> 00:00:54,370
Dog j peg the only J pegs and we'll import mobile.
9
00:00:54,420 --> 00:00:56,270
Background.
10
00:00:56,270 --> 00:01:05,200
Background from two directories assets mobile background dot j peg.
11
00:01:05,220 --> 00:01:07,380
So make sure you have both of those correct.
12
00:01:07,470 --> 00:01:15,530
And then we'll come inside of our styles object and add the background style we can actually go over
13
00:01:15,530 --> 00:01:22,310
to the landing page once again and we can find either the revolution background or the info background
14
00:01:22,580 --> 00:01:23,540
doesn't really matter.
15
00:01:23,540 --> 00:01:30,740
They're both the same and what's copy those styles and come back over to the call to action and pace
16
00:01:30,800 --> 00:01:37,500
that style in of course this time though we're going to need to change revolution background to just
17
00:01:37,560 --> 00:01:43,860
the background that we had imported but now we also need to make sure that the mobile background is
18
00:01:43,860 --> 00:01:45,730
applied at the right time.
19
00:01:45,750 --> 00:01:54,720
So underneath these styles we'll add a theme dot breakpoints dot down for medium which is when we begin
20
00:01:54,720 --> 00:02:04,180
to show the draw and here will change our background image to be we can just copy this value paste up
21
00:02:04,500 --> 00:02:12,540
the mobile background and then we need to put a height on our container like we've done before to make
22
00:02:12,540 --> 00:02:14,460
sure that our image pops up.
23
00:02:14,460 --> 00:02:24,130
So here on our wrapping grid container let's add a style giving a height of 60 m.
24
00:02:24,200 --> 00:02:28,860
Now if we go ahead and save this we'll see the page refresh.
25
00:02:28,860 --> 00:02:36,700
And there we have our image now to get our text from sitting above it to actually sitting on top of
26
00:02:36,700 --> 00:02:37,180
it.
27
00:02:37,210 --> 00:02:45,910
We need to come to our grid item and give it a style setting our position to absolute like we have done
28
00:02:45,910 --> 00:02:47,520
for all of the rest of the items.
29
00:02:47,530 --> 00:02:49,100
So we can save this.
30
00:02:49,150 --> 00:02:54,480
We'll see the page refresh and now our text is sitting correctly on top of the image.
31
00:02:54,490 --> 00:02:58,650
And now that is looking much better also really quick.
32
00:02:58,650 --> 00:03:04,800
Want to make this subtitle text a little bit bigger but I don't want to change the styling that we had
33
00:03:04,800 --> 00:03:10,020
used for this text above which we're copying with the subtitle to text.
34
00:03:10,110 --> 00:03:14,240
So on our typography subtitle too let's just give that a style.
35
00:03:14,310 --> 00:03:18,040
Changing the font size to one point five rim.
36
00:03:18,130 --> 00:03:24,500
Now if we save them we'll see that that gives us a bit of a bigger text which is what I had wanted.
37
00:03:24,600 --> 00:03:30,600
Well let's go ahead and move the text down now here into the center of this container.
38
00:03:30,780 --> 00:03:38,190
And so since this container has a direction of row this outer main container has the default direction
39
00:03:38,190 --> 00:03:46,890
of row and we want to move the text down we need to use our line items to change that cross axis and
40
00:03:46,890 --> 00:03:48,960
we'll set this to center.
41
00:03:49,260 --> 00:03:55,760
So let's save that and we'll see the text now is in the center of the container and looking much better
42
00:03:56,070 --> 00:04:01,520
but we need to push this off the edge here like we've done with everything else and so on.
43
00:04:01,560 --> 00:04:13,160
This wrapping a grid item will actually add a margin left here of 5 m you can save that page will refresh
44
00:04:13,520 --> 00:04:20,400
and we can see we've now got a border consistent with all of the rest of the items on the page.
45
00:04:20,420 --> 00:04:28,650
So looking very good very consistent and still matching up very very closely with the design file let's
46
00:04:28,650 --> 00:04:33,030
work on our free estimate button now and outside of this grid.
47
00:04:33,060 --> 00:04:41,460
Item for the text once I add our grid item where we will be wrapping our button so we'll just put a
48
00:04:41,460 --> 00:04:50,100
button here with a variance of contained to give us that nice filled in look and the text free estimate
49
00:04:51,440 --> 00:05:00,830
can also go ahead and we'll set the class name of classes dot estimate button and we'll come up to create
50
00:05:00,830 --> 00:05:01,880
this style.
51
00:05:01,970 --> 00:05:10,460
Make sure you get the comma there and we'll create the estimate button style extending the theme dot
52
00:05:10,670 --> 00:05:21,110
typography Dodd estimate style we have been using and then setting the border radius of 50 a height
53
00:05:21,470 --> 00:05:35,720
of 80 a width to 0 5 a background color of theme dot palettes dot common dot orange and a font size
54
00:05:35,990 --> 00:05:38,850
of one point five RIM.
55
00:05:38,900 --> 00:05:45,860
So let's save this and we'll see the R button is not immediately visible but that is because it is up
56
00:05:45,860 --> 00:05:54,800
here since it does not have the style position of absolute that we had on our text however.
57
00:05:54,850 --> 00:06:03,100
If you try to come in on this grid item rapping the button and you wanted to add a style here with the
58
00:06:03,100 --> 00:06:11,890
same position of absolute OK you'll see the page refresh and you'll think OK this is a step in the right
59
00:06:11,890 --> 00:06:20,770
direction but now if you go to move these elements and distribute them along this axis by setting a
60
00:06:20,860 --> 00:06:29,620
justify of space between here on our main container you'll see the elements do not move and that is
61
00:06:29,620 --> 00:06:32,860
because we are positioning them absolutely.
62
00:06:32,860 --> 00:06:39,700
So what we'll actually do in this case is we are going to come down and get rid of this div where we're
63
00:06:39,700 --> 00:06:47,620
setting the background we're in completely get rid of it and we're going to add the class name of classes
64
00:06:48,220 --> 00:06:51,670
background to our main container.
65
00:06:51,670 --> 00:06:52,130
OK.
66
00:06:52,210 --> 00:06:58,900
So here we can take this style that we're setting with a height of 60 m and instead in the background
67
00:06:58,900 --> 00:07:03,630
style we can set 60 m right there.
68
00:07:03,630 --> 00:07:11,680
Now let's go ahead and remove the position of absolute from both of these grid items.
69
00:07:11,680 --> 00:07:20,200
Get rid of that whole style and we'll leave the justify space between on our grid container as well
70
00:07:20,520 --> 00:07:25,570
and let's go ahead and save this now and we'll see the page refreshes.
71
00:07:25,570 --> 00:07:33,480
And now you see we have the desired look by setting the background on the grid container instead of
72
00:07:33,480 --> 00:07:36,710
a nother div that they have to avoid.
73
00:07:36,750 --> 00:07:43,800
We then avoided having to mess with the absolute positioning and the grid items will just be contained
74
00:07:43,890 --> 00:07:50,790
within the grid container as normal now I would like to push our estimate button off the edge of the
75
00:07:50,790 --> 00:07:54,550
screen here and so on our estimate button style.
76
00:07:54,630 --> 00:08:02,630
Let's give it a margin right of 5 m to be consistent with the rest of the styles that we have made.
77
00:08:02,700 --> 00:08:08,790
We'll say that and now we've got a nice little border here and I think that now this is looking really
78
00:08:08,790 --> 00:08:09,180
good.
79
00:08:09,180 --> 00:08:15,980
So it's come in we'll open it up to the nice full screen size and we'll see this looks really nice here.
80
00:08:16,080 --> 00:08:23,280
And this is smaller than our other sections but I did want it to be not taking up as much space.
81
00:08:23,280 --> 00:08:26,970
And when you scroll all the way to the bottom it should be the only thing you see.
82
00:08:27,030 --> 00:08:29,730
So it does that and I think it looks good.
83
00:08:29,730 --> 00:08:35,170
So we'll scroll it down and you can see how that picture resize is nicely.
84
00:08:35,340 --> 00:08:40,050
And as we keep scrolling down you'll see that now our mobile background has hit.
85
00:08:40,110 --> 00:08:45,900
And so now I used a section that doesn't include that lighthouse because fitting it in on all the different
86
00:08:45,900 --> 00:08:48,480
devices just started to make it kind of look weird.
87
00:08:48,480 --> 00:08:54,390
So I think that this was a much cleaner look but we'll have to do some changes as we get all the way
88
00:08:54,390 --> 00:09:00,750
down to are even smaller sizes because you see then it really starts to do some weird things.
10211
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.