All language subtitles for 16. Creating The Information Block Continued

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
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
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian Download
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:01,100 --> 00:00:08,000 Now let's start creating the contact us section for this and it will start by actually copying this 2 00:00:08,000 --> 00:00:13,700 entire grid item the entire grid item above the info background div. 3 00:00:13,700 --> 00:00:20,660 But within our container that whole grid item for the About Us section and we're going to paste it another 4 00:00:20,660 --> 00:00:30,140 one right underneath what's come and change this title here to contact us and I'll change the subtitle 5 00:00:30,230 --> 00:00:35,450 to say hello with an exclamation mark. 6 00:00:35,600 --> 00:00:43,190 And then if you're on Mac you can do control command space to open up the emoji menu and I'm going to 7 00:00:43,190 --> 00:00:46,940 use the hand emoji just because I like the way that looks. 8 00:00:46,940 --> 00:00:52,130 I think it gives a little bit of a playful touch and just adds a little bit of personality. 9 00:00:52,130 --> 00:01:00,380 But yes Lin says the images should be wrapped in a spam tag and have a roll of image and have an accessible 10 00:01:00,380 --> 00:01:02,560 description with Aria label. 11 00:01:02,600 --> 00:01:09,540 So let's go ahead and wrap the emoji in a span tag and a closings span tag. 12 00:01:10,490 --> 00:01:24,050 And then I'll add a roll here of image and an aria Aria label label equal to waving hand but you don't 13 00:01:24,050 --> 00:01:26,030 have to include the emoji if you don't want to. 14 00:01:26,030 --> 00:01:27,080 I just think it looks good. 15 00:01:27,560 --> 00:01:33,500 So let's go ahead and save this now to see where this gets us and you can see now that those grid items 16 00:01:33,530 --> 00:01:35,420 are sitting on top of each other. 17 00:01:35,450 --> 00:01:42,500 So that's definitely not what we want but since they both have a position of absolute Well that's what's 18 00:01:42,500 --> 00:01:43,390 going to happen. 19 00:01:43,400 --> 00:01:50,570 So instead of setting the position of absolute on both of these items when we need to do is actually 20 00:01:50,570 --> 00:01:57,020 wrap both of these grid items and set the position of absolute on that container. 21 00:01:57,020 --> 00:02:06,110 So let's go ahead and we'll create a grid item container here and we will copy both. 22 00:02:06,150 --> 00:02:12,070 We'll actually cut both of the grid items here all the way down actually. 23 00:02:12,230 --> 00:02:19,940 So it's easier sometimes to start from the bottom so I can see where these and we'll copy both of these 24 00:02:19,940 --> 00:02:25,940 grid items for our about us and contact us into this grid item container. 25 00:02:25,940 --> 00:02:33,890 And now we can go and remove these style and position of absolute for both of these come and get rid 26 00:02:33,890 --> 00:02:44,790 of those and now will add a style position position of absolute on our container. 27 00:02:44,810 --> 00:02:46,890 So let's go ahead and we'll save this. 28 00:02:46,970 --> 00:02:52,940 The page will refresh and now you see that we have our items separated. 29 00:02:52,940 --> 00:03:00,700 We have this little gap between them though because our Contact Us style has the margin left that we've 30 00:03:00,740 --> 00:03:04,550 been using on about us to create our little border here. 31 00:03:04,610 --> 00:03:09,860 But we're actually not going to want that on the left side of contact us will want that border on the 32 00:03:09,890 --> 00:03:15,110 right side so that when we get it pressed against the right edge of the screen it creates that same 33 00:03:15,140 --> 00:03:16,160 level of border. 34 00:03:16,190 --> 00:03:19,690 So let's change this margin left to a margin right. 35 00:03:19,740 --> 00:03:21,020 And we can save that. 36 00:03:21,110 --> 00:03:22,490 See the page refresh. 37 00:03:22,520 --> 00:03:27,090 And now the space is gone and there's a hidden margin over on the right. 38 00:03:27,200 --> 00:03:34,460 So to get our items spaced all the way over there you think we might use our justify property but we 39 00:03:34,460 --> 00:03:38,810 can actually do this a little better and make it responsive at the same time. 40 00:03:38,900 --> 00:03:41,640 If we go ahead and on each of the grid items. 41 00:03:41,660 --> 00:03:46,400 So the grid item with the style margin left for about us. 42 00:03:46,400 --> 00:03:54,140 Let's add the small property to that and then we'll add the small property to this grid item with margin 43 00:03:54,140 --> 00:03:56,760 right for contact us as well. 44 00:03:56,810 --> 00:04:03,080 And by setting these small property with no actual fixed value on both of these items we're setting 45 00:04:03,080 --> 00:04:04,180 it to auto. 46 00:04:04,190 --> 00:04:09,500 So each of these grid items will share the available space within their container. 47 00:04:09,530 --> 00:04:15,770 So if we go ahead and his save the page will refresh and now the spacing has changed so that they're 48 00:04:15,770 --> 00:04:19,650 actually each taking up this big block of space. 49 00:04:19,790 --> 00:04:24,860 But we want the contact us to all be on the right side of this. 50 00:04:24,860 --> 00:04:26,720 So what we need to do is. 51 00:04:26,720 --> 00:04:29,450 Next to our margin right style. 52 00:04:29,660 --> 00:04:37,520 Let's set our text aligned style to right and we can go ahead and save that and see the page refresh. 53 00:04:37,520 --> 00:04:44,780 And now all of that content is being aligned to the right side of the space that they are both sharing 54 00:04:44,870 --> 00:04:45,740 equally. 55 00:04:45,740 --> 00:04:49,580 And this creates the exact layout that we had been wanting. 56 00:04:49,640 --> 00:04:56,570 So you can imagine that each of these about us and the Contact Us sections there each sharing 50 percent 57 00:04:56,630 --> 00:04:58,470 of the screen available here. 58 00:04:58,490 --> 00:05:04,550 Thanks to these small properties so they're each sharing the available space and getting half of it. 59 00:05:04,610 --> 00:05:11,690 But within that half that they own the about us is aligning to the left side of its section and the 60 00:05:11,720 --> 00:05:16,400 contact us is aligning to the right side of its section. 61 00:05:16,400 --> 00:05:22,310 So that's what gives us this nice spacing and we'll hope to make sure that they share the space available 62 00:05:22,520 --> 00:05:29,990 as we resize the screen but start to see how this looks when we resize the page and we'll start putting 63 00:05:29,990 --> 00:05:31,850 in some styles to help us there. 64 00:05:31,940 --> 00:05:38,330 But we can see if we make this size all the way big they perfectly share this space and it just looks 65 00:05:38,330 --> 00:05:41,980 great really expanded exactly how you would expected to. 66 00:05:42,050 --> 00:05:48,260 And we can start shrinking it down now and we'll see them perfectly share the space and continue to 67 00:05:48,260 --> 00:05:52,370 shrink all the way until we get to here. 68 00:05:52,370 --> 00:05:58,220 So now they're touching and as we continue to shrink down to the smaller screen size you see it kind 69 00:05:58,220 --> 00:06:01,730 of does this pretty strange layout here. 70 00:06:01,790 --> 00:06:07,490 And that's because it doesn't have enough space for each of those sections to share the screen size. 71 00:06:07,490 --> 00:06:14,420 And so when it goes to stack them on top of each other the contact us section it has a margin right 72 00:06:14,480 --> 00:06:18,920 not the margin left which creates the little space here. 73 00:06:18,920 --> 00:06:23,810 And so the Contact Us gets pushed all the way against the left side of the screen where the About Us 74 00:06:23,870 --> 00:06:25,160 stays where it is. 75 00:06:25,160 --> 00:06:26,650 And it just looks all janky. 76 00:06:26,660 --> 00:06:29,120 So we definitely need to take care of this. 77 00:06:29,240 --> 00:06:35,240 And I think the my preferred solution would be instead of to just continue shrinking them down to where 78 00:06:35,240 --> 00:06:37,610 they're now touching and then it does this. 79 00:06:37,610 --> 00:06:43,190 I think for the smallest screen size we should just make sure that these are stacking on top of each 80 00:06:43,190 --> 00:06:48,620 other and centered like we have done for all of the other elements at our Mobile's size. 81 00:06:48,620 --> 00:06:54,320 So the first thing I want to do is actually reduce these margins if we're at a smaller size. 82 00:06:54,320 --> 00:07:00,500 I'm definitely not going to want those to be pushing our sections as much as they are and by reducing 83 00:07:00,500 --> 00:07:05,540 them they will actually make sure that they don't squish together as quickly either. 84 00:07:05,540 --> 00:07:10,910 So if we come up and in our margin left property let's check our matches. 85 00:07:10,910 --> 00:07:17,870 S M variable and if that is true let's change the margin to just to m. 86 00:07:17,870 --> 00:07:24,050 Otherwise we'll leave our 5 m value and let's go ahead and do the same thing for the margin right on 87 00:07:24,050 --> 00:07:32,540 our contact us section checking the matches S.M. putting a 2 m margin if it's true and otherwise leaving 88 00:07:32,540 --> 00:07:34,100 our 5 m value. 89 00:07:34,130 --> 00:07:37,430 So let's save that and we'll see the page refresh. 90 00:07:37,430 --> 00:07:44,360 And now you can see that there's a much thinner margin which allows the items to share the space down 91 00:07:44,360 --> 00:07:50,840 to a smaller screen size and you can see where they're still touching here and this is where we actually 92 00:07:50,840 --> 00:07:57,080 now are going to want to stack them on top of one another because that usually is what you would expect 93 00:07:57,080 --> 00:08:02,540 from mobile and definitely looks better than if we just tried to center this and still have them squished 94 00:08:02,600 --> 00:08:03,580 together. 95 00:08:03,590 --> 00:08:11,450 So on this wrapping grid item container where we set the style of position absolute and remember this 96 00:08:11,450 --> 00:08:16,520 is wrapping all of the about us and contact us sections here. 97 00:08:16,520 --> 00:08:19,070 Let's add a direction to it. 98 00:08:19,070 --> 00:08:25,010 And right now it's defaulting to row and that is why we have the about us section on the left and the 99 00:08:25,010 --> 00:08:27,560 contact us section on the right. 100 00:08:27,560 --> 00:08:33,230 Well let's go ahead and we'll set this equal to a ternary statement and let's check our matches. 101 00:08:33,230 --> 00:08:40,340 S M variable and if that is true then let's go ahead and we'll set this to column. 102 00:08:40,490 --> 00:08:47,390 So if we are at a small screen size being laid out from left to right these should now be set up from 103 00:08:47,390 --> 00:08:49,100 top to bottom. 104 00:08:49,250 --> 00:08:55,020 And if we are not at our smaller screen size let's go ahead and provide the default of row. 105 00:08:55,100 --> 00:08:59,360 So let's go ahead and save that now and we'll see the page refresh. 106 00:08:59,360 --> 00:09:06,880 And now we've got our items stacked on top of one another if we resize the screen we can see as we make 107 00:09:06,880 --> 00:09:11,850 it larger then it will reach the point where they're now back at the same level. 108 00:09:11,950 --> 00:09:17,830 But we can continue to shrink down and see where they then stack at a column layout. 109 00:09:17,920 --> 00:09:22,870 But we're not finished here because I don't want them to still just be kind of a staircase like this. 110 00:09:22,900 --> 00:09:30,820 I want it to all be completely censored but only here at this very smallest screen size because up above 111 00:09:30,850 --> 00:09:38,810 this size it actually looks like we have enough room for the items to share the space pretty comfortably. 112 00:09:38,950 --> 00:09:42,220 And so I think this is shrinking it down. 113 00:09:42,220 --> 00:09:43,530 Say at this size. 114 00:09:43,540 --> 00:09:49,030 If we were to censor it up it wouldn't make much sense because there's still plenty of room between 115 00:09:49,030 --> 00:09:54,880 them but as we get down only to the very smallest size is when we need to stack that. 116 00:09:54,880 --> 00:10:04,030 So what I want to do is come up to the top and underneath where we check our small media query let's 117 00:10:04,120 --> 00:10:11,920 copy this and I want to paste another and let's change it to matches x s and change it to the extra 118 00:10:11,920 --> 00:10:20,380 small breakpoint and it will scroll back down now and where we had set the direction to column or row 119 00:10:20,680 --> 00:10:22,620 instead of the matches S.M.. 120 00:10:22,630 --> 00:10:27,160 Let's actually just make that the matches extra small breakpoint. 121 00:10:27,250 --> 00:10:30,800 And now to make sure all of our text aligns correctly. 122 00:10:30,850 --> 00:10:34,430 Come up in on our style for this container. 123 00:10:34,480 --> 00:10:41,570 Well let's set the text online for all of the text within the container to check our matches. 124 00:10:41,590 --> 00:10:44,470 X x x s variable. 125 00:10:44,590 --> 00:10:52,570 And if we're at the smallest screen size let's make it centered and otherwise we'll leave it to inherit 126 00:10:52,600 --> 00:10:57,550 wherever it was doing before and then down here on our grid. 127 00:10:57,550 --> 00:11:02,810 Item 4 contact us where we're aligning the text here to the right. 128 00:11:02,980 --> 00:11:08,200 Well on our smaller screen size when we're then going to be censoring everything we don't want it to 129 00:11:08,260 --> 00:11:09,670 always be right. 130 00:11:09,670 --> 00:11:18,550 So let's add a matches x s and if we're at that small screen size we'll center it otherwise we'll read 131 00:11:18,550 --> 00:11:26,430 it as right let's save this and see how this is looking and we can now see that it looks really good. 132 00:11:26,440 --> 00:11:33,190 The items and text are now all centered in the screen at this small screen size but they are a little 133 00:11:33,190 --> 00:11:34,080 bit offset. 134 00:11:34,090 --> 00:11:40,540 We've got this little spacing here and that's coming from the margin left that we are still setting 135 00:11:40,600 --> 00:11:43,470 for these smaller screen sizes. 136 00:11:43,480 --> 00:11:50,440 So what I want to do is we're going to use a nested ternary statement and in front of the matches S.M. 137 00:11:50,620 --> 00:11:59,680 we're first going to check for the matches x x x s variable and if that is true we will simply get rid 138 00:11:59,680 --> 00:12:01,510 of the margin entirely. 139 00:12:01,510 --> 00:12:08,730 Otherwise we will go to check for our matches S M variable let's come and we'll actually add that to 140 00:12:08,730 --> 00:12:14,670 the margin right for the contact us section as well because you may not be able to tell but that's pushing 141 00:12:14,670 --> 00:12:16,830 the margin here as well. 142 00:12:16,830 --> 00:12:26,000 So we'll add our matches x s check and if it is well 0 it if not we'll go and follow the logic. 143 00:12:26,010 --> 00:12:29,010 We had already set let's save this. 144 00:12:29,020 --> 00:12:35,140 Now the page will refresh and now we've got very nicely perfectly centered items. 145 00:12:35,270 --> 00:12:41,480 And as we go and upsize the screen we'll see it jump to where they're perfectly sharing the space available 146 00:12:41,780 --> 00:12:47,380 and continue to do so all the way up to the largest of screen size. 147 00:12:47,390 --> 00:12:48,760 So this looks great now. 148 00:12:48,770 --> 00:12:52,600 They're perfectly sharing this all the way down. 149 00:12:52,940 --> 00:12:59,840 Really looks good never getting too close to each other or the edge and the only thing that I think 150 00:12:59,840 --> 00:13:05,510 we could do now is maybe put a little more spacing in between these two items when they are on top of 151 00:13:05,510 --> 00:13:05,960 each other. 152 00:13:06,380 --> 00:13:15,620 So to do that on our grid item container that is wrapping both of these items we can add a spacing property 153 00:13:15,950 --> 00:13:20,120 which will check are matches x s variable. 154 00:13:20,270 --> 00:13:27,470 So if we are in the column layout stacked on top of each other let's have a spacing of 10 otherwise 155 00:13:27,680 --> 00:13:29,230 0 which is the default. 156 00:13:29,240 --> 00:13:30,770 So we'll save that. 157 00:13:30,770 --> 00:13:32,390 The page will refresh. 158 00:13:32,390 --> 00:13:36,030 And now you can see we've got a nice bit of spacing between them. 159 00:13:36,170 --> 00:13:41,200 But when we size back up and they share the space it goes back to normal. 160 00:13:41,210 --> 00:13:43,670 So I think that that is perfect. 161 00:13:43,670 --> 00:13:47,870 I think we've perfectly made our responsive info section. 162 00:13:47,930 --> 00:13:51,980 It was a little bit of work but I think it looks really good. 163 00:13:51,980 --> 00:13:53,290 It's a nice layout. 164 00:13:53,360 --> 00:13:54,770 It's definitely different. 165 00:13:54,770 --> 00:14:00,680 And we keep getting more experience with different ways to use the grid and its different properties 166 00:14:00,800 --> 00:14:07,400 and the responsive system to change those properties to constantly create the best user experience possible 167 00:14:08,610 --> 00:14:12,080 though we've done a great job almost completely finishing the home page. 168 00:14:12,080 --> 00:14:18,890 Now there's only one very last part to top it off the call to action which will get started in the next 169 00:14:18,890 --> 00:14:19,130 one. 18531

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