All language subtitles for 011 Challenge 5_en

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,650 --> 00:00:02,610 All right it's time for challenge 2 00:00:02,690 --> 00:00:10,920 5. So currently we've got our home route and our home page being rendered with a header and footer 3 00:00:11,310 --> 00:00:15,080 and some content that's being passed over from the server. 4 00:00:15,120 --> 00:00:21,510 Now in this challenge in order to complete it, I want you to be able to go into your browser and say 5 00:00:21,510 --> 00:00:30,750 localhost:3000/about and be able to see the about page with the same header and footer and CSS 6 00:00:30,780 --> 00:00:38,940 applied to this page. And also to be able to go over to the contact page and again have this page rendered 7 00:00:39,030 --> 00:00:45,140 with a header and footer using the partials and also have the data that's inside our app.js, 8 00:00:45,210 --> 00:00:51,880 about content and contact content rendered and passed over to the correct pages. 9 00:00:52,020 --> 00:00:57,560 So you should be able to see this on your About page and this on your contact page 10 00:00:57,750 --> 00:01:00,690 once you've successfully completed this challenge. 11 00:01:00,810 --> 00:01:02,370 So that's the goal. 12 00:01:02,370 --> 00:01:05,140 Pause the video and complete the challenge. 13 00:01:06,580 --> 00:01:13,720 All right so here's the first and only hint. As a hint I'm going to go through the steps that you need 14 00:01:13,720 --> 00:01:16,900 to achieve in order to get this to work. 15 00:01:16,900 --> 00:01:23,230 Now we know that we're already able to render our home page passing in some of the content that's inside 16 00:01:23,290 --> 00:01:32,230 this variable home starting content. And we're using these partials inside this page to be able to render 17 00:01:32,230 --> 00:01:35,570 the content inside the header and footer files. 18 00:01:35,710 --> 00:01:42,860 Now in our contact.ejs and about.ejs pages you need to do the same as what we've done inside our 19 00:01:42,860 --> 00:01:43,410 home. 20 00:01:43,440 --> 00:01:50,040 ejs. But we're going to be passing in some different content and you're going to have a different h1. 21 00:01:50,760 --> 00:01:51,190 Now 22 00:01:51,250 --> 00:01:58,810 once you've updated these two pages now the next step is to go ahead and create the routes. 23 00:01:58,810 --> 00:02:03,600 We've got a route defined for our root route which is the forward slash 24 00:02:03,940 --> 00:02:11,320 and inside there we're rendering the home.ejs page and we're passing through a Javascript object that contains 25 00:02:11,650 --> 00:02:18,570 the value of home starting content which is the data that we want to pass over to the home page. 26 00:02:18,580 --> 00:02:25,210 Now we need to do pretty much the same thing but for our /about route and our / 27 00:02:25,300 --> 00:02:32,080 contact route and we're going to pass over the content inside the about content and contact content 28 00:02:32,380 --> 00:02:34,540 to the relevant pages. 29 00:02:34,540 --> 00:02:41,410 So see if you can try and replicate what we did with the home.ejs file and also this get method for 30 00:02:41,410 --> 00:02:45,280 the root route and you should be able to reach the goal for this challenge. 31 00:02:45,400 --> 00:02:46,330 So give it a go 32 00:02:46,330 --> 00:02:46,640 now. 3459

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