All language subtitles for 008 Practicing with Tailwind_en

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,520 --> 00:00:04,010 In this lecture, we're going to get some practice with Tailwind. 2 00:00:04,030 --> 00:00:06,150 Here's what our site looks like. 3 00:00:06,160 --> 00:00:07,640 It's partially broken. 4 00:00:07,660 --> 00:00:09,650 We're going to be fixing this soon. 5 00:00:09,670 --> 00:00:12,970 We'll start by applying some classes to the body tag. 6 00:00:13,000 --> 00:00:15,270 There are two things they want to change. 7 00:00:15,280 --> 00:00:19,060 They're the font, family and background color of the document. 8 00:00:19,090 --> 00:00:22,680 In another tab, I have the static version of the templates. 9 00:00:22,690 --> 00:00:24,110 In the static version. 10 00:00:24,130 --> 00:00:26,800 The font family is set to Roboto. 11 00:00:26,830 --> 00:00:29,020 The background color is like gray. 12 00:00:29,050 --> 00:00:31,600 We should apply these changes to our template. 13 00:00:31,630 --> 00:00:34,360 Let's start with the color of the backgrounds. 14 00:00:34,390 --> 00:00:36,990 We have two options at our disposal. 15 00:00:37,000 --> 00:00:42,430 We could select the body tag, add the background color property and set the color. 16 00:00:42,460 --> 00:00:45,850 Alternatively, we could choose a color from tailwind. 17 00:00:45,880 --> 00:00:48,560 Head on over to the official Tailwind site. 18 00:00:48,580 --> 00:00:52,390 At the top, we can search for the property we want to modify. 19 00:00:52,420 --> 00:00:57,820 Since we're trying to change the background color, let's search for the background color property. 20 00:01:00,110 --> 00:01:05,420 We'll be taken to a page with a list of classes for changing the background color of an element. 21 00:01:05,450 --> 00:01:11,120 This table will tell us the name of the class, the property it affects and the value it uses. 22 00:01:11,150 --> 00:01:13,820 There's even a preview of the color to the right. 23 00:01:13,850 --> 00:01:16,520 As you can see, there are dozens of colors. 24 00:01:16,550 --> 00:01:20,130 Personally, I like BG Gray 100. 25 00:01:20,150 --> 00:01:21,410 Let's copy it. 26 00:01:23,610 --> 00:01:24,680 In our editor. 27 00:01:24,690 --> 00:01:27,600 Let's open the index HTML file. 28 00:01:29,720 --> 00:01:35,190 The indexed HTML file is where the body tag is located on the body tag. 29 00:01:35,210 --> 00:01:38,990 We're going to add the BG Gray 100 class. 30 00:01:41,180 --> 00:01:45,400 It's perfectly acceptable to modify the indexed HTML file. 31 00:01:45,410 --> 00:01:51,860 In fact, the tailwind configuration file will search through the contents of this file for Tailwind 32 00:01:51,860 --> 00:01:52,760 classes. 33 00:01:52,790 --> 00:01:57,120 We're allowed to use Tailwind classes outside of view components. 34 00:01:57,140 --> 00:01:59,840 Let's refresh the page to see what we get. 35 00:02:02,180 --> 00:02:04,370 The background color has changed. 36 00:02:04,400 --> 00:02:06,860 Tailwind is pretty simple to use. 37 00:02:06,890 --> 00:02:12,530 We search for the property you want to change, choose a class and apply it to our HTML. 38 00:02:12,560 --> 00:02:14,490 No need to write CSS. 39 00:02:14,510 --> 00:02:19,490 If you use tailwind long enough, you'll quickly become familiar with the classes. 40 00:02:19,520 --> 00:02:21,340 Let's tackle the next issue. 41 00:02:21,350 --> 00:02:24,140 I want to change the font family of the template. 42 00:02:24,170 --> 00:02:27,330 Let's head on over to the Tailwind documentation. 43 00:02:27,350 --> 00:02:31,340 This time we're going to search for the font family property. 44 00:02:33,670 --> 00:02:38,720 Tailwind will provide us with three classes for changing the font family of the elements. 45 00:02:38,740 --> 00:02:42,820 The name of the font family we want to apply is called Roboto. 46 00:02:42,850 --> 00:02:48,910 If we look at the font sans property, we'll find the Roboto font family listed as a value. 47 00:02:51,160 --> 00:02:55,860 It's possible the font family is not listed under tailwinds classes. 48 00:02:55,870 --> 00:03:00,580 If that's the case, you can modify tailwind to include your font family. 49 00:03:00,610 --> 00:03:03,850 On the sidebar, click on the Customizing Link. 50 00:03:03,850 --> 00:03:10,330 Tailwind will provide instructions for how to include a value not listed in its default configuration 51 00:03:10,360 --> 00:03:12,310 according to the documentation. 52 00:03:12,310 --> 00:03:17,860 If we want to add a new font family, we need to modify the tailwind configuration file. 53 00:03:17,860 --> 00:03:22,060 Luckily for us, we won't need to modify the configuration. 54 00:03:22,060 --> 00:03:24,220 Let's go back to our editors. 55 00:03:26,380 --> 00:03:29,950 On the body tag and the font sans class. 56 00:03:32,090 --> 00:03:36,400 This class will apply the Roboto font family to our documents. 57 00:03:36,410 --> 00:03:40,150 However, it will not load the font family itself. 58 00:03:40,160 --> 00:03:43,220 We still need to handle that step ourselves. 59 00:03:43,220 --> 00:03:46,340 We'll talk about loading assets in the next lecture. 60 00:03:46,340 --> 00:03:48,470 For now, we'll leave it at this. 61 00:03:48,710 --> 00:03:50,390 I have a challenge for you. 62 00:03:50,420 --> 00:03:52,700 We're creating a music application. 63 00:03:52,700 --> 00:03:56,000 At the bottom of every page, there is an audio player. 64 00:03:56,000 --> 00:04:01,730 This audio player is going to need space at the end of the document so that it doesn't overlap with 65 00:04:01,730 --> 00:04:02,630 other elements. 66 00:04:02,630 --> 00:04:07,120 If the browser is scrolled to the bottom of the page, we should add padding. 67 00:04:07,130 --> 00:04:12,290 Here's the challenge Search for a class to add padding to the bottom of the document. 68 00:04:12,320 --> 00:04:15,890 After you find a class, apply it to the body tag. 69 00:04:15,920 --> 00:04:18,649 The padding space should be six REM. 70 00:04:18,649 --> 00:04:20,600 Good luck and pause the video. 71 00:04:21,950 --> 00:04:22,930 Welcome back. 72 00:04:22,940 --> 00:04:25,910 If you were able to solve this challenge, that's great. 73 00:04:25,940 --> 00:04:27,830 If not, that's fine too. 74 00:04:27,860 --> 00:04:29,480 We'll tackle it together. 75 00:04:29,510 --> 00:04:33,900 At the moment, I'm on the documentation for adding padding to an element. 76 00:04:33,920 --> 00:04:36,140 There are hundreds of padding classes. 77 00:04:36,140 --> 00:04:42,130 We can add padding to all signs of an element, or we can add padding to an axis. 78 00:04:42,140 --> 00:04:44,630 We can even add padding to one side. 79 00:04:44,660 --> 00:04:48,860 The class we're looking to apply is called PB 24. 80 00:04:48,890 --> 00:04:52,080 This class will add padding to the bottom of an element. 81 00:04:52,100 --> 00:04:53,960 The value is six ram. 82 00:04:53,960 --> 00:04:55,220 Let's copy it. 83 00:04:57,320 --> 00:05:00,920 Next, we'll add it to the body tag in our editor. 84 00:05:03,130 --> 00:05:03,700 Great. 85 00:05:03,730 --> 00:05:04,620 We're finished. 86 00:05:04,630 --> 00:05:07,000 We've only taken care of the CCIS. 87 00:05:07,030 --> 00:05:09,920 Our template will need images and fonts. 88 00:05:09,940 --> 00:05:14,980 In the next lecture we're going to start loading the other assets for our template. 7771

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