All language subtitles for 11. Creating the Name Cards

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 Download
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
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:00,770 --> 00:00:08,450 The next step in our process is to convert this array of names into nice looking cards. 2 00:00:08,960 --> 00:00:11,900 So I should go ahead and do that right now. 3 00:00:12,350 --> 00:00:17,240 So in order to do that, what I'm going to do is write to below the div. 4 00:00:17,270 --> 00:00:21,950 So this div right over here that contains all of the different options. 5 00:00:22,550 --> 00:00:28,310 So the options container right below it, I'm going to create another div and I'm going to give it a 6 00:00:28,310 --> 00:00:30,740 class of cards container. 7 00:00:31,280 --> 00:00:33,790 Some say cards container. 8 00:00:33,800 --> 00:00:36,920 So this is going to house all of the different name cards. 9 00:00:37,400 --> 00:00:40,700 Now, right in here, this is where we're going to have all of our cards. 10 00:00:41,000 --> 00:00:44,270 So I'm going to create a div for this for each individual card. 11 00:00:44,510 --> 00:00:48,200 I'm going to give this a class of card like so. 12 00:00:48,500 --> 00:00:52,670 And then right in there, we're going to have the P tag for the card. 13 00:00:53,060 --> 00:00:56,600 Now, what we're going to do is we're going to actually iterate over this, of course. 14 00:00:56,810 --> 00:01:05,510 So in order in order to do this, we're going to use av4 and we're going to say V for name in selected 15 00:01:05,600 --> 00:01:06,410 names. 16 00:01:07,400 --> 00:01:09,200 And then we're going to need to provide a key. 17 00:01:09,680 --> 00:01:11,330 So each name should be unique. 18 00:01:11,330 --> 00:01:14,390 So the name should serve as the key as well. 19 00:01:14,770 --> 00:01:19,790 Then right over here, we are going to supply it with the name itself. 20 00:01:20,270 --> 00:01:23,450 So if you go over here, you should see our names. 21 00:01:23,690 --> 00:01:29,840 Now, of course, they're not styled nicely, so let's go ahead and apply these styles. 22 00:01:30,200 --> 00:01:35,270 So the first thing I'm going to do is for this cards container, which is going to be the container 23 00:01:35,270 --> 00:01:36,440 that contains everything. 24 00:01:37,070 --> 00:01:43,630 I'm going to go over here and I am going to give this a display of flex. 25 00:01:44,120 --> 00:01:47,180 And then I'm going to give this same margin top. 26 00:01:48,180 --> 00:01:50,190 Of three rims. 27 00:01:50,190 --> 00:01:53,910 And lastly, a flex wrap. 28 00:01:54,820 --> 00:01:56,080 Of rap. 29 00:01:57,540 --> 00:01:59,550 Just so we can rap nice and well. 30 00:01:59,970 --> 00:02:00,240 Okay. 31 00:02:00,240 --> 00:02:02,090 So I was looking a okay. 32 00:02:02,100 --> 00:02:03,840 I'm actually pretty happy with that. 33 00:02:04,110 --> 00:02:07,590 But now all we need to do is start styling the cards themselves. 34 00:02:08,010 --> 00:02:09,030 So let's go over here. 35 00:02:10,170 --> 00:02:11,370 We're going to say card. 36 00:02:12,990 --> 00:02:17,190 And then right over here, we're going to say the background color. 37 00:02:17,910 --> 00:02:28,350 This is going to be r, g, b, r, g, b, RSA, say 27, 61, three, eight. 38 00:02:28,350 --> 00:02:30,210 So a nice little blue color there. 39 00:02:30,780 --> 00:02:34,200 We're going to give this a width of 28%. 40 00:02:34,260 --> 00:02:35,520 So 28%. 41 00:02:35,520 --> 00:02:39,330 So we can have around, I believe, maybe three per row. 42 00:02:39,780 --> 00:02:42,510 So 28%. 43 00:02:43,260 --> 00:02:46,670 We're also going to give this a color of white. 44 00:02:47,490 --> 00:02:49,830 We're going to give us a border radius. 45 00:02:51,390 --> 00:03:05,700 Of one REM padding of one REM, a margin left or a margin right, rather, of 0.10.5 REM. 46 00:03:06,210 --> 00:03:10,620 And then we're going to give it a margin, bottom of one REM. 47 00:03:11,010 --> 00:03:14,370 So margin bottom of one REM. 48 00:03:14,370 --> 00:03:16,620 And I think that should be it for the card themselves. 49 00:03:17,010 --> 00:03:20,520 Now, let's go ahead and style the P tag inside of the card. 50 00:03:20,940 --> 00:03:26,700 So this is just going to be let's give this over here a position of relative. 51 00:03:27,420 --> 00:03:29,970 And I'll show you exactly why we need this later. 52 00:03:29,970 --> 00:03:33,600 It's just really to style that X button, which I'll show a little bit later. 53 00:03:34,050 --> 00:03:36,690 But for now, let's say this one's position absolute. 54 00:03:37,740 --> 00:03:44,610 And then over here, we're going to say that this is going to be top -30%. 55 00:03:45,450 --> 00:03:47,610 And we're also going to say left. 56 00:03:48,210 --> 00:03:51,210 This is going to be 95.5%. 57 00:03:52,230 --> 00:03:54,810 We're going to say here, cursor. 58 00:03:56,190 --> 00:03:58,860 Cursor, it's going to be pointer. 59 00:03:59,490 --> 00:04:04,710 And over here, the color is going to be in our GBA. 60 00:04:05,640 --> 00:04:09,030 And then over here we're going to have just all black. 61 00:04:09,270 --> 00:04:13,980 But because it's an R GBA, I'm also going to specify some opacity. 62 00:04:14,760 --> 00:04:16,830 So you might be thinking, why did we do this? 63 00:04:16,860 --> 00:04:21,750 Well, the reason why we did this is because inside of here. 64 00:04:22,830 --> 00:04:30,750 So inside of this right here, we're going to actually have that X so that X where that's going to allow 65 00:04:30,750 --> 00:04:31,560 us to close. 66 00:04:31,560 --> 00:04:34,650 And I want that to be in the top right corner. 67 00:04:35,070 --> 00:04:40,170 And so that's why we did all those extra additional, you know, position relative and stuff like that. 68 00:04:40,680 --> 00:04:48,540 So right over here, what we're going to do is inside of the HTML, the name itself is actually going 69 00:04:48,540 --> 00:04:51,180 to live just outside of the card. 70 00:04:51,660 --> 00:04:57,840 And then right over here inside of the P tag, we're just going to have that x like so we can even wrap 71 00:04:57,840 --> 00:05:02,100 this in maybe like an H four and put that in there like that. 72 00:05:03,000 --> 00:05:03,330 Okay. 73 00:05:03,330 --> 00:05:07,670 So now you can see that we're getting our things. 74 00:05:07,670 --> 00:05:10,110 So this is a little bit bigger than I thought it would be. 75 00:05:10,560 --> 00:05:13,200 So let's go over here. 76 00:05:14,970 --> 00:05:17,430 To this end. 77 00:05:17,430 --> 00:05:19,440 Let's look at why it's too big. 78 00:05:19,440 --> 00:05:21,750 The padding 0.1 REM. 79 00:05:21,750 --> 00:05:23,100 I think that's what I meant to do. 80 00:05:23,130 --> 00:05:23,520 Okay. 81 00:05:23,760 --> 00:05:25,410 And you see here we have this little X. 82 00:05:25,620 --> 00:05:30,510 Maybe we can even just make it 29, -29%. 83 00:05:30,870 --> 00:05:31,270 And there you go. 84 00:05:31,290 --> 00:05:33,420 You can see very faintly we have that X. 85 00:05:33,870 --> 00:05:39,930 So now if we go ahead and we start clicking on all these different things, as you can see, it's working 86 00:05:40,110 --> 00:05:41,880 the way that we expect it to. 87 00:05:41,910 --> 00:05:43,230 So this is really, really good. 88 00:05:43,710 --> 00:05:47,250 Maybe all here and see we get all of our different options. 89 00:05:47,730 --> 00:05:49,260 So this is looking really, really good. 90 00:05:49,290 --> 00:05:54,430 However, obviously there is still quite a bit of flaws with this. 91 00:05:54,450 --> 00:05:55,680 Let's go ahead and remove this. 92 00:05:55,950 --> 00:06:00,840 So the the first floor that you might see right away is that these X's don't work, so they don't allow 93 00:06:00,840 --> 00:06:02,020 us to actually delete this. 94 00:06:02,340 --> 00:06:03,540 So we need to fix that later. 95 00:06:03,690 --> 00:06:09,150 But there's also some other issues with the way that we structured our code that I am going to try to 96 00:06:09,150 --> 00:06:11,190 resolve in the next two videos. 8421

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