All language subtitles for 13. AppBar Logo

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
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 Download
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,680 --> 00:00:09,590 We've done a great job so far at understanding how to use the material UI theming and styling systems 2 00:00:09,890 --> 00:00:15,190 to start setting up the basic structure of our application. 3 00:00:15,200 --> 00:00:23,490 So now let's go in and actually start adding some of our custom content and functionality so here just 4 00:00:23,490 --> 00:00:25,430 to give you guys a reminder. 5 00:00:25,530 --> 00:00:34,080 This is the header from the high fidelity design file in the project 1 files and this is just a reminder 6 00:00:34,080 --> 00:00:40,470 so that you can keep in mind what we're going to actually be building starting with the logo here on 7 00:00:40,470 --> 00:00:47,990 the left so in this video we're going to put in that company logo and take a look at some of the gotchas 8 00:00:48,000 --> 00:00:50,360 that start coming up when we try to do that. 9 00:00:51,330 --> 00:00:54,870 Let's head on over to the code editor and we'll get started. 10 00:00:56,170 --> 00:01:04,060 So I have my project directory open here in my code editor but I'm gonna go ahead and start up the development 11 00:01:04,060 --> 00:01:13,660 server with an NPM start which will then kick open a tab in the browser and once that loads up you can 12 00:01:13,660 --> 00:01:17,050 see we're back with our basic header. 13 00:01:17,120 --> 00:01:19,900 We've already got the correct coloring for it. 14 00:01:19,970 --> 00:01:27,090 But now let's actually start going in and making it actually look like that header from the design. 15 00:01:27,210 --> 00:01:34,110 You can go ahead and put away your command line or terminal and you can see that I've arranged my screen 16 00:01:34,320 --> 00:01:39,960 so that I can have the code editor and the browser window open at the same time so that we can start 17 00:01:39,960 --> 00:01:47,380 seeing the changes in our project as we make them so the first thing that we want to do is go ahead 18 00:01:47,410 --> 00:01:50,580 and actually get rid of this typography component. 19 00:01:50,620 --> 00:01:57,700 The place holder for the title that we had and then we can also come up and remove the import statement 20 00:01:57,700 --> 00:02:00,570 for the typography component as well. 21 00:02:00,760 --> 00:02:06,820 Put these back together and then underneath those import statements and I like to separate my imports 22 00:02:06,820 --> 00:02:12,090 for the material UI components vs. my own created components. 23 00:02:12,100 --> 00:02:21,240 But this is just personal preference and we're going to go ahead and then import our logo from dot dot 24 00:02:21,250 --> 00:02:32,350 slash dot dot signage so up to directories into our assets directory and then the logo dot veggie all 25 00:02:32,350 --> 00:02:38,920 of the icons and pictures that we're going to be using in this first project are in that assets folder 26 00:02:38,920 --> 00:02:46,450 from the Project 1 files that we downloaded and so we're always going to be importing our images from 27 00:02:46,450 --> 00:02:48,450 that location. 28 00:02:48,510 --> 00:02:56,460 Now we can go down and where are place holder text was we can go ahead and put in an image tag with 29 00:02:56,490 --> 00:03:05,240 a source of the logo that we had just imported we can go ahead and make this these self closing tag 30 00:03:05,540 --> 00:03:08,420 and you can see I've got a notification here. 31 00:03:08,420 --> 00:03:13,540 The image elements must have an old prop so we want to go ahead and add an old. 32 00:03:13,580 --> 00:03:16,790 And we'll just do company logo. 33 00:03:16,790 --> 00:03:24,950 And that just says whenever the image doesn't load or say on screen reader devices for people with visual 34 00:03:24,950 --> 00:03:29,630 impairments it will read that text where the picture would be. 35 00:03:29,630 --> 00:03:36,440 So you always want to make sure to provide the all tags in your images to help improve your accessibility 36 00:03:36,440 --> 00:03:38,790 for all users. 37 00:03:38,800 --> 00:03:39,130 All right. 38 00:03:39,160 --> 00:03:43,550 So we'll see how far that gets us and go ahead and save. 39 00:03:43,660 --> 00:03:46,340 And then you'll see the browser window refresh. 40 00:03:46,420 --> 00:03:51,050 And there you can see our beautiful logo has appeared. 41 00:03:51,110 --> 00:03:57,440 Now it's already looking like a more professional real application but you'll notice of course a few 42 00:03:57,440 --> 00:04:04,190 things right off the bat first and most obviously is that we do have this little gap here on the left 43 00:04:04,190 --> 00:04:08,900 side of our logo that we'll have to fix and I'll show you why that is happening. 44 00:04:09,080 --> 00:04:16,090 And then you'll also notice that our little hello is now covered up again so to take a look at why we 45 00:04:16,090 --> 00:04:17,650 have this little gap right here. 46 00:04:17,680 --> 00:04:20,940 Let's go over and inspect our elements. 47 00:04:21,040 --> 00:04:29,310 And if you come over to the body and then open up our div and then here is our header right here. 48 00:04:29,310 --> 00:04:30,460 So we'll open that. 49 00:04:31,000 --> 00:04:36,430 And then you can see this is the div actually containing our toolbar. 50 00:04:36,430 --> 00:04:44,130 And if we go ahead and click on that we can now see that the toolbar actually has a padding of twenty 51 00:04:44,130 --> 00:04:48,680 four pixels on both the left and the right sides. 52 00:04:48,700 --> 00:04:54,670 You can see that here in the box and then it highlights up in the corners you can see on the header 53 00:04:54,670 --> 00:05:01,780 in the left and right corners the slightly green boxes and that is the padding that's coming from the 54 00:05:01,780 --> 00:05:08,200 toolbar that padding is what is pushing our logo in and off the edge. 55 00:05:08,380 --> 00:05:16,170 And so obviously to get the look that we are going for we want to go ahead and remove this padding now 56 00:05:16,170 --> 00:05:23,640 instead of actually trying to provide a style to the image or to the toolbar that either removes the 57 00:05:23,640 --> 00:05:31,350 padding or moves the image one way or another to cover up the gap material UI actually provides a really 58 00:05:31,350 --> 00:05:38,710 easy way for us to do this though if we just come over to our toolbar component here in the code editor 59 00:05:39,010 --> 00:05:49,180 and we add the prop disable gutters and we could add an equals and then our brackets and true but if 60 00:05:49,180 --> 00:05:54,810 you actually leave off the true that is what it will just default to. 61 00:05:54,820 --> 00:06:03,480 So we can go ahead and just leave it as disabled gutters and go ahead and hit save and you can see voilà 62 00:06:03,750 --> 00:06:12,010 Our logo is now perfectly flush all over to the left side and to the bottom of the app bar now and there's 63 00:06:12,010 --> 00:06:14,230 still a couple things to clean up. 64 00:06:14,260 --> 00:06:20,160 And the first is that this logo is actually a little bit smaller than I would like. 65 00:06:20,160 --> 00:06:26,020 I wanted to be a little bit bigger so it catches the attention of the users a little bit more. 66 00:06:26,070 --> 00:06:34,010 And so to do that we're gonna go ahead and set a height on our image we'll do that by adding a class 67 00:06:34,130 --> 00:06:47,060 name to our image of classes dot logo and then we'll come up to our styles object and add the logo style 68 00:06:48,130 --> 00:06:48,570 here. 69 00:06:48,580 --> 00:06:55,570 Like I said I just want to set a height on our image and we're going to set that with a responsive unit 70 00:06:55,870 --> 00:06:58,150 and we're going to do a 7 am. 71 00:06:58,270 --> 00:07:01,800 So let's go ahead and save that and see how that works. 72 00:07:01,870 --> 00:07:09,130 And now you can see that is much bigger nicer more full kind of more attention grabbing on the screen 73 00:07:09,370 --> 00:07:13,720 and that is really the size and look I think I was going for. 74 00:07:13,930 --> 00:07:21,110 Now that looks really good but we still have the one problem where our hello is now still covered up. 75 00:07:21,430 --> 00:07:29,320 If you think back to how we solved that problem and how we used the theme dot Maxine's dot toolbar it 76 00:07:29,320 --> 00:07:37,950 applied a minimum height to the toolbar which pushed our content out from underneath it however we've 77 00:07:38,010 --> 00:07:46,770 now changed the height of our toolbar with the addition of the logo but that extra minimum height margin 78 00:07:46,770 --> 00:07:54,690 is set on this div right here is still the same height as the previous default toolbar and so that's 79 00:07:54,690 --> 00:08:00,310 why it's not pushing the content out far enough to cover the new height. 80 00:08:00,330 --> 00:08:07,890 So what we need to do then is to go in and add a little bit of extra height to that margin and get the 81 00:08:07,890 --> 00:08:11,070 content to pop back out again. 82 00:08:11,070 --> 00:08:18,360 So to add that a little bit of extra high let's go up to our toolbar margin class and we'll just add 83 00:08:18,360 --> 00:08:27,360 a little extra margin bottom of three M to offset the extra height that we added with the responsive 84 00:08:27,390 --> 00:08:30,210 units on the logo. 85 00:08:30,210 --> 00:08:37,290 If we go ahead and save that we can go see in the browser that that then pushes our hello out from underneath 86 00:08:37,410 --> 00:08:39,050 the header. 87 00:08:39,220 --> 00:08:46,270 With that in place it looks like we have properly put our logo in the header and made sure that the 88 00:08:46,300 --> 00:08:50,810 content is still going to be displayed in the right place underneath. 89 00:08:50,830 --> 00:08:57,170 And now we can start moving on to setting up the rest of the header before we do that though. 90 00:08:57,310 --> 00:09:03,590 I did want to mention that if you're seeing this error here in the console that is totally OK and we're 91 00:09:03,640 --> 00:09:07,150 actually going to take care of that real quick in the next video. 10608

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