All language subtitles for 098 Accordion - Complete.en_US

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
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 Download
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,150 --> 00:00:06,210 And as always, we're going to start by navigating back to our repoll and then, of course, we're looking 2 00:00:06,210 --> 00:00:07,830 for project number four. 3 00:00:08,190 --> 00:00:12,640 So let me open up right now, my integrated terminal. 4 00:00:12,990 --> 00:00:14,780 I'll start with the dev server. 5 00:00:15,210 --> 00:00:17,400 I'll navigate back to the road. 6 00:00:17,790 --> 00:00:24,120 And of course, once I'm in the REACT project and I'm going to go with it online, we're looking for 7 00:00:24,120 --> 00:00:29,100 accordion and then the set folder with drag and drop over here. 8 00:00:29,970 --> 00:00:33,620 And then we're, of course, navigating set folder. 9 00:00:33,900 --> 00:00:37,560 Then we are on NPM install and then AMPM run. 10 00:00:37,890 --> 00:00:46,560 By the way, let me clear the console, so let me hold npm install and rpm start and I would want to 11 00:00:46,560 --> 00:00:52,520 give you a challenge where essentially the steps you would need to take are falling. 12 00:00:52,950 --> 00:00:58,620 First you need to iterate over the list of questions that I have. 13 00:00:58,620 --> 00:00:59,800 I believe in the data. 14 00:01:00,300 --> 00:01:03,420 So if I check out the source, you'll see that I have the data. 15 00:01:03,750 --> 00:01:05,880 So these are the list of questions. 16 00:01:07,060 --> 00:01:15,070 And then I would want you to iterate over them in the averages and then for every item that you have 17 00:01:15,070 --> 00:01:23,140 in a row, display the single question on, then we already have done this before where we have this 18 00:01:23,140 --> 00:01:31,360 toggle and functionality, depending on state value, you're either displaying the text or you're hiding 19 00:01:31,990 --> 00:01:32,470 again. 20 00:01:33,040 --> 00:01:40,600 It's not mandatory, but I would suggest just practicing a bit, at least iterating over the list. 21 00:01:40,870 --> 00:01:47,590 So you display the single question and then if you get stuck on toggling, of course, feel free to 22 00:01:47,590 --> 00:01:53,710 watch the remaining of the video, but at least challenge yourself a little bit where we have already 23 00:01:53,710 --> 00:01:55,410 covered this functionality. 24 00:01:55,720 --> 00:01:56,630 It's just a project. 25 00:01:56,630 --> 00:02:01,270 There's a little bit different where now we're toggling the answer for the question. 26 00:02:01,570 --> 00:02:07,540 Previously, I believe we're working with torse and also we did the same thing and tutorial. 27 00:02:07,750 --> 00:02:13,690 Now, I wouldn't want to start with an ideal where, like I said, I have the data. 28 00:02:13,900 --> 00:02:14,340 Correct. 29 00:02:14,650 --> 00:02:16,870 So data is a list of questions. 30 00:02:17,230 --> 00:02:21,640 As you can see, there's an array again, each and every item is an object. 31 00:02:21,850 --> 00:02:27,220 And I'm here, I have ideas, I have title, I have info, and I have all these values. 32 00:02:27,220 --> 00:02:32,960 I believe I have five questions online in the Objets first hour. 33 00:02:32,960 --> 00:02:35,910 I just want to display my container. 34 00:02:36,220 --> 00:02:37,440 Now it's up to you. 35 00:02:37,450 --> 00:02:42,490 You can set up here a state value in the objects or you can just get it. 36 00:02:42,640 --> 00:02:43,440 That's up to you. 37 00:02:43,630 --> 00:02:47,560 In my case, I used state, but we're not going to change those values. 38 00:02:47,930 --> 00:02:53,980 Also, I want to let you know that if you don't like the background, so if for some real reason you're 39 00:02:53,980 --> 00:03:01,450 not a fan of this awesome background color and of course, navigate the and then change this value from 40 00:03:01,450 --> 00:03:03,490 the purple to wherever you want. 41 00:03:03,730 --> 00:03:05,890 And one last thing that I would want to mention. 42 00:03:06,160 --> 00:03:11,950 The idea again came from the website, the UI design daily. 43 00:03:12,250 --> 00:03:15,150 So if you want to check it out, please do so. 44 00:03:15,640 --> 00:03:18,460 So back to jazz legend. 45 00:03:18,480 --> 00:03:23,680 Set up a basic return with a single question component. 46 00:03:23,920 --> 00:03:30,820 Like I said, it is not really necessary in here, but I'll still set up a stage where I'm going to 47 00:03:30,820 --> 00:03:35,950 go with concert and then questions and then set questions. 48 00:03:35,950 --> 00:03:38,500 Even though we won't use this function. 49 00:03:38,830 --> 00:03:42,280 I'm going to go with you State and I'll just pass in the data. 50 00:03:42,670 --> 00:03:50,200 So the error that I'm getting from my data, Jaspal, the array of questions, I'm as far as the return 51 00:03:50,380 --> 00:03:51,400 would go with mine. 52 00:03:52,810 --> 00:04:00,190 Then we place our container so there with a glass of container inside of the container will go with 53 00:04:00,190 --> 00:04:11,710 Herring three and that is going to be questions and answers about Log-in like so and right next to it, 54 00:04:11,710 --> 00:04:15,360 we're going to have a section with a class of info section. 55 00:04:15,790 --> 00:04:21,460 And by the way, I should have gone to the source of section info and instead of the section, I would 56 00:04:21,460 --> 00:04:25,900 want to iterate over the list of questions. 57 00:04:26,260 --> 00:04:33,430 So I go here with questions, then map, of course, and on each and every item will be represented 58 00:04:33,700 --> 00:04:36,230 with a primer of question. 59 00:04:36,250 --> 00:04:37,540 So that is that object. 60 00:04:37,870 --> 00:04:42,430 And then, of course, I would want to return my single question component. 61 00:04:42,790 --> 00:04:44,620 Now, I do need to add a key here. 62 00:04:44,680 --> 00:04:48,990 So I'm going to go with Kiprop and will pass in question ID. 63 00:04:49,240 --> 00:04:57,280 So the parameter name and then ID because I know that in my array I do have that property, so every 64 00:04:57,280 --> 00:04:58,420 object has that property. 65 00:04:58,720 --> 00:05:03,760 And also let's use that separate operator to pass the rest of the properties as well. 66 00:05:04,000 --> 00:05:05,270 So we go with that. 67 00:05:06,080 --> 00:05:11,360 And then we have the question, so now, of course, once we navigate there, by the way, of course, 68 00:05:11,360 --> 00:05:13,190 the mistake was I didn't close it out. 69 00:05:13,590 --> 00:05:14,390 Let me do that. 70 00:05:14,420 --> 00:05:21,230 And now I can see we have questions and answers about the Log-in and then I have five question component's. 71 00:05:21,230 --> 00:05:21,560 Why? 72 00:05:21,850 --> 00:05:29,730 Because the array has five items, and that's the only return that I have in my question combined. 73 00:05:30,080 --> 00:05:36,760 Now, I also imported some icons, a little bit of repetition where cover that in the previous project. 74 00:05:37,040 --> 00:05:45,710 So we have the icons for a question now inside of the question, of course, now we can access all the 75 00:05:45,710 --> 00:05:49,970 properties from that object and there's not many essential. 76 00:05:50,030 --> 00:05:53,930 There's going to be only two because they are set up as props. 77 00:05:54,180 --> 00:05:59,090 So I know that I have title and of course I have the info now. 78 00:05:59,190 --> 00:06:04,880 I'm going to hold off on that value, even though eventually it's going to be there for talking purposes, 79 00:06:05,150 --> 00:06:07,610 for not let's just worry about our return. 80 00:06:07,910 --> 00:06:09,800 So we're going to go here with article. 81 00:06:10,160 --> 00:06:15,140 Then we'll add here a class name and that class name is going to be questioned. 82 00:06:15,830 --> 00:06:20,810 And that as far as the return, well, let's go with a header here. 83 00:06:21,500 --> 00:06:26,600 And then instead of the header, we're going to have a heading for and then the title. 84 00:06:26,720 --> 00:06:28,220 So whatever is going to be the title. 85 00:06:28,430 --> 00:06:31,640 And eventually we'll also have our toggle button. 86 00:06:31,850 --> 00:06:40,910 So right next to the heading for Let's Go with Button will add a class name of Beaton and eventually 87 00:06:40,910 --> 00:06:42,440 there will be icons here. 88 00:06:42,800 --> 00:06:51,020 But phrenologists b10 let's it we should have the title and then our button and then of course right 89 00:06:51,020 --> 00:06:54,380 below the button and essentially also the header. 90 00:06:54,740 --> 00:06:57,410 I would want to showcase my paragraph. 91 00:06:57,770 --> 00:07:02,750 So in here I go with an info so that looks good. 92 00:07:03,140 --> 00:07:10,280 But of course we would want to have that functionality where only once we click on a button then we 93 00:07:10,280 --> 00:07:11,950 display this text. 94 00:07:12,110 --> 00:07:19,790 And not only that, I also want to change my icons around where if of course I would want to collapse 95 00:07:19,790 --> 00:07:25,940 and then I switch from negative or minus to a plus and then the opposite. 96 00:07:26,150 --> 00:07:31,450 If I would want to display more info and we know how we can toggle things. 97 00:07:31,850 --> 00:07:32,660 So we're going to go. 98 00:07:32,660 --> 00:07:34,210 Here we go. 99 00:07:35,310 --> 00:07:38,010 I'm going to call this show info. 100 00:07:38,860 --> 00:07:46,870 And then set your info info, and that is equal to a year's state and then I'll pass in the fall. 101 00:07:47,500 --> 00:07:49,530 OK, so by default it is going to be false. 102 00:07:49,930 --> 00:07:55,930 And now where I'm working with my paragraph, I wouldn't want to display it right from the get go. 103 00:07:56,200 --> 00:08:02,090 I'll say, you know what, if show info is true, only then I on display my program. 104 00:08:02,440 --> 00:08:04,620 So I'm going to cut it out and copy and paste. 105 00:08:04,870 --> 00:08:07,410 And now of course they will be hidden by default. 106 00:08:07,420 --> 00:08:07,720 Why? 107 00:08:08,140 --> 00:08:09,360 Because this one is false. 108 00:08:09,790 --> 00:08:15,310 So I'll change the channel and of course all of them will be shown again, something we have covered 109 00:08:15,310 --> 00:08:20,090 already multiple times, editorial as well as in the project. 110 00:08:20,440 --> 00:08:25,990 So now, of course, we just need to set up our button where we go with unclick and then we'll pass 111 00:08:25,990 --> 00:08:29,100 in our inline function because I think it's going to be the fastest. 112 00:08:29,350 --> 00:08:35,130 I remember we just wanted to set the new value opposite to the current one. 113 00:08:35,440 --> 00:08:42,220 So we go with our function and that in here we go with exclamation point and we say show info. 114 00:08:42,550 --> 00:08:45,520 So whatever is the value pass and the opposite. 115 00:08:45,860 --> 00:08:49,720 And of course we can also check for the icons. 116 00:08:50,030 --> 00:08:56,650 Now, in this case, I'm going to do the turn operator where if the show info is true, then I'll display 117 00:08:56,650 --> 00:08:56,950 one. 118 00:08:57,220 --> 00:09:00,440 And if it is false, then of course I'll display another one. 119 00:09:00,460 --> 00:09:03,280 So I go showing for my ternary operator. 120 00:09:03,520 --> 00:09:11,050 And then if it is true, if I would want to display the icon, then I'm going to go with minus like 121 00:09:11,050 --> 00:09:16,180 so and then if it is not true and of course I'm going to go with the plus one. 122 00:09:16,570 --> 00:09:27,000 So I have the colon, I go with other icon like so and once I save Noris since showing is false. 123 00:09:27,340 --> 00:09:29,500 Now of course I'm displaying my plus icon. 124 00:09:29,980 --> 00:09:37,090 Then the moment I change around course I also display different icon that you did for the project. 125 00:09:37,090 --> 00:09:43,150 Hopefully you are able to follow along and hopefully you also challenge yourself a little bit where 126 00:09:43,150 --> 00:09:49,120 you iterate over the questions you may be trying to set up state value and all that good stuff. 127 00:09:49,300 --> 00:09:51,160 And I hope to see your next project. 12383

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