All language subtitles for 13. Creating The Revolution 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,160 --> 00:00:01,540 All right. 2 00:00:01,550 --> 00:00:05,340 I think we've got the card pretty well figured out. 3 00:00:05,420 --> 00:00:07,750 If you don't go back watch that video again. 4 00:00:07,820 --> 00:00:13,400 But let's just get into the code editor and see it in action. 5 00:00:13,440 --> 00:00:13,890 All right. 6 00:00:13,890 --> 00:00:16,540 And here I am at the code editor. 7 00:00:16,560 --> 00:00:18,230 The first thing I'm going to do. 8 00:00:18,240 --> 00:00:24,870 You actually won't need to do but I'm going to come down and here on the default options for the animation 9 00:00:25,170 --> 00:00:32,040 I'm just going to turn auto play to false and I'm just going to save that for myself so that the animation 10 00:00:32,040 --> 00:00:37,140 isn't constantly running which I think will go a little bit better as I edit these videos. 11 00:00:37,140 --> 00:00:42,240 So we viewers to true if you want to see the animation I'm just going to leave mine on false but I can 12 00:00:42,240 --> 00:00:45,390 always click it click it if I want to see it start. 13 00:00:45,660 --> 00:00:50,120 So if you want to go ahead and turn that off feel free to do so as well. 14 00:00:50,250 --> 00:00:56,090 But let's come back up to the top and here under our use media query import. 15 00:00:56,280 --> 00:01:07,980 Let's go ahead and import import the card components from app material dash UI slash core slash card. 16 00:01:07,980 --> 00:01:18,600 And we're also going to import the card content component from material boobs material UI slash core 17 00:01:18,810 --> 00:01:25,710 slash card content then we'll come back down and all the way at the bottom here. 18 00:01:25,710 --> 00:01:30,560 Let's go ahead and outside of this last grid item for the Web sites. 19 00:01:30,560 --> 00:01:41,080 BLOCK Let's go ahead and we'll add our grid item for the revolution block here will place our card component 20 00:01:41,440 --> 00:01:45,940 within nested card content inside. 21 00:01:45,970 --> 00:01:53,050 Now inside the card I'm actually going to use the grid to help me unwind some of these items because 22 00:01:53,080 --> 00:01:57,850 I'm styling this pretty differently than any of the defaults or examples. 23 00:01:57,850 --> 00:02:00,330 So the grid will kind of help me customize this. 24 00:02:00,430 --> 00:02:06,010 So let's create a grid container container to start off. 25 00:02:06,010 --> 00:02:11,800 But let's go ahead and also add a direction to this container of column. 26 00:02:11,800 --> 00:02:16,300 And this will get the vertical look that we want for this card. 27 00:02:16,300 --> 00:02:17,810 If you don't remember. 28 00:02:18,100 --> 00:02:20,100 Pull up the design file real quick. 29 00:02:20,100 --> 00:02:23,040 Just we could get a little snapshot of that. 30 00:02:23,140 --> 00:02:31,150 So I'll open up my design file or come in here and you can see this loads will go in. 31 00:02:31,150 --> 00:02:34,930 So here is our revolution block. 32 00:02:35,240 --> 00:02:37,160 And this is our card. 33 00:02:37,180 --> 00:02:40,990 So that is going to be our card in our card content. 34 00:02:41,140 --> 00:02:47,950 These text and the button within and so to make sure that these all line up on top of each other. 35 00:02:48,070 --> 00:02:51,120 That's why we're setting the direction of column. 36 00:02:51,160 --> 00:02:54,930 So keep this in mind as we're building close out of that. 37 00:02:55,190 --> 00:03:00,730 We'll come back to our project folder and inside of this grid container we've created. 38 00:03:00,730 --> 00:03:09,760 Let's add a grid item and this grid item is going to have our typography components with the text. 39 00:03:09,760 --> 00:03:19,860 The revolution inside we're going to make this typography component a variant of h three. 40 00:03:19,870 --> 00:03:22,130 So that'll make it decently large. 41 00:03:22,150 --> 00:03:30,130 And underneath that I'm going to create in a separate grid item another typography component. 42 00:03:30,130 --> 00:03:37,590 But this time with a variant of subtitle one which we already have set up and we'll give it the text. 43 00:03:37,690 --> 00:03:50,050 Visionary insights coupled with cutting edge technology is a recipe for revolution. 44 00:03:51,010 --> 00:03:58,480 Let's now go and we'll come up to the top here our hero blog and let's go ahead and we'll copy this 45 00:03:58,540 --> 00:04:04,070 button component so our learn more button from the hero block. 46 00:04:04,420 --> 00:04:05,970 Let's go ahead and copy that. 47 00:04:06,070 --> 00:04:10,870 And underneath this typography is subtitle one component. 48 00:04:10,870 --> 00:04:14,430 Let's go ahead and paste in that button. 49 00:04:14,450 --> 00:04:16,250 Now let's go ahead and save this. 50 00:04:16,260 --> 00:04:19,570 You just see where we're at and the page will refresh. 51 00:04:19,570 --> 00:04:21,250 So it's a scroll down. 52 00:04:21,250 --> 00:04:28,540 And here you can see we've got a card although definitely not the card we want but it is a card. 53 00:04:28,570 --> 00:04:31,270 You can see the little drop shadow right there. 54 00:04:31,270 --> 00:04:34,300 But it's spanning the full width of the screen. 55 00:04:34,300 --> 00:04:36,040 And the styling still isn't right. 56 00:04:36,040 --> 00:04:39,580 So we obviously still have some work to do but we're on the right track. 57 00:04:40,630 --> 00:04:45,140 I want all of this text in the button to be centered here. 58 00:04:45,190 --> 00:04:52,600 And so let's go ahead and on this grid item wrapping all of our text and the button on that grid item. 59 00:04:52,600 --> 00:05:02,260 Let's add a style here with just the text a line set to center so let's save that. 60 00:05:02,260 --> 00:05:04,030 We'll see the page refresh. 61 00:05:04,030 --> 00:05:09,890 And now we've got some centered text but we don't have that title aligned. 62 00:05:09,970 --> 00:05:17,200 So actually let's go ahead and move this style off of that grid item onto the overall container inside 63 00:05:17,200 --> 00:05:17,850 of the car. 64 00:05:17,860 --> 00:05:18,730 Content. 65 00:05:18,730 --> 00:05:24,250 So we'll go ahead and paste that style right there and when the page refreshes we now see that all of 66 00:05:24,250 --> 00:05:32,440 that card content has been styled correctly now before I go ahead and fix the size of the card and stop 67 00:05:32,440 --> 00:05:39,370 it from being this full span of the screen let's actually go ahead and we're going to add the background 68 00:05:39,370 --> 00:05:40,260 for this. 69 00:05:40,360 --> 00:05:46,120 That repeating background that we had seen in the design file which the card is going to be sitting 70 00:05:46,120 --> 00:05:53,220 on top of not only is the card going to be sitting on top of this background but it also needs to be 71 00:05:53,220 --> 00:05:54,840 centered inside of it. 72 00:05:55,080 --> 00:05:59,010 And to use that I'm actually going to use the grid system again. 73 00:05:59,100 --> 00:06:08,820 And so inside of our grid item but outside of the card we're going to create a grid container and we'll 74 00:06:08,820 --> 00:06:16,740 open that up and we'll actually just cut our entire card and make sure you get all the way to the bottom 75 00:06:16,740 --> 00:06:24,690 card component and we'll cut that and paste it within our grid container that we just created. 76 00:06:24,690 --> 00:06:31,340 And on that grid container since we want this card to be centered in all directions we can add in a 77 00:06:31,350 --> 00:06:41,130 line items of sensor and a justify of sensor which will sensor a line the card for all directions placing 78 00:06:41,130 --> 00:06:47,140 it right in the middle of the container now inside of this container. 79 00:06:47,140 --> 00:06:49,170 But outside of the card. 80 00:06:49,180 --> 00:06:58,150 So here underneath our card tag we'll create a new line and it will create a div here with a class name 81 00:06:58,480 --> 00:07:08,130 of classes dot revolution background and we'll make this a self closing div this div is where we're 82 00:07:08,130 --> 00:07:13,060 going to apply the background they are card is going to be sitting on top of. 83 00:07:13,200 --> 00:07:19,240 So let's scroll up and let's actually come in underneath are Web sites icon. 84 00:07:19,290 --> 00:07:31,200 Let's import revolution background from up one directory assets and then repeating background dot SVP 85 00:07:31,410 --> 00:07:33,370 repeating background. 86 00:07:33,600 --> 00:07:41,160 And now of course that means we can come into our styles objects and create the revolution background 87 00:07:41,220 --> 00:07:49,860 style and to set a background image will use the background image property with a little bit of weird 88 00:07:49,860 --> 00:07:56,730 syntax here but we'll use the back ticks and then you are L parentheses. 89 00:07:56,730 --> 00:08:03,930 And here we will inject the revolution background which we had just imported. 90 00:08:04,080 --> 00:08:16,790 We'll set the background position to center the background size size to cover background. 91 00:08:16,830 --> 00:08:26,160 Repeat to no repeat and give it a height of 100 percent. 92 00:08:26,160 --> 00:08:33,720 So these are all options for the background image property which specify how the image should be anchored 93 00:08:33,720 --> 00:08:34,980 within the element. 94 00:08:34,980 --> 00:08:38,880 And we're telling it that we want it to be in the direct center of our element. 95 00:08:38,940 --> 00:08:44,460 So the center of the picture so the line up with the center of our container and we want that background 96 00:08:44,490 --> 00:08:46,770 to cover the whole container. 97 00:08:46,800 --> 00:08:52,890 So it will stretch and fit a little bit to make sure that all of the space within the container is covered 98 00:08:52,890 --> 00:08:59,790 with the image instead of creating a smaller cropped version of the image within the container to preserve 99 00:08:59,790 --> 00:09:02,490 the aspect ratio of the original image. 100 00:09:02,490 --> 00:09:09,180 So by using cover we're going to make sure that it is zoomed in enough to cover the whole space available 101 00:09:09,180 --> 00:09:09,560 to it. 102 00:09:09,870 --> 00:09:17,070 And by setting no repeat we make sure that that extra space available is not filled by duplicating the 103 00:09:17,070 --> 00:09:22,320 icon which would result in a weird blocky look with multiple copies of the image. 104 00:09:22,320 --> 00:09:24,120 So that's definitely not what we want. 105 00:09:24,330 --> 00:09:28,920 And setting the high of one hundred percent of course just tells it to take all of the space that it 106 00:09:28,920 --> 00:09:29,660 can. 107 00:09:29,670 --> 00:09:33,740 So let's go ahead and save this to see our image and where we're at. 108 00:09:34,380 --> 00:09:41,550 And you can see the page refreshed and we now have a smaller card but our background image seems to 109 00:09:41,550 --> 00:09:43,080 be missing. 110 00:09:43,300 --> 00:09:44,800 The reason for this is it. 111 00:09:44,800 --> 00:09:47,860 We told it to take up all of the space available to it. 112 00:09:47,860 --> 00:09:49,850 With the height of 100. 113 00:09:49,930 --> 00:09:58,900 If we scroll down and we look this container actually just contains the card and nothing else besides 114 00:09:58,900 --> 00:09:59,830 that. 115 00:09:59,920 --> 00:10:04,850 So the image actually doesn't have any room for itself to be displayed. 116 00:10:04,900 --> 00:10:11,980 And what we need to do is add a fixed height to our containers so that the image then knows to fill 117 00:10:11,980 --> 00:10:14,740 100 percent of that available space. 118 00:10:14,740 --> 00:10:17,420 But it needs the space in the first place. 119 00:10:17,440 --> 00:10:22,570 So on this container let's give it a style of height 120 00:10:25,280 --> 00:10:32,910 100 m below make sure we have a nice large background appropriate for any of the different screen sizes 121 00:10:33,240 --> 00:10:34,560 so we can save this. 122 00:10:34,560 --> 00:10:40,240 Now Paige will refresh and it looks like the image still isn't appearing. 123 00:10:40,290 --> 00:10:42,530 I think I must have a problem. 124 00:10:42,630 --> 00:10:44,130 Come up here. 125 00:10:44,160 --> 00:10:50,730 Oh we actually we need to add a width to this as well of course because if it doesn't have a width then 126 00:10:50,760 --> 00:10:52,850 it's going to default to zero. 127 00:10:52,860 --> 00:10:54,750 So we obviously don't want that. 128 00:10:54,870 --> 00:11:01,530 So let's tell it to take up 100 percent of the height and the width available to it and we'll save this. 129 00:11:01,530 --> 00:11:09,920 And now you can see our repeating image has appeared it's not quite perfect though because we want the 130 00:11:09,920 --> 00:11:12,260 card to be sitting on top of the image. 131 00:11:12,290 --> 00:11:13,950 Obviously not above it. 132 00:11:14,090 --> 00:11:19,520 So to do that let's come down all the way back and on our card. 133 00:11:19,520 --> 00:11:32,330 Let's add a class name of classes revolution card and we can come up to add our revolution card style 134 00:11:32,410 --> 00:11:34,060 to the styles objects. 135 00:11:34,070 --> 00:11:39,140 And here we can add all the styles to get this to look like the design file. 136 00:11:39,140 --> 00:11:46,790 So first off to get it to sit on top of that image we have to set our position to absolute. 137 00:11:46,790 --> 00:11:50,870 And then the rest of this is just going to be styling to make it look a bit better. 138 00:11:51,050 --> 00:11:58,100 So I'm going to add a box shadow property because I think that the little tiny little bit of shadow 139 00:11:58,100 --> 00:12:00,440 that they have there is just way too measly. 140 00:12:00,460 --> 00:12:02,570 And I want it to be floating way more than that. 141 00:12:02,960 --> 00:12:08,570 And if you remember we actually have shadows available to us in the theme so I'm going to use that by 142 00:12:08,570 --> 00:12:12,040 referencing our theme dot shadows. 143 00:12:12,110 --> 00:12:18,620 And this is actually an array that you can take any of the shadows from with the smaller numbers being 144 00:12:18,650 --> 00:12:24,560 a lighter and smaller shadow and the larger numbers being a darker and larger shadow. 145 00:12:24,560 --> 00:12:31,040 So I'll access this array and access the tenth shadow or shadow at the tenth index. 146 00:12:31,070 --> 00:12:37,610 I should say and then we'll also add a border radius of 15. 147 00:12:37,730 --> 00:12:41,960 And that's going to add a bit more rounded corners than what we have currently. 148 00:12:41,960 --> 00:12:49,220 And the padding of 10 m and so that'll create a bigger card by adding some padding around all of our 149 00:12:49,220 --> 00:12:50,030 text. 150 00:12:50,060 --> 00:12:51,680 So let's go ahead and save that. 151 00:12:51,680 --> 00:12:58,100 To see how it looks and we'll see now that we've got our much larger card our much bigger shadow and 152 00:12:58,100 --> 00:13:04,610 it is sitting on top of our background image giving us a really nice look exactly how we had wanted. 16014

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