All language subtitles for 4. Services Page - Responsive Design

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian Download
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,090 --> 00:00:06,310 So that's looking a lot better but now let's address the fact that this is definitely way too spaced 2 00:00:06,310 --> 00:00:11,260 out and there's too much space up here above the top of this first item. 3 00:00:11,320 --> 00:00:20,220 So we'll come up and inside of our service container which is the class on all of these service blocks. 4 00:00:20,260 --> 00:00:27,700 We're setting a margin top of 12 m and I'd like to come and change that actually to just 10 now. 5 00:00:27,730 --> 00:00:29,270 So we'll save that. 6 00:00:29,290 --> 00:00:35,420 And we see things shrink up just a little bit but we still have too much space up here on the top. 7 00:00:35,530 --> 00:00:42,850 So to solve that what I want to do is come down to this grid container direction of row for our Iaw 8 00:00:42,850 --> 00:00:49,750 and Android block and underneath the class name for the service container style let's add directly a 9 00:00:49,750 --> 00:00:55,390 style equal to a margin top of just five m. 10 00:00:55,450 --> 00:01:02,740 So this will overwrite the 10 m margin for the service container and we'll give it instead just five 11 00:01:02,770 --> 00:01:03,310 m. 12 00:01:03,310 --> 00:01:11,390 So if we save that we'll now see the top of the page is shrunk and is closer to the top the top is looking 13 00:01:11,390 --> 00:01:15,780 really good but we don't have enough space down here on the bottom. 14 00:01:15,830 --> 00:01:22,160 You can see the website development section is pressed right up against the footer here and we definitely 15 00:01:22,160 --> 00:01:24,020 want some white space there. 16 00:01:24,990 --> 00:01:32,700 So we'll come down and on our Web sites a block for the container direction of row under the service 17 00:01:32,700 --> 00:01:34,170 containers class name. 18 00:01:34,230 --> 00:01:42,720 Let's give it a style equal to a margin bottom of 10 M's and we'll save that. 19 00:01:42,840 --> 00:01:49,440 And once page it refreshes we see we've now got a nice amount of whitespace there. 20 00:01:49,480 --> 00:01:52,080 This is now really close to the design. 21 00:01:52,090 --> 00:01:55,960 You see it went pretty quick because we had already had most of this already done. 22 00:01:56,290 --> 00:02:02,890 But you can see here at this larger size that there is a bit of a weird alignment problem that I don't 23 00:02:02,890 --> 00:02:09,760 really like and that is over here you can see that the icons are lined up for these sections but the 24 00:02:09,760 --> 00:02:17,260 text for the website development section is all the way over here whereas the Iaw and Android app development 25 00:02:17,260 --> 00:02:25,500 section extends all the way out much farther so I'd really like ideally for these two text sections 26 00:02:25,560 --> 00:02:31,770 to be lined up as well which I really think would make it more consistent and more pleasing to the eye 27 00:02:32,050 --> 00:02:39,260 than this kind of jagged look that it has now another problem that we have still is if we start shrinking 28 00:02:39,260 --> 00:02:44,210 the page down actually and we get all the way to this the smallest size. 29 00:02:44,210 --> 00:02:49,560 Well now the spacing up above the IOW section is actually a little bit too much. 30 00:02:49,580 --> 00:02:50,300 In my opinion. 31 00:02:50,510 --> 00:02:57,380 So we need to go ahead and add a breakpoint to change that style for a lower value on our mobile devices 32 00:02:58,790 --> 00:03:05,980 so up here on the Iaw and Android blog where we had set our margin top of five M.. 33 00:03:06,050 --> 00:03:08,420 Let's change this to a ternary statement. 34 00:03:08,480 --> 00:03:16,370 Checking our matches S M variable and if we are at these small breakpoint and that is true let's set 35 00:03:16,370 --> 00:03:23,920 a margin top of just one m m and otherwise we'll weave our 5 and the value. 36 00:03:23,930 --> 00:03:25,150 So we save that. 37 00:03:25,260 --> 00:03:30,860 And since with pages already shrunken down you can see it's now much closer to the top which I think 38 00:03:30,860 --> 00:03:37,850 is a lot more like what we had wanted Let's size this back up though and we can take a look at that 39 00:03:37,850 --> 00:03:45,080 alignment issue now see how these containers are still very much off center with each other and to fix 40 00:03:45,080 --> 00:03:45,350 this. 41 00:03:45,350 --> 00:03:51,890 Well I wanted to do is to actually set a whit for this text container so that regardless of how much 42 00:03:51,890 --> 00:03:58,190 text is inside you see all the website development has much less text so it does not extend as far but 43 00:03:58,190 --> 00:04:05,180 if we set a width on that container then no matter how much text is inside both containers will be sent 44 00:04:05,210 --> 00:04:08,180 to the same width and thus should be aligned. 45 00:04:08,180 --> 00:04:16,640 So here on the grid item wrapping are typography components and the button component here for our Iowa 46 00:04:16,670 --> 00:04:20,770 is an Android app blog inside of these style. 47 00:04:20,780 --> 00:04:28,160 Next to the text a line style let's add a width property and we'll actually use a ternary statement. 48 00:04:28,190 --> 00:04:36,380 So the matches S M variable and if that is true then it will actually set this to undefined because 49 00:04:36,380 --> 00:04:43,080 we already have it responsive for our mobile site and everything will just be centered up above. 50 00:04:43,100 --> 00:04:48,350 It's just for the larger sizes that we need to make sure that this alignment is being taken care of. 51 00:04:48,380 --> 00:04:57,710 So we'll set the width here to thirty five m and now we can go and copy this style and scroll down to 52 00:04:57,710 --> 00:05:04,790 the website development block and next to the text aligned section on that grid item wrapping the typography 53 00:05:04,820 --> 00:05:12,140 components we will add these with property that we had just copied and it will save this now to see 54 00:05:12,140 --> 00:05:19,220 our page refresh and you'll notice that the website development section jumped out but it's still not 55 00:05:19,220 --> 00:05:27,930 quite all the way lined up with the Iaw and Android app development section and although the text sections 56 00:05:27,990 --> 00:05:35,430 are now the exact same size with our 35 m with the problem now is that the icons are not the exact same 57 00:05:35,430 --> 00:05:36,080 size. 58 00:05:36,150 --> 00:05:43,430 So you'll notice that the Iaw and Android app icon is actually a bit wider than the website icon. 59 00:05:43,470 --> 00:05:47,470 So we need to go ahead and set these same width for those items as well. 60 00:05:47,520 --> 00:05:53,940 So then the icon and the text container will both be the same width for each of these sections which 61 00:05:53,940 --> 00:06:01,580 will ensure that they are aligned with one another so now onto the image for our Web site icon. 62 00:06:01,580 --> 00:06:10,470 Let's add a width equal to two hundred and fifty M K and then we'll copy that and we'll come up to the 63 00:06:10,470 --> 00:06:12,730 IRS and Android app development block. 64 00:06:12,860 --> 00:06:17,270 And on the mobile apps icon image we'll paste that with as well. 65 00:06:17,270 --> 00:06:20,810 So let's go ahead save that the page will refresh. 66 00:06:20,810 --> 00:06:27,260 And now our icons are the exact same width and you'll see that that has caused our entire containers 67 00:06:27,410 --> 00:06:33,110 to now be aligned so I can go ahead and I can bring this all the way up and I've got a little chrome 68 00:06:33,110 --> 00:06:39,800 extension here that is pretty useful it allows me to draw boxes here on the page so I can check the 69 00:06:39,800 --> 00:06:46,520 alignment of different items and if we now go and we draw a little line right next to the Iaw app development 70 00:06:46,520 --> 00:06:52,850 section you'll see that it extends down and is perfectly lined up with our Web site development section 71 00:06:54,240 --> 00:06:57,130 so that perfectly achieved what we had wanted to. 72 00:06:57,180 --> 00:07:03,630 And by setting the fixed width for each of these items we were able to guarantee consistency regardless 73 00:07:03,630 --> 00:07:05,030 of the content. 74 00:07:05,040 --> 00:07:12,070 So you'll see that this now shrinks all the way down all the way inside until we get to the medium then 75 00:07:12,080 --> 00:07:18,150 it will jump to being censored and then they'll continue to shrink down appropriately to the smallest 76 00:07:18,210 --> 00:07:18,970 sizes. 77 00:07:18,990 --> 00:07:25,630 Thanks to the styles that we had already set up on our landing page there is one last little thing and 78 00:07:25,630 --> 00:07:26,180 we forgot. 79 00:07:26,200 --> 00:07:33,580 If you haven't noticed and we didn't even put these services title here on the page so up above the 80 00:07:33,910 --> 00:07:40,810 Iaw and Android app development block but underneath our great container let's add a grid item here 81 00:07:41,110 --> 00:07:52,240 and this is just going to wrap a typography variant H2 and we'll set this to the services services title 82 00:07:52,430 --> 00:07:56,350 and let's actually add a gutter bottom onto that as well. 83 00:07:56,380 --> 00:08:01,300 This we get a little bit of spacing so we can save that page will refresh. 84 00:08:01,300 --> 00:08:06,580 And now we've got the services tab but it just needs that margin there as well. 85 00:08:06,610 --> 00:08:16,060 So we'll give it these style margin left 5 m but we know that we don't want the 5 m if we are on a mobile 86 00:08:16,060 --> 00:08:24,310 device and this is a censored up so we'll want to check the matches small matches small variable and 87 00:08:24,340 --> 00:08:26,670 if that's true we'll zero it out. 88 00:08:26,670 --> 00:08:29,020 Otherwise we'll leave that margin. 89 00:08:29,020 --> 00:08:34,990 And since we know that this is going to need to be centered then as well we'll add the online property 90 00:08:35,320 --> 00:08:41,950 and set that equal to our matches S M if that's true we'll line a center. 91 00:08:42,040 --> 00:08:45,670 Otherwise leave it undefined undefined. 92 00:08:45,970 --> 00:08:47,280 So we'll save that. 93 00:08:47,560 --> 00:08:51,670 And the title has jumped over a little bit farther than we expected. 94 00:08:51,790 --> 00:08:58,870 That's actually because this style of margin left it needs to go on the grid item wrapping the typography 95 00:08:59,200 --> 00:09:01,000 not the typography itself. 96 00:09:01,000 --> 00:09:08,710 So we'll save that and we'll see now that it's lined up with the other margin on the page I could use 97 00:09:08,710 --> 00:09:12,770 a little bit more space on top of it though I know I'm always picky. 98 00:09:12,770 --> 00:09:19,740 Well let's give a margin top here and we'll do the same matches S M matches S.M.. 99 00:09:19,870 --> 00:09:24,060 And if we're there we'll know we'll only want a smaller margin on the top. 100 00:09:24,070 --> 00:09:28,770 So to do a margin of 1 m otherwise let's do 2 m. 101 00:09:28,900 --> 00:09:30,150 So we'll save that. 102 00:09:30,640 --> 00:09:33,510 And now we've got a little bit more space on top of there. 103 00:09:33,520 --> 00:09:35,490 I think that looks perfect actually. 104 00:09:35,560 --> 00:09:39,880 And you can see it stays in the correct place when we extend the screen. 105 00:09:39,970 --> 00:09:45,790 And now if we come and shrink the screen down it'll jump to being centered just like all the other items 106 00:09:46,180 --> 00:09:49,660 and now looks appropriate on our smaller page. 107 00:09:49,660 --> 00:09:54,250 So I know that I moved a little quickly on that one but I think we're getting really good at the responsive 108 00:09:54,250 --> 00:10:00,820 design aspect of this and using our break points to set different styles and really just create clean 109 00:10:00,820 --> 00:10:04,190 consistent layouts without much manual work. 110 00:10:04,210 --> 00:10:05,430 It does so much for us. 111 00:10:05,440 --> 00:10:06,600 I really love that. 112 00:10:06,730 --> 00:10:13,780 And you can see the services page is already completed and looking perfect for all screen sizes. 113 00:10:13,810 --> 00:10:19,990 So this is great and really went quickly compared to the landing page of course because now we're not 114 00:10:19,990 --> 00:10:22,500 having to learn as much new stuff. 115 00:10:22,510 --> 00:10:28,960 We're just focusing on that grid set up in all of our responsive styles but hopefully all of the rest 116 00:10:28,960 --> 00:10:35,410 of the pages on the site they should move relatively quickly just like this one since we now know everything 117 00:10:35,410 --> 00:10:41,050 that we need about material UI to create these and we're just getting practice implementing these different 118 00:10:41,050 --> 00:10:41,840 layouts. 119 00:10:41,980 --> 00:10:44,650 So the services section is a good place to start. 120 00:10:44,650 --> 00:10:50,680 Nice little warm up if you've taken a break but we'll get into some new content now when we start building 121 00:10:50,740 --> 00:10:57,340 out our services pages starting with the custom software development page in the next video. 13929

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.