All language subtitles for 2. Adding Bootstrap Globally

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
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
tl Filipino
fi Finnish
fr French Download
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,030 --> 00:00:07,470 All right, everybody, let's go ahead and get started with working on our restaurant application. 2 00:00:07,800 --> 00:00:11,520 Now, for the first few videos, we're just going to work on the landing page. 3 00:00:11,520 --> 00:00:17,340 So we have the nav bar as well as the restaurant to the header, as well as that link that's going to 4 00:00:17,340 --> 00:00:20,520 navigate us to the top 50 restaurants page. 5 00:00:20,910 --> 00:00:26,340 So in order to do this, of course, we need to go ahead and create a brand new Knox application to 6 00:00:26,340 --> 00:00:27,450 save some time. 7 00:00:27,450 --> 00:00:33,150 I already did this, but just as a refresher, if you are unfamiliar, you're going to navigate into 8 00:00:33,150 --> 00:00:39,510 whatever directory you want to create this application in, and then you're going to do Inpex Knoxy 9 00:00:39,510 --> 00:00:41,490 and PDX Knoxy. 10 00:00:42,660 --> 00:00:45,870 And then in net, and then you're going to give your application a name. 11 00:00:46,140 --> 00:00:48,350 I called it O2 top restaurants. 12 00:00:48,360 --> 00:00:50,640 You can call it whatever it is that you want. 13 00:00:51,060 --> 00:00:57,300 Now, once you create this, what you want to do is you want to navigate into that application so I 14 00:00:57,300 --> 00:01:02,730 can go over here and do C, D, and then whatever you call it, I'm going to call my name, for instance. 15 00:01:02,940 --> 00:01:09,840 And then once you navigate into it, you just do an AMPM install and then open it up into your favorite 16 00:01:09,840 --> 00:01:15,870 text editor and then just do an AMPM run dev to have it running on your local machine. 17 00:01:16,380 --> 00:01:18,240 Okay, so that's pretty much it. 18 00:01:18,480 --> 00:01:21,720 And we're going to continuously do this, so you will get used to it. 19 00:01:21,930 --> 00:01:26,520 Now, once you have that, you're going to have this, you know, default application up and running. 20 00:01:26,730 --> 00:01:28,890 You can go ahead and remove this. 21 00:01:28,920 --> 00:01:30,240 KNOX Welcome. 22 00:01:30,420 --> 00:01:33,360 So we can just have no boilerplate right away. 23 00:01:34,110 --> 00:01:40,050 Now, I mentioned that for this application we are going to do some custom styling, but I don't want 24 00:01:40,050 --> 00:01:42,150 to start focusing on styling too much. 25 00:01:42,510 --> 00:01:48,360 So what I want to do is I want to use an external library that is going to provide us with a bunch of 26 00:01:48,360 --> 00:01:52,140 styles that correspond to some custom classes. 27 00:01:52,560 --> 00:01:59,160 And the most popular one by far, and probably the one that you are also familiar with is bootstrap. 28 00:01:59,460 --> 00:02:00,810 So this is what we're going to be using. 29 00:02:00,810 --> 00:02:08,400 So bootstrap is a library or a popular framework that's going to allow us to style our applications 30 00:02:08,400 --> 00:02:09,690 relatively quickly. 31 00:02:09,690 --> 00:02:14,490 So there's a bunch of UI elements or bunch of layout elements that we can utilize. 32 00:02:14,700 --> 00:02:21,240 So for example, over here we have a bunch of you have a container class that's going to give us some 33 00:02:21,240 --> 00:02:23,310 styling to create a container. 34 00:02:24,420 --> 00:02:31,350 Now how are we going to get this right over here, bootstrap connected to our Nook's application? 35 00:02:31,800 --> 00:02:38,520 Well, the way to do it and let me zoom in here once more is to very simply add this link tag right 36 00:02:38,520 --> 00:02:43,050 over here into your HTML elements. 37 00:02:43,290 --> 00:02:48,690 And then inside of that HTML, because we have that link tag, any class that corresponds to any bootstrap 38 00:02:48,690 --> 00:02:55,170 class is going to provide us with styles that bootstrap is supplying us with. 39 00:02:55,770 --> 00:03:00,330 However, the only issue that we're facing right now is inside of our Nux application. 40 00:03:00,330 --> 00:03:03,690 There actually isn't any HTML file. 41 00:03:04,140 --> 00:03:10,950 So how in the world are we going to get this link tag connected to our nook's application? 42 00:03:11,310 --> 00:03:14,970 So that's what we're going to be doing inside of this video. 43 00:03:15,120 --> 00:03:19,560 We're going to figure out how we can get this link tag connected to basically every single component 44 00:03:19,560 --> 00:03:21,690 and page in our app. 45 00:03:22,350 --> 00:03:26,550 Now, because we want to have this as a global style. 46 00:03:26,550 --> 00:03:33,810 So any single component as well as any single page in our application has access to these bootstrap 47 00:03:33,810 --> 00:03:34,470 classes. 48 00:03:34,740 --> 00:03:43,500 What we can very simply do is actually plug it in inside of the nux dot config dot t s file. 49 00:03:43,890 --> 00:03:51,420 So this is just a place where we can configure our nux application and we can configure it in many, 50 00:03:51,420 --> 00:03:53,430 many, many different ways. 51 00:03:53,640 --> 00:04:00,210 But the way that we want to configure it right now is very simply add this link tag to almost every 52 00:04:00,210 --> 00:04:04,980 single component that we have, and that is exactly what we are going to do. 53 00:04:05,820 --> 00:04:10,260 So let's go over here and what we're going to do is specify meta. 54 00:04:10,350 --> 00:04:14,280 This is just basically meta data that we're going to be specifying. 55 00:04:14,610 --> 00:04:17,760 And then right in here, we're going to specify a link. 56 00:04:18,150 --> 00:04:22,860 Now this is going to be an array because we can have multiple links throughout our app. 57 00:04:22,860 --> 00:04:25,950 We can have this link, we can have other links if we want. 58 00:04:26,610 --> 00:04:29,820 Now over here, we're going to provide an object. 59 00:04:30,240 --> 00:04:33,390 And then right in here we're going to specify the role. 60 00:04:33,420 --> 00:04:37,700 So right over here, this is this portion right over here. 61 00:04:37,710 --> 00:04:40,920 So we're going to specify that this is going to be a stylesheet. 62 00:04:41,430 --> 00:04:42,180 So let's go here. 63 00:04:42,180 --> 00:04:44,070 We're going to say rel stylesheet. 64 00:04:45,410 --> 00:04:49,280 And then what we're going to do is specify the ETF. 65 00:04:49,790 --> 00:04:54,500 So this is this component of the the link tag. 66 00:04:54,500 --> 00:04:55,970 So we're going to go ahead and grab that. 67 00:04:56,780 --> 00:04:58,540 So go ahead and grab that leg. 68 00:04:58,540 --> 00:05:05,260 So and then we're going to do each ref now we're going to go ahead and add that ETF. 69 00:05:05,770 --> 00:05:08,590 So let's just go ahead and save that. 70 00:05:08,860 --> 00:05:17,140 And that right there is all it is that we need in order to get bootstrap working with our application. 71 00:05:17,350 --> 00:05:22,870 So any time we use a bootstrap class, we actually should see those tiles in our app. 72 00:05:23,200 --> 00:05:28,360 Now in order to test us out what I recommend doing anytime you makes any sort of change in the config, 73 00:05:28,570 --> 00:05:34,420 I recommend just closing your application, closing your development server by doing control C and then 74 00:05:34,420 --> 00:05:35,740 running it again. 75 00:05:36,700 --> 00:05:41,650 Now what I'm going to do here is I'm going to say hello, so I'm going to say hello over here. 76 00:05:42,130 --> 00:05:48,040 And once I do that and I go back to my Knox application just waiting for it to load, I should see a 77 00:05:48,040 --> 00:05:49,030 blank page with. 78 00:05:49,030 --> 00:05:49,510 Hello. 79 00:05:49,540 --> 00:05:50,530 Let me zoom in here. 80 00:05:50,920 --> 00:05:51,550 There we go. 81 00:05:51,550 --> 00:05:52,090 We see it. 82 00:05:52,090 --> 00:05:53,830 I'm like 500% zoomed in. 83 00:05:54,190 --> 00:05:55,300 So right here we see it. 84 00:05:55,630 --> 00:06:00,550 Now what I'm going to do is I'm going to wrap this with the class called container. 85 00:06:00,820 --> 00:06:06,160 So this is going to be a default bootstrap class that I am going to add in here. 86 00:06:06,310 --> 00:06:12,820 And what it should do is essentially provide some margin and wrap this somewhere more in the middle. 87 00:06:13,300 --> 00:06:15,190 So over here, I'm gonna go ahead and save that. 88 00:06:15,520 --> 00:06:16,180 And there you go. 89 00:06:16,180 --> 00:06:17,860 You can kind of see it now. 90 00:06:17,860 --> 00:06:20,890 You might not be able to see it that much because it's really zoomed in. 91 00:06:21,130 --> 00:06:22,960 So I'm going to do is I'm going to get rid of it for now. 92 00:06:23,980 --> 00:06:25,390 I might zoom out a little bit. 93 00:06:25,390 --> 00:06:31,540 Hopefully you can kind of see the halo over here and I'm going to go ahead and add that container again. 94 00:06:31,750 --> 00:06:35,470 And you can see here that we do indeed get it. 95 00:06:35,470 --> 00:06:40,810 You can see that there's a little bit of a margin here and it is working a okay. 96 00:06:41,260 --> 00:06:48,850 So I hope that is clear and that is how we are going to connect these global stylesheet inside of Linux 97 00:06:48,850 --> 00:06:50,500 dot config dots. 9799

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