All language subtitles for 134 Responding to Tablets.en_US

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,360 --> 00:00:04,830 Let's keep working on our responsive layout. 2 00:00:04,830 --> 00:00:07,120 This time, adding another breakpoint 3 00:00:07,120 --> 00:00:08,670 and another media query, 4 00:00:08,670 --> 00:00:11,453 which is going to respond to tablets. 5 00:00:13,140 --> 00:00:14,660 So in the last lecture, 6 00:00:14,660 --> 00:00:19,000 we introduced a breakpoint at 1200 pixels. 7 00:00:19,000 --> 00:00:20,960 So around here, 8 00:00:20,960 --> 00:00:25,660 and so we fixed our design basically at dead screen width. 9 00:00:25,660 --> 00:00:27,710 So here, now everything looks good 10 00:00:28,690 --> 00:00:30,900 and let's actually zoom out a little bit 11 00:00:30,900 --> 00:00:33,263 so we can see like everything at once. 12 00:00:34,670 --> 00:00:37,350 So again here, everything looks good, 13 00:00:37,350 --> 00:00:40,250 but of course, immediate query should not work 14 00:00:40,250 --> 00:00:42,830 at just one specific point. 15 00:00:42,830 --> 00:00:45,210 So instead, as a rule of thumb, 16 00:00:45,210 --> 00:00:48,170 I would say that immediate query should work 17 00:00:48,170 --> 00:00:52,373 over a range of at least 200 or 300 pixels. 18 00:00:53,454 --> 00:00:56,360 All right, so as I had already mentioned, 19 00:00:56,360 --> 00:01:00,510 we should not like add a media query every 50 pixels 20 00:01:00,510 --> 00:01:03,410 to fix every single design problem 21 00:01:03,410 --> 00:01:06,500 that appears as we scale down the page. 22 00:01:06,500 --> 00:01:11,500 And so let's now go down maybe 300 pixels to 900 23 00:01:12,130 --> 00:01:15,280 and analyze what our design looks like 24 00:01:15,280 --> 00:01:17,283 and if we need to fix something here. 25 00:01:18,550 --> 00:01:23,550 So first of all, this heading here now went into four lines. 26 00:01:23,870 --> 00:01:26,240 So this doesn't look really good. 27 00:01:26,240 --> 00:01:29,570 And overall, there is not really a lot of space here anymore 28 00:01:29,570 --> 00:01:32,770 in this hero section to have this content here 29 00:01:32,770 --> 00:01:35,623 on one side and the image on another side. 30 00:01:36,770 --> 00:01:37,603 Also down here, 31 00:01:37,603 --> 00:01:41,450 we see that these logos are way too big at this point, 32 00:01:41,450 --> 00:01:43,840 and they're really cramped together. 33 00:01:43,840 --> 00:01:47,523 So there is not really enough space here for separation. 34 00:01:49,770 --> 00:01:54,770 Then here also, this title now moved into two lines 35 00:01:55,660 --> 00:01:59,010 and so that makes it so that this card on the left side 36 00:01:59,010 --> 00:02:00,850 is bigger than this one. 37 00:02:00,850 --> 00:02:03,133 So that's not ideal as well. 38 00:02:04,920 --> 00:02:07,010 Then here again, we have that problem, 39 00:02:07,010 --> 00:02:10,230 that there is not enough width basically 40 00:02:10,230 --> 00:02:13,240 to fit this content here on the left side, 41 00:02:13,240 --> 00:02:15,053 and so we should fix that as well. 42 00:02:17,860 --> 00:02:21,470 Here also, this image is looking now a bit too narrow 43 00:02:21,470 --> 00:02:25,750 and probably we could also make this here now wider. 44 00:02:25,750 --> 00:02:27,000 So these input fields, 45 00:02:27,000 --> 00:02:30,673 they also look a little bit too small to me at this point. 46 00:02:31,820 --> 00:02:34,870 So it's time now to make some of the things here, 47 00:02:34,870 --> 00:02:38,020 basically move into just one column. 48 00:02:38,020 --> 00:02:38,950 For example, here, 49 00:02:38,950 --> 00:02:42,180 we could switch from these two columns to just one. 50 00:02:42,180 --> 00:02:44,880 And I would say we should do the same thing 51 00:02:44,880 --> 00:02:46,820 also here in the hero. 52 00:02:46,820 --> 00:02:49,800 And so let's now find the exact breakpoint 53 00:02:49,800 --> 00:02:51,603 where we are going to do all that. 54 00:02:53,200 --> 00:02:55,603 So let's see here. 55 00:02:57,730 --> 00:03:00,800 So here at least this part still looks okay. 56 00:03:00,800 --> 00:03:03,220 And so I think I will go with a width 57 00:03:03,220 --> 00:03:05,423 where this here breaks into another line. 58 00:03:06,670 --> 00:03:09,303 So something like 940 pixels. 59 00:03:10,290 --> 00:03:12,080 So let's go back 60 00:03:14,330 --> 00:03:17,733 and add that new media query right here. 61 00:03:21,210 --> 00:03:25,123 So at media, max width, 62 00:03:26,660 --> 00:03:29,253 and now let's again do that calculation. 63 00:03:30,130 --> 00:03:34,820 So 940 divided by 16, 64 00:03:34,820 --> 00:03:38,010 and let's round this one to 59 em. 65 00:03:38,010 --> 00:03:42,200 And so that would be 59 times 16, 66 00:03:42,200 --> 00:03:45,673 so 944 pixels which is perfect. 67 00:03:47,810 --> 00:03:52,810 So 59 em and let's again, add some comment here, 68 00:03:57,180 --> 00:04:00,690 just so we also know what these values here actually mean 69 00:04:00,690 --> 00:04:05,260 because 59 em is not really that intuitive. 70 00:04:05,260 --> 00:04:07,990 So 944 pixels, 71 00:04:07,990 --> 00:04:10,963 and let's say that this one here is more for tablets. 72 00:04:13,100 --> 00:04:16,220 So we're still kind of thinking about devices here, 73 00:04:16,220 --> 00:04:17,970 but also using of course, 74 00:04:17,970 --> 00:04:21,420 our design to really see where to design breaks 75 00:04:21,420 --> 00:04:26,360 and not simply use blindly something like 900 pixels. 76 00:04:26,360 --> 00:04:29,700 So instead our design breaks something around here, 77 00:04:29,700 --> 00:04:32,353 and so that's where we put our breakpoint. 78 00:04:33,620 --> 00:04:36,940 But anyway, let's now scale down the value 79 00:04:36,940 --> 00:04:40,950 of one rem even more to basically make the entire design 80 00:04:40,950 --> 00:04:43,670 a bit smaller here once again. 81 00:04:43,670 --> 00:04:47,823 So that's exactly, remember what we did here previously. 82 00:04:48,858 --> 00:04:51,620 All right? So now here at this width, 83 00:04:51,620 --> 00:04:53,740 one rem is nine pixel. 84 00:04:53,740 --> 00:04:58,393 And so now let's move that to even smaller at eight pixels. 85 00:04:59,900 --> 00:05:04,900 All right. So here we will want the font size to be 50%. 86 00:05:07,390 --> 00:05:11,450 And that's of course, because eight pixels, 87 00:05:11,450 --> 00:05:16,413 which is our target divided by 16 pixels is 0.5, 88 00:05:17,730 --> 00:05:20,090 which is 50%. 89 00:05:20,090 --> 00:05:21,710 All right, 90 00:05:21,710 --> 00:05:25,613 so that immediately will have some impact right there. 91 00:05:27,450 --> 00:05:29,600 And I think I need to reload the page here. 92 00:05:32,896 --> 00:05:36,320 So that immediately fixes some of the things here, 93 00:05:36,320 --> 00:05:39,860 but again, the media query cannot just work at this width, 94 00:05:39,860 --> 00:05:43,790 but it needs to work like maybe at least until here. 95 00:05:43,790 --> 00:05:45,920 And so here of course, 96 00:05:45,920 --> 00:05:49,540 this does look acceptable anymore, right? 97 00:05:49,540 --> 00:05:51,860 And so now at this breakpoint 98 00:05:51,860 --> 00:05:53,900 that we are working at currently, 99 00:05:53,900 --> 00:05:57,620 we need to do some of the changes that I just talked about 100 00:05:57,620 --> 00:05:59,490 at the very beginning. 101 00:05:59,490 --> 00:06:00,900 So first of all, 102 00:06:00,900 --> 00:06:04,780 let's turn this hero section here into just one column 103 00:06:04,780 --> 00:06:06,860 and then it will essentially become 104 00:06:06,860 --> 00:06:09,490 one of these other types of hero sections 105 00:06:09,490 --> 00:06:12,570 that we saw before in our layout lecture 106 00:06:12,570 --> 00:06:16,530 where the content here is on top and centered, 107 00:06:16,530 --> 00:06:19,060 and then below that there is some image. 108 00:06:19,060 --> 00:06:21,543 And so that will then be this image right here. 109 00:06:23,130 --> 00:06:25,053 So let's do that. 110 00:06:28,360 --> 00:06:32,330 So let's of course start by checking our current code 111 00:06:32,330 --> 00:06:34,503 so that we can then change that. 112 00:06:36,860 --> 00:06:38,950 So here we have our hero section, 113 00:06:38,950 --> 00:06:40,600 and we have those two columns 114 00:06:40,600 --> 00:06:42,927 because of this line of code right here. 115 00:06:42,927 --> 00:06:46,610 All right, and so now changing that to just one column 116 00:06:46,610 --> 00:06:48,850 is very, very easy. 117 00:06:48,850 --> 00:06:50,493 So I'm just copying this now. 118 00:06:56,420 --> 00:06:59,120 Okay. So that is the original 119 00:06:59,120 --> 00:07:01,650 and changing that to just one column 120 00:07:01,650 --> 00:07:03,423 is as simple as doing this. 121 00:07:04,757 --> 00:07:07,810 All right, so let's check that out 122 00:07:07,810 --> 00:07:10,000 and it is already working. 123 00:07:10,000 --> 00:07:14,130 Now this image here is huge and way too huge, 124 00:07:14,130 --> 00:07:17,280 but you saw that it was very easy indeed 125 00:07:17,280 --> 00:07:19,430 to simply change the layout here 126 00:07:19,430 --> 00:07:22,470 to a one column layout, right? 127 00:07:22,470 --> 00:07:26,500 And that's once again, because of the power of CSS grid, 128 00:07:26,500 --> 00:07:29,350 it makes it really, really easy to design 129 00:07:29,350 --> 00:07:32,820 responsive layouts because of that. 130 00:07:32,820 --> 00:07:35,990 Now, anyway, let's start by fixing the image here, 131 00:07:35,990 --> 00:07:38,503 which again is way too big. 132 00:07:40,490 --> 00:07:45,393 So that's the hero image, which currently has 100% of width, 133 00:07:47,150 --> 00:07:51,880 so let's take that down to something like 60% 134 00:07:53,290 --> 00:07:55,470 and that is a lot better. 135 00:07:55,470 --> 00:07:57,570 So it still looks quite big here, 136 00:07:57,570 --> 00:08:01,350 but remember that we also need to account for smaller width, 137 00:08:01,350 --> 00:08:03,483 for example, something like this. 138 00:08:04,532 --> 00:08:08,950 And so I think that for now it looks good this way, 139 00:08:08,950 --> 00:08:11,633 but of course, now we need to center everything here. 140 00:08:13,990 --> 00:08:15,873 So let's see what we have here. 141 00:08:17,180 --> 00:08:18,173 So we have, 142 00:08:20,900 --> 00:08:24,023 let's see the HTML, that's actually a bit simpler. 143 00:08:26,330 --> 00:08:28,193 So here is our hero section, 144 00:08:29,060 --> 00:08:33,090 and remember that the two columns are this hero textbox 145 00:08:33,090 --> 00:08:37,740 and there's a hero image box right here. 146 00:08:37,740 --> 00:08:40,800 And so we can basically set text aligned to center 147 00:08:40,800 --> 00:08:42,060 in both of them, 148 00:08:42,060 --> 00:08:45,960 and that should then will center all the text content 149 00:08:45,960 --> 00:08:48,530 and even the image content in there, 150 00:08:48,530 --> 00:08:51,170 because an image is an inline element 151 00:08:51,170 --> 00:08:55,123 and so it is also affected by text align center. 152 00:08:58,860 --> 00:09:00,093 So let's try that. 153 00:09:01,410 --> 00:09:06,253 So hero text box and the same with hero image box. 154 00:09:11,330 --> 00:09:13,630 All right, let's see, 155 00:09:13,630 --> 00:09:16,290 and that already looks a bit better. 156 00:09:16,290 --> 00:09:20,310 And now we just need to make the same thing happening here. 157 00:09:20,310 --> 00:09:23,500 And also what I'm seeing here is that this content 158 00:09:23,500 --> 00:09:25,540 is way too wide. 159 00:09:25,540 --> 00:09:28,627 So like this, it doesn't look good at all. 160 00:09:28,627 --> 00:09:31,660 All right, so it is huge line here 161 00:09:31,660 --> 00:09:34,570 and then just one words down here. 162 00:09:34,570 --> 00:09:37,080 So we need to add a lot more padding here 163 00:09:37,080 --> 00:09:39,513 to make this look a lot more natural. 164 00:09:40,650 --> 00:09:41,960 So we're gonna do that 165 00:09:41,960 --> 00:09:45,483 and also try to central this content right here. 166 00:09:47,980 --> 00:09:52,980 So that content right there is this delivered neals. 167 00:09:55,120 --> 00:09:55,953 All right. 168 00:09:57,280 --> 00:09:58,683 So let's check that. 169 00:10:00,170 --> 00:10:03,283 And this one here is actually a flex container. 170 00:10:05,170 --> 00:10:08,350 So here things are going to work a bit different, 171 00:10:08,350 --> 00:10:12,343 so not with text align center, but we can still do it. 172 00:10:16,600 --> 00:10:18,240 So delivered neals, 173 00:10:18,240 --> 00:10:22,523 and now how do we center content using flexbox? 174 00:10:23,780 --> 00:10:27,933 Well, that's just justify content set to center. 175 00:10:29,135 --> 00:10:29,968 All right. 176 00:10:31,200 --> 00:10:34,033 And I'll hear about that spacing in the hero. 177 00:10:35,680 --> 00:10:40,343 So let's see what the padding is currently. 178 00:10:41,180 --> 00:10:46,180 So we have this here 3.2, just like any container remember, 179 00:10:47,760 --> 00:10:50,500 but let's increase that to a lot, 180 00:10:50,500 --> 00:10:53,010 something like 80 pixels 181 00:10:56,520 --> 00:10:57,613 and let's see. 182 00:10:59,140 --> 00:11:00,710 Okay, beautiful. 183 00:11:00,710 --> 00:11:02,950 That's looking really nice. 184 00:11:02,950 --> 00:11:06,000 Now here that's just a bit too much space. 185 00:11:06,000 --> 00:11:07,660 So let's actually reduce that 186 00:11:08,500 --> 00:11:11,973 and let's figure out what the spacing is here actually. 187 00:11:15,080 --> 00:11:20,080 So that should be exactly the gap here. 188 00:11:22,400 --> 00:11:26,970 So right now in the hero, we have a gap of a 4.8, 189 00:11:26,970 --> 00:11:30,870 but I think we should use a little bit more space here, 190 00:11:30,870 --> 00:11:33,150 so let's actually increased that. 191 00:11:33,150 --> 00:11:36,370 So we decreased this gap in the previous media query, 192 00:11:36,370 --> 00:11:39,570 but that was because it was a horizontal gap, 193 00:11:39,570 --> 00:11:43,470 but now vertically, we need a little bit more here clearly, 194 00:11:43,470 --> 00:11:46,433 and so let's basically put it back up. 195 00:11:48,330 --> 00:11:51,520 So let's fix that spacing here and here, 196 00:11:51,520 --> 00:11:54,360 basically moving one more up 197 00:11:54,360 --> 00:11:56,680 because of our visual hierarchy. 198 00:11:56,680 --> 00:11:59,960 So this content belongs more to this one here 199 00:11:59,960 --> 00:12:01,053 then to the image. 200 00:12:02,680 --> 00:12:06,900 Okay? So our delivered neals right now 201 00:12:08,660 --> 00:12:12,423 has a margin top of eight rem, so that's really a lot. 202 00:12:17,240 --> 00:12:22,240 So let's move down to 3.2 rem and then about that gap here, 203 00:12:25,770 --> 00:12:27,710 let's maybe change that to 6.4. 204 00:12:33,460 --> 00:12:36,743 So moving it back up one step from 4.8. 205 00:12:39,120 --> 00:12:41,300 Okay? Beautiful. 206 00:12:41,300 --> 00:12:44,240 That looks extremely nice, I think. 207 00:12:44,240 --> 00:12:48,393 And even down to these smaller widths like this. 208 00:12:49,675 --> 00:12:51,870 All right, so I like this part. 209 00:12:51,870 --> 00:12:54,263 So let's move on in our page, 210 00:12:55,340 --> 00:12:57,663 kind of like at this width here. 211 00:12:58,560 --> 00:13:01,710 And the next thing I said we were gonna fix 212 00:13:01,710 --> 00:13:03,480 is these logos here. 213 00:13:03,480 --> 00:13:06,700 So they are a bit too big and the spacing between them 214 00:13:06,700 --> 00:13:08,620 is getting too small, 215 00:13:08,620 --> 00:13:11,843 and so let's simply make them a little bit smaller. 216 00:13:13,850 --> 00:13:16,320 So that shouldn't be too hard. 217 00:13:16,320 --> 00:13:18,703 So we just need to select it right here. 218 00:13:25,230 --> 00:13:29,697 And so one step down from 3.2 rem is 24 pixels. 219 00:13:33,030 --> 00:13:34,223 So just like this. 220 00:13:35,650 --> 00:13:38,270 Okay. So that's looking better 221 00:13:38,270 --> 00:13:41,380 and we can also tone down 222 00:13:41,380 --> 00:13:43,750 the size of this text here a little bit. 223 00:13:43,750 --> 00:13:47,053 So that's maybe also looking a bit too huge now. 224 00:13:50,130 --> 00:13:52,513 So that's the step number. 225 00:13:54,235 --> 00:13:59,063 So here it is, and indeed the font size is very big. 226 00:14:03,280 --> 00:14:07,733 And so the next step below that is 7.4 rem. 227 00:14:11,844 --> 00:14:16,120 All right, then let's keep going here and here, 228 00:14:16,120 --> 00:14:19,010 everything looks good still at this point, 229 00:14:19,010 --> 00:14:23,100 but remember that the media query needs to work across 230 00:14:23,100 --> 00:14:26,890 like at least 200 pixels, right. 231 00:14:26,890 --> 00:14:31,290 So we set our breakpoint at 950 or 40, 232 00:14:31,290 --> 00:14:34,590 and so here, at least it should still look okay 233 00:14:34,590 --> 00:14:37,090 so at 800, right. 234 00:14:37,090 --> 00:14:39,540 But again, here we now have that problem 235 00:14:39,540 --> 00:14:42,053 of this text moving into another line. 236 00:14:44,740 --> 00:14:47,640 Let's make it a bit bigger just to see it better 237 00:14:47,640 --> 00:14:51,050 and indeed we can see that our spacing inside this card 238 00:14:51,050 --> 00:14:54,240 might be a little bit too big, right? 239 00:14:54,240 --> 00:14:58,120 So this hasn't really yet adapted to our new layout, 240 00:14:58,120 --> 00:15:03,120 to our kind of more narrow and to less spacey layout. 241 00:15:03,270 --> 00:15:06,193 And so let's fix that right now. 242 00:15:07,890 --> 00:15:10,580 So just moving down here in our original code 243 00:15:12,100 --> 00:15:15,513 that padding is coming from here, right. 244 00:15:17,420 --> 00:15:22,350 So again, just grabbing that and then, 245 00:15:22,350 --> 00:15:25,860 and then moving each of these here, one step down. 246 00:15:25,860 --> 00:15:30,860 So from 32 to 2.4 and the other ones to 3.2, 247 00:15:37,890 --> 00:15:39,443 and just one more. 248 00:15:43,090 --> 00:15:46,340 Okay. Ah, beautiful. 249 00:15:46,340 --> 00:15:49,190 So that fixed it and the spacing here now looks 250 00:15:49,190 --> 00:15:52,083 a bit more in line with the rest of the content. 251 00:15:53,120 --> 00:15:57,360 Okay. Moving down a little bit further here. 252 00:15:57,360 --> 00:16:00,210 So here, it's now also time to basically 253 00:16:00,210 --> 00:16:03,220 turn all this into just one column. 254 00:16:03,220 --> 00:16:06,470 So basically one column for this content here, 255 00:16:06,470 --> 00:16:09,493 and then another column below that for this gallery. 256 00:16:10,560 --> 00:16:11,720 So once again, 257 00:16:11,720 --> 00:16:13,933 that should be quite easy to do. 258 00:16:15,090 --> 00:16:17,403 So let's move down here. 259 00:16:19,860 --> 00:16:24,240 And so here is where that layout is defined, right, 260 00:16:24,240 --> 00:16:26,990 so in this grid template columns. 261 00:16:26,990 --> 00:16:29,030 Now, we could also try to play around 262 00:16:29,030 --> 00:16:30,710 with these two values here, 263 00:16:30,710 --> 00:16:34,110 maybe trying to make the gallery even more narrow, 264 00:16:34,110 --> 00:16:36,820 but I think it's time to actually just move it 265 00:16:36,820 --> 00:16:39,153 to a one column layout. 266 00:16:43,140 --> 00:16:46,393 So section testimonials, 267 00:16:49,410 --> 00:16:51,853 and here we have a small typo, 268 00:16:55,150 --> 00:16:57,850 so grid template columns, and again, 269 00:16:57,850 --> 00:17:00,690 just setting everything to one 1fr 270 00:17:00,690 --> 00:17:04,220 which of course could be any other value, but like this, 271 00:17:04,220 --> 00:17:07,480 it will simply be transformed into one column. 272 00:17:07,480 --> 00:17:12,480 So that works, but now this will look terrible, right, 273 00:17:12,790 --> 00:17:15,473 because these images are way too big. 274 00:17:16,560 --> 00:17:18,460 So we have a huge gallery here 275 00:17:18,460 --> 00:17:20,920 because it only has two columns, 276 00:17:20,920 --> 00:17:25,080 but that is once again, very, very easy to fix. 277 00:17:25,080 --> 00:17:28,000 So right now let's actually try a layout 278 00:17:28,000 --> 00:17:31,570 where the gallery is wider than it is high. 279 00:17:31,570 --> 00:17:35,320 So maybe even instead of having a two by six, 280 00:17:35,320 --> 00:17:40,320 we can have a six by two, so six columns with just two rows. 281 00:17:46,197 --> 00:17:47,670 So that's here at gallery, 282 00:17:47,670 --> 00:17:51,133 but I think we actually already did that at some point, 283 00:17:53,130 --> 00:17:54,113 yeah, right here. 284 00:17:55,060 --> 00:17:58,083 So here we changed it to just having two columns. 285 00:18:00,160 --> 00:18:04,053 And so now let's change it to six. 286 00:18:07,970 --> 00:18:12,130 So let's see. Oh, beautiful. 287 00:18:12,130 --> 00:18:14,350 So that looks amazing. 288 00:18:14,350 --> 00:18:16,560 So really, really cool. 289 00:18:16,560 --> 00:18:21,120 We could have gone for maybe a four by three. 290 00:18:21,120 --> 00:18:22,593 Let's try that also. 291 00:18:26,400 --> 00:18:30,030 All right, but now it actually takes up too much content 292 00:18:30,030 --> 00:18:34,143 and even more so at our original breakpoint right here. 293 00:18:35,110 --> 00:18:37,830 So I think that's the gallery like this 294 00:18:37,830 --> 00:18:39,640 is a little bit too big, 295 00:18:39,640 --> 00:18:42,303 and so let's really go with six columns. 296 00:18:43,920 --> 00:18:46,970 But you see how easy it is to simply change 297 00:18:46,970 --> 00:18:49,740 the entire layout of all this here 298 00:18:49,740 --> 00:18:54,150 by simply changing one single value in the CSS. 299 00:18:54,150 --> 00:18:56,370 So that's a really just amazing 300 00:18:56,370 --> 00:18:58,283 what we can do with CSS grid. 301 00:18:59,880 --> 00:19:02,203 So let's keep analyzing here at this width, 302 00:19:04,889 --> 00:19:06,400 so just inspecting once again, 303 00:19:06,400 --> 00:19:10,280 everything is perfect here, I would say, 304 00:19:10,280 --> 00:19:12,550 except for the navigation maybe, 305 00:19:12,550 --> 00:19:16,033 but that we will think about a bit later. 306 00:19:17,380 --> 00:19:19,690 And so moving down here, 307 00:19:19,690 --> 00:19:22,960 this one here also still looks okay, I think. 308 00:19:22,960 --> 00:19:26,400 Even though this one moved into two lines, 309 00:19:26,400 --> 00:19:30,380 but the alternative would be to make these ones here now, 310 00:19:30,380 --> 00:19:33,260 like 100% of the width and then I think 311 00:19:33,260 --> 00:19:36,530 they would become a bit too large. 312 00:19:36,530 --> 00:19:37,873 So a bit too wide. 313 00:19:38,770 --> 00:19:41,310 Now what we can do is to add some line height 314 00:19:41,310 --> 00:19:42,970 here to these list items 315 00:19:45,360 --> 00:19:48,243 and that we will do not just of course, 316 00:19:48,243 --> 00:19:50,543 in the media query, but simply in general. 317 00:19:51,700 --> 00:19:54,260 So no matter what screen with in this list, 318 00:19:54,260 --> 00:19:55,910 there should be some line height. 319 00:19:57,750 --> 00:20:00,020 So I think it should be... 320 00:20:01,240 --> 00:20:03,603 Well, apparently it's more here at the end. 321 00:20:05,830 --> 00:20:08,930 So here let's try a line height 322 00:20:08,930 --> 00:20:10,893 and more of a smaller one like 1.2. 323 00:20:14,640 --> 00:20:17,223 And that looks already a little bit more friendly. 324 00:20:18,610 --> 00:20:23,183 So 1.2, I'm not sure if we had use that already. 325 00:20:24,180 --> 00:20:26,600 Oh yeah. So medium 1.2. 326 00:20:26,600 --> 00:20:30,930 And so that's the one that we're going for now. 327 00:20:30,930 --> 00:20:33,780 And also let's add the one that we have been using a lot. 328 00:20:35,280 --> 00:20:39,023 So let's call it large 1.8 since we're here. 329 00:20:40,470 --> 00:20:44,683 Okay. So that is now also fixed. 330 00:20:46,380 --> 00:20:49,530 Now here, there's not a lot that we can change 331 00:20:49,530 --> 00:20:53,313 because we already changed the gap of the columns here. 332 00:20:54,270 --> 00:20:58,660 So I'm leaving it like this for now, but then here again, 333 00:20:58,660 --> 00:21:01,730 it's time to at least make this form here 334 00:21:01,730 --> 00:21:03,430 into just one column 335 00:21:03,430 --> 00:21:07,190 and maybe give some more size to this image here. 336 00:21:07,190 --> 00:21:08,910 So now it is very narrow 337 00:21:08,910 --> 00:21:11,600 and it looks a bit unnatural like this. 338 00:21:11,600 --> 00:21:14,253 So let's start by fixing that. 339 00:21:20,130 --> 00:21:23,060 So that's the right here in the CTA section 340 00:21:23,060 --> 00:21:26,660 and the width of that image is basically defined here 341 00:21:26,660 --> 00:21:29,510 by this grid, right? 342 00:21:29,510 --> 00:21:33,220 So we have now basically 2/3 for the content 343 00:21:33,220 --> 00:21:37,290 and 1/3 for the image, right? 344 00:21:37,290 --> 00:21:39,290 Let me just write that down here. 345 00:21:39,290 --> 00:21:41,340 So we have two in three, 346 00:21:41,340 --> 00:21:44,590 because two plus one is three. 347 00:21:44,590 --> 00:21:46,970 So the total is basically three parts, 348 00:21:46,970 --> 00:21:51,730 and so two of that which is 66.6%, 349 00:21:54,240 --> 00:21:59,240 and then the other one is one in three, which is a 33.3%. 350 00:22:02,170 --> 00:22:03,400 All right. 351 00:22:03,400 --> 00:22:05,220 But now if we wanted to change that 352 00:22:05,220 --> 00:22:10,220 more to like a 60:40 ratio, we could simply do this. 353 00:22:11,420 --> 00:22:16,420 So .cta and so if we changed this here to three and to two 354 00:22:19,260 --> 00:22:22,300 then we would have a total of five, 355 00:22:22,300 --> 00:22:27,300 and so then we will have three and five, which is a 60% 356 00:22:30,760 --> 00:22:35,020 and of course two and five is a 40%. 357 00:22:35,020 --> 00:22:38,870 So this will look a little bit better hopefully. 358 00:22:38,870 --> 00:22:41,670 And yeah, so that's nice. 359 00:22:41,670 --> 00:22:44,540 But now again, here, this is way too narrow 360 00:22:44,540 --> 00:22:47,033 and so let's make this into just one column. 361 00:22:48,410 --> 00:22:51,573 So that should be defined by some other grid property. 362 00:22:53,120 --> 00:22:54,773 Yeah. Right here. 363 00:22:55,750 --> 00:22:58,740 So this CTA form right here 364 00:23:02,600 --> 00:23:05,293 and grid template columns, just 1fr, 365 00:23:08,354 --> 00:23:12,143 giving that a save and that looks quite good, right? 366 00:23:14,290 --> 00:23:17,170 Now, the entire thing here just became a bit bigger, 367 00:23:17,170 --> 00:23:19,243 but that's not a problem at all. 368 00:23:20,560 --> 00:23:23,760 Oh, here's the spacing just look slightly off. 369 00:23:23,760 --> 00:23:26,233 So let's see if we can add some margin there. 370 00:23:28,110 --> 00:23:29,963 Let's see what we have actually here, 371 00:23:32,040 --> 00:23:35,403 and I think that button is indeed here. 372 00:23:44,260 --> 00:23:46,810 So this file is getting a little bit big 373 00:23:46,810 --> 00:23:49,580 to easily find or things, 374 00:23:49,580 --> 00:23:52,770 but well, we could split it up even further, 375 00:23:52,770 --> 00:23:54,390 but that would then at some point 376 00:23:54,390 --> 00:23:57,193 also be unmanageable having all these files. 377 00:23:58,060 --> 00:24:02,200 Anyway here is our button for the forum, 378 00:24:02,200 --> 00:24:04,153 let's just add some margin there. 379 00:24:07,170 --> 00:24:11,080 So margin to the top of maybe 1.2 rem 380 00:24:12,490 --> 00:24:16,690 and that looks better here because now the spacing 381 00:24:16,690 --> 00:24:18,320 seems to be the same, 382 00:24:18,320 --> 00:24:22,323 at least somehow between these form elements and the button. 383 00:24:24,030 --> 00:24:25,620 All right. 384 00:24:25,620 --> 00:24:28,403 So I think that this looks nice. 385 00:24:29,570 --> 00:24:32,350 So even here at this breakpoint, 386 00:24:32,350 --> 00:24:34,493 let's go even a bit more down. 387 00:24:36,400 --> 00:24:41,140 So 750 approximately and still everything looks 388 00:24:41,140 --> 00:24:42,713 acceptable at least. 389 00:24:43,570 --> 00:24:45,870 So probably around here is where we will have 390 00:24:45,870 --> 00:24:47,580 our next breakpoint. 391 00:24:47,580 --> 00:24:51,423 But yeah. So here it's again in two lines. 392 00:24:52,550 --> 00:24:55,860 And so yeah, we're going to fix that soon, 393 00:24:55,860 --> 00:25:00,020 but for now it is time to think about the navigation here. 394 00:25:00,020 --> 00:25:02,320 So at this point here, 395 00:25:02,320 --> 00:25:07,170 I think it is time to actually start our mobile navigation. 396 00:25:07,170 --> 00:25:09,900 So having a navigation where all of this here 397 00:25:09,900 --> 00:25:11,080 is basically hidden 398 00:25:11,080 --> 00:25:14,090 and some panel that opens up once you click 399 00:25:14,090 --> 00:25:15,780 on the menu button. 400 00:25:15,780 --> 00:25:19,180 So I'm sure that is something you have seen all the time, 401 00:25:19,180 --> 00:25:22,033 and this is what we will do in the next lecture. 29723

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