All language subtitles for 15. Creating The Information Block

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,050 --> 00:00:08,040 We've made it to the last section of the actual home page because after this the next part that we'll 2 00:00:08,040 --> 00:00:13,200 do is the call to action which will be repeated on multiple pages. 3 00:00:13,290 --> 00:00:20,100 So the information block is kind of the last piece of that roadmap for the home page which guides you 4 00:00:20,100 --> 00:00:21,500 to the rest of the site. 5 00:00:21,540 --> 00:00:25,480 And if you don't remember what this looks like here is the screenshot. 6 00:00:25,590 --> 00:00:33,390 And this is where we'll have links over to the about us and the Contact Us pages the setup for this 7 00:00:33,420 --> 00:00:41,700 is going to be similar to the last block with the revolution where we used a div with a background image 8 00:00:41,730 --> 00:00:48,050 to set that background within our grid item containing this overall block. 9 00:00:48,120 --> 00:00:54,120 And within that grid item we'll have a single container and that container will have a grid item for 10 00:00:54,120 --> 00:01:00,100 the About Us text and another grid container for the contact us text. 11 00:01:00,210 --> 00:01:04,430 And that should make it very easy to create the alignment that we see here. 12 00:01:04,620 --> 00:01:12,000 And then each grid item for the about us and then the contact section will itself be a container with 13 00:01:12,000 --> 00:01:18,570 a direction of column so we can get that text with the learn more button stacked on top of each other 14 00:01:18,630 --> 00:01:19,220 like that. 15 00:01:19,410 --> 00:01:23,790 So hopefully that gives you a pretty good idea of how we're going to structure this. 16 00:01:23,820 --> 00:01:27,210 So let's go over to the code editor and we'll get started. 17 00:01:28,320 --> 00:01:34,860 Here we are at the bottom of the landing page dot J.S. file and the first thing I'd like to do is actually 18 00:01:34,860 --> 00:01:37,340 this last grid item that we had here. 19 00:01:37,380 --> 00:01:41,340 Let's go ahead and copy one of these comments from above. 20 00:01:41,430 --> 00:01:48,490 And we've got to add one right here for the review revolution block. 21 00:01:48,540 --> 00:01:53,580 So it just helps keep our code a little more clear but then we'll come down underneath of that grid 22 00:01:53,610 --> 00:01:58,420 item and we'll add our next grid item for our information block. 23 00:01:58,620 --> 00:02:06,150 So let's go ahead and paste that comment again and get in the information block right there inside this 24 00:02:06,150 --> 00:02:06,790 grid item. 25 00:02:06,810 --> 00:02:15,360 We said we'll need 1 grid container and all again set the direction the direction of row which I like 26 00:02:15,360 --> 00:02:21,330 to do on these outermost grid containers for each section just to make it clear that we're laying these 27 00:02:21,330 --> 00:02:30,210 out horizontally inside this container will create a grid item and this will be the grid item holding 28 00:02:30,270 --> 00:02:30,660 our. 29 00:02:30,660 --> 00:02:32,940 About us on the left side. 30 00:02:33,060 --> 00:02:40,450 So we'll open this up and this will have a grid container with a direction of now column. 31 00:02:40,620 --> 00:02:46,830 Like we said so we get that laid out top to bottom with our about US title the subtitle and the learn 32 00:02:46,830 --> 00:02:55,610 more button inside here let's create our typography component as a variant of each. 33 00:02:55,840 --> 00:03:00,450 To open that up and this will have the text about us. 34 00:03:00,460 --> 00:03:06,900 So that's our title underneath this will create another typography component. 35 00:03:06,960 --> 00:03:11,320 But this time a variant of a subtitle too. 36 00:03:11,340 --> 00:03:17,470 So we'll create a new subtitled style for this one since we'll need it to be slightly different. 37 00:03:17,520 --> 00:03:19,190 And this will have the text. 38 00:03:19,230 --> 00:03:22,250 Let's get personal. 39 00:03:22,360 --> 00:03:29,050 Let's go ahead and save this now to see our page refresh and we can scroll underneath the revolution 40 00:03:29,050 --> 00:03:31,370 section to see are about us. 41 00:03:31,390 --> 00:03:38,630 And let's get personal section on the page we had already set up our H2 style before. 42 00:03:38,650 --> 00:03:40,150 And that's why we're reusing it. 43 00:03:40,390 --> 00:03:44,660 But we actually for the about section we're going to want this to be white. 44 00:03:44,740 --> 00:03:51,490 So instead of going in and changing that style for the actual H2 variant let's just go in and add a 45 00:03:51,490 --> 00:04:00,050 style property to this H2 variant and we'll set this equal to a color color of white. 46 00:04:00,130 --> 00:04:05,260 And that will just make sure we save this that now the text is receiving the white color. 47 00:04:05,260 --> 00:04:08,790 So it looks like it's hidden but it's still there. 48 00:04:08,950 --> 00:04:15,250 We can go and open up the theme that J.S. folder though and it will come down and underneath the subtitle 49 00:04:15,250 --> 00:04:22,930 one let's add our subtitle to class and make sure to get the comma underneath there and we'll also give 50 00:04:22,930 --> 00:04:37,540 this a color of a white light a font size of one point to five rim and then a far too weights of just 51 00:04:37,540 --> 00:04:38,440 300. 52 00:04:39,160 --> 00:04:44,680 So all we're really changing is the font color from gray to white for that but we can save that and 53 00:04:44,680 --> 00:04:46,230 we'll see the page refresh. 54 00:04:46,240 --> 00:04:49,930 And now we've got our styled subtitled text as well. 55 00:04:50,890 --> 00:04:58,360 Let's close out of the theme J.S. file and now back in the landing page remember how we had to set a 56 00:04:58,360 --> 00:05:03,880 height on our container to make sure that the image had space to fill. 57 00:05:03,880 --> 00:05:07,120 Well we'll have to do the same thing on this grid item. 58 00:05:07,120 --> 00:05:16,270 So here on our container with a direction of row let's go ahead and also add a style giving it a height 59 00:05:16,720 --> 00:05:19,380 of this time just 80 m. 60 00:05:19,630 --> 00:05:23,100 And so now we can come and inside of this grid. 61 00:05:23,140 --> 00:05:33,430 But underneath our grid item let's go ahead and add the div with a class name this time of classes dot 62 00:05:33,910 --> 00:05:37,630 info background and then we can close that off. 63 00:05:37,720 --> 00:05:49,870 And now we'll come up to the top to import our info import info background from assets info background 64 00:05:49,920 --> 00:05:59,530 Dias v g so and of course we'll come down and add to our styles object the info background style with 65 00:05:59,530 --> 00:06:01,600 a background image. 66 00:06:01,810 --> 00:06:05,260 And actually it's going to be almost all these same properties. 67 00:06:05,290 --> 00:06:10,060 So let's go ahead and we'll grab all the properties from our revolution background. 68 00:06:10,300 --> 00:06:18,460 Let's paste that in and then we'll change the revolution background U.R.L. right here to our info background. 69 00:06:18,880 --> 00:06:25,810 We can save this now and we'll see the page refresh and now it looks like we've got a nice container 70 00:06:25,990 --> 00:06:27,430 with our background image. 71 00:06:27,430 --> 00:06:29,870 So this is exactly what we had wanted. 72 00:06:29,980 --> 00:06:32,880 Except you'll notice that we have this gap up here. 73 00:06:33,010 --> 00:06:36,010 And that's from where our text is actually still sitting. 74 00:06:36,040 --> 00:06:42,500 So we need to get that on top of the image just like we had done for the card up here. 75 00:06:42,580 --> 00:06:47,560 Remember how we did that was by setting the card to a position of absolute. 76 00:06:47,740 --> 00:06:51,740 And we need to do the same thing for our about us grid item. 77 00:06:51,790 --> 00:06:57,040 So we'll scroll all the way down here to the information block and here on the grid. 78 00:06:57,040 --> 00:06:59,450 Item wrapping are about us. 79 00:06:59,470 --> 00:07:00,370 Text. 80 00:07:00,370 --> 00:07:08,650 Let's go ahead and add a style here to give it directly a position position of absolute. 81 00:07:08,650 --> 00:07:15,160 So we can save that and we'll see the page refresh and our text is now sitting nicely on top of the 82 00:07:15,160 --> 00:07:16,550 image. 83 00:07:16,620 --> 00:07:22,330 Let's start to get this actually in position though because remember we want it down here centered in 84 00:07:22,330 --> 00:07:27,340 the middle and we want a little border as well because we definitely don't want it pressed all the way 85 00:07:27,340 --> 00:07:29,620 up against the edge like that. 86 00:07:29,620 --> 00:07:34,690 And so to take care of that real quick where we added our style of position absolute. 87 00:07:34,780 --> 00:07:43,180 Let's also go ahead and give it a margin left of a 5 M. And if we save that we'll see the page refresh. 88 00:07:43,180 --> 00:07:48,730 And now we've got that nice little border and I'm using the same value that we had used up here for 89 00:07:48,730 --> 00:07:56,140 these services blocks creating a nice consistent look throughout the home page now and to get the About 90 00:07:56,170 --> 00:07:58,840 Us section down here in the middle. 91 00:07:58,900 --> 00:08:05,140 We're going to have to use our justify and align items properties but to figure out which one we'll 92 00:08:05,140 --> 00:08:09,380 have to think about where the grid item is and where we're trying to move it. 93 00:08:09,490 --> 00:08:16,120 So you can see that we have our grid item is nested inside of the grid container with a direction of 94 00:08:16,180 --> 00:08:16,780 row. 95 00:08:16,810 --> 00:08:21,280 So that's laying us out from left to right horizontally. 96 00:08:21,280 --> 00:08:26,170 And we want to move the text down vertically into the middle. 97 00:08:26,200 --> 00:08:33,670 So that means we're going to want to specify the cross axis for this container and we can do that using 98 00:08:33,670 --> 00:08:37,590 the line items property line items. 99 00:08:37,610 --> 00:08:43,220 So if we set this to center we can save and see the page refresh. 100 00:08:43,310 --> 00:08:51,540 And now we've got our text down in the middle where we want to do let's grab a learn more button now 101 00:08:51,780 --> 00:08:57,210 and we can actually go ahead and we'll just use the one from our custom software block. 102 00:08:57,420 --> 00:09:00,960 So let's grab the button right here. 103 00:09:00,960 --> 00:09:02,450 The entire button. 104 00:09:02,460 --> 00:09:10,750 Copy that we'll scroll down and let's go ahead and paste that under our subtitle to typography component. 105 00:09:10,830 --> 00:09:12,000 Let's save this. 106 00:09:12,000 --> 00:09:14,070 And we'll see the page refresh. 107 00:09:14,310 --> 00:09:15,870 And we've got that button. 108 00:09:15,900 --> 00:09:18,840 But it definitely doesn't look exactly how we wanted. 109 00:09:18,870 --> 00:09:25,320 So we can start by changing the fill on our button arrow actually to white. 110 00:09:25,380 --> 00:09:28,190 And we can get rid of the brackets here. 111 00:09:28,200 --> 00:09:30,530 We don't actually need those. 112 00:09:30,540 --> 00:09:32,220 We can just pass in white. 113 00:09:32,220 --> 00:09:36,790 So if we go ahead and save this we'll see a refresh. 114 00:09:36,840 --> 00:09:44,260 And now we've got a white arrow the button is still taking up too much space though and to fix that 115 00:09:44,290 --> 00:09:51,460 let's actually just go ahead and we'll wrap the button with a grid item since it's within this container 116 00:09:51,810 --> 00:09:55,920 and go underneath the button and we'll close off that grid tag. 117 00:09:56,080 --> 00:09:59,480 And if we save this we will see the page refresh. 118 00:09:59,590 --> 00:10:06,220 And now we've got the same sized button that we had had it from up here and we needed that so that the 119 00:10:06,220 --> 00:10:14,530 button didn't just take up all of this available space to it but let's go now and we'll add a style 120 00:10:14,560 --> 00:10:20,230 to our button component down here because we want all the learned buttons styles and we don't need to 121 00:10:20,230 --> 00:10:26,380 duplicate that again but we need to change all those colors from the blue to white for this one. 122 00:10:26,680 --> 00:10:35,040 So let's add a color of white and a border color of white and we can save that. 123 00:10:35,110 --> 00:10:37,220 We'll see the page refresh. 124 00:10:37,240 --> 00:10:39,670 And now we've got the style that we had wanted. 13332

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