All language subtitles for 18. Using Buttons

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,880 --> 00:00:08,620 Here we are at the code editor and back with my split screen so that we can watch our changes and we're 2 00:00:08,620 --> 00:00:17,730 going to be adding the orange estimate button up in the top right corner of our header if you don't 3 00:00:17,730 --> 00:00:20,600 remember exactly what that looks like. 4 00:00:20,610 --> 00:00:24,270 Go ahead and take a look at the design file real quick. 5 00:00:24,510 --> 00:00:26,880 But we're just going to jump on into it. 6 00:00:27,980 --> 00:00:36,410 We'll start by coming up to the top and underneath our tab we're going to import the button from ad 7 00:00:36,800 --> 00:00:37,790 material. 8 00:00:37,930 --> 00:00:42,260 Dash UI sized core slash button. 9 00:00:42,290 --> 00:00:51,620 Next we're going to come down and underneath our tabs but inside of the toolbar we are going to place 10 00:00:51,650 --> 00:00:59,860 the button that we just imported so let's create a button and we'll open it up like this. 11 00:00:59,860 --> 00:01:08,290 And inside we know we want the text free estimate just like that if we go ahead and save this and make 12 00:01:08,290 --> 00:01:10,710 sure your development server is still running. 13 00:01:10,720 --> 00:01:15,600 And I think mine is but I need to go ahead and refresh the page and yup. 14 00:01:15,610 --> 00:01:21,640 Now you can see we have a text button that says Free Estimate. 15 00:01:21,670 --> 00:01:25,070 Now we know that we don't just want this basic text. 16 00:01:25,070 --> 00:01:33,500 So if you remember we can go ahead and set the variant property on our button and the orange button 17 00:01:33,530 --> 00:01:37,100 that we want to create has an orange fill. 18 00:01:37,100 --> 00:01:42,920 So that means we're going to want to use the contained variant. 19 00:01:42,920 --> 00:01:47,150 If we go ahead and save that you can see the page refresh. 20 00:01:47,150 --> 00:01:52,940 And now we've got the gray fill in the drop shadow around our button. 21 00:01:53,070 --> 00:01:56,420 We definitely don't want it to be that gray color though. 22 00:01:56,460 --> 00:02:05,820 And so if we add a color property and we can actually set that to the secondary color because in the 23 00:02:05,850 --> 00:02:12,540 theme we have already set up our primary and secondary colors which will give us this orange. 24 00:02:12,540 --> 00:02:19,530 So if we go ahead and save the file we see that our button is now updated with our secondary orange 25 00:02:19,590 --> 00:02:21,100 color. 26 00:02:21,170 --> 00:02:27,620 You can see how easy a lot of this stuff starts to become when you properly set up and use the systems 27 00:02:27,650 --> 00:02:30,990 that material UI provides to you. 28 00:02:31,120 --> 00:02:38,560 We have our basic styles set in so now we're going to further customize the button by giving it a class 29 00:02:38,620 --> 00:02:43,800 name equal to classes dot button. 30 00:02:43,810 --> 00:02:50,620 We're just going to give it the button name and then up here in our styles object we're going to create 31 00:02:50,680 --> 00:02:58,200 our button style the first thing that I want to change about the button is I actually want those corners 32 00:02:58,200 --> 00:03:00,540 to be a lot more rounded. 33 00:03:00,540 --> 00:03:02,960 You can see in the design file there. 34 00:03:02,970 --> 00:03:09,630 I actually have it as a completely elliptical button and so we're going to round those corners completely 35 00:03:09,630 --> 00:03:21,030 out using a border radius of 50 pixels if we go ahead and save that then we'll see the page update. 36 00:03:21,080 --> 00:03:28,690 And now we've got those perfectly rounded asides here like I was wanting the next problem for the button 37 00:03:28,960 --> 00:03:35,110 is the fact that you see it's sitting all the way against this right edge and it's scooted pretty close 38 00:03:35,110 --> 00:03:38,350 up to the Contact Us tab as well. 39 00:03:38,410 --> 00:03:43,320 And I kind of just want to give it a little more spacing on both of those sides. 40 00:03:43,450 --> 00:03:47,100 So let's give it a margin left of. 41 00:03:47,110 --> 00:03:51,600 Also 50 pixels and a margin right. 42 00:03:51,690 --> 00:03:52,780 Right. 43 00:03:52,810 --> 00:03:55,160 Of just 25 pixels. 44 00:03:55,280 --> 00:04:03,300 If we go ahead and save that you'll see that gives us a nice looking spaced out even header. 45 00:04:03,340 --> 00:04:10,510 This is really coming along now and starting to look almost exactly like the header in the design file 46 00:04:10,780 --> 00:04:15,500 and we can finish it up by fixing that font inside of the button. 47 00:04:15,550 --> 00:04:20,820 First we want to give it a font family of Pacific Co. 48 00:04:20,980 --> 00:04:28,200 And that's one of the fonts that we added to the Google font style sheet link when we also added real 49 00:04:28,210 --> 00:04:30,230 way for the tabs. 50 00:04:30,310 --> 00:04:35,150 So we already have access to Pacifica so we can specify that. 51 00:04:35,200 --> 00:04:40,300 And I also already know that I want a font size of one rim. 52 00:04:40,300 --> 00:04:44,660 Again let's save that to see where we are. 53 00:04:44,660 --> 00:04:48,740 And you can see that looks pretty weird honestly. 54 00:04:49,020 --> 00:04:55,850 It doesn't definitely not work how we want it to and that's being caused by some of the default styling 55 00:04:55,880 --> 00:04:59,660 applied to the text within a button and to get rid of that. 56 00:04:59,660 --> 00:05:09,040 We're going to also give the button a text transform trans form of none. 57 00:05:09,110 --> 00:05:16,180 So if we save that now we've got a much more normal looking button. 58 00:05:16,230 --> 00:05:25,320 All right now let's flatten the button up a little bit and give it a height of 45 pixels and save that. 59 00:05:25,320 --> 00:05:31,290 And then you'll see it just gets a bit thicker around the top edges and bottom edges which I feel I 60 00:05:31,300 --> 00:05:34,370 give you a little bit more of a clickable feel. 61 00:05:34,410 --> 00:05:40,640 And lastly let's go ahead and change that font color to white. 62 00:05:40,730 --> 00:05:49,100 Now if you go ahead and compare to the design vile you will see we have perfectly and identically copied 63 00:05:49,100 --> 00:05:58,790 over and created in code the exact header that we set out to design this header looks really great. 64 00:05:58,930 --> 00:06:06,460 And it really went above and beyond any of the defaults and presets and it showed you how you can really 65 00:06:06,700 --> 00:06:14,470 really take control of a material UI components to create the perfectly crafted design that you have 66 00:06:14,470 --> 00:06:16,200 envisioned. 67 00:06:16,380 --> 00:06:23,490 We're gonna do one real quick last thing here before we go and we're going to go ahead and take some 68 00:06:23,490 --> 00:06:31,080 of these styles out of the button again and just move them up to the theme so that we can reuse them 69 00:06:31,110 --> 00:06:34,100 later on in our application. 70 00:06:34,180 --> 00:06:40,140 We'll take the text transform the font size and the font family. 71 00:06:40,330 --> 00:06:48,250 Go ahead and cut those and then we'll head over to the theme dot J.S. file and here under typography 72 00:06:48,490 --> 00:06:56,800 we're going to underneath the tab object create a another object and call this estimate and open that 73 00:06:56,800 --> 00:07:04,870 up and then we're going to paste those styles along with a color of white because we didn't end up grabbing 74 00:07:04,870 --> 00:07:06,090 that from the last one. 75 00:07:06,130 --> 00:07:12,520 So we'll go ahead and save that save our theme and then we'll come back to the header and we can get 76 00:07:12,520 --> 00:07:18,570 rid of the color white down there which we just specified and then we'll get rid of this extra lime. 77 00:07:19,090 --> 00:07:30,810 And now we can extend the theme dots typography dot estimate and now we should be able to save. 78 00:07:30,920 --> 00:07:35,690 And we will still have all of these styles for our estimate button. 79 00:07:35,720 --> 00:07:41,780 I hope that you guys are really proud of yourselves for getting to this point already because we really 80 00:07:41,780 --> 00:07:48,350 have already made a great start to creating our full scale production application and it's really off 81 00:07:48,350 --> 00:07:49,930 to a great looking start. 82 00:07:49,940 --> 00:07:57,260 So let's go ahead and continue with this and start adding some functionality to our great looking design 83 00:07:57,560 --> 00:07:58,850 in the next video. 9074

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