All language subtitles for 3. Using TextFields - Setup

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 Download
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:01,110 --> 00:00:07,350 Now that we're familiar with the text field component we can go ahead and start setting up our contact 2 00:00:07,350 --> 00:00:08,690 page. 3 00:00:08,700 --> 00:00:14,490 We've already gone over the screenshot for how we're going to structure that in the section 7 intro 4 00:00:14,490 --> 00:00:15,270 video. 5 00:00:15,270 --> 00:00:18,550 So now we'll just jump over to the code editor and get started. 6 00:00:20,810 --> 00:00:27,740 We'll start off by building up the contact page and getting all of the content on the screen and then 7 00:00:27,740 --> 00:00:32,960 we'll go ahead and start styling it and adding functionality in the later videos. 8 00:00:32,960 --> 00:00:38,600 But this one we're just going to get the page itself set up so let's go ahead and in our components 9 00:00:38,600 --> 00:00:46,070 folder let's add a new file and we'll call this our contact dot J.S. and we can just go right now to 10 00:00:46,070 --> 00:00:55,250 abduct J.S. and let's already just import contact from dot slash contact and then scroll down to our 11 00:00:55,250 --> 00:00:56,450 dummy component. 12 00:00:56,470 --> 00:01:02,810 Well let's copy the render prompt from another route and replace the component prop for contact us with 13 00:01:02,810 --> 00:01:09,580 that render prop and change about to contact so we can go ahead and save that and the page will be ready 14 00:01:09,580 --> 00:01:15,310 and wired up with our props once we're ready to go but now we can come to our contact dot J.S. file 15 00:01:15,520 --> 00:01:30,660 and let's import react or import link from react router dong and then we'll import make styles and use 16 00:01:31,020 --> 00:01:40,530 theme from a material dash UI slash core slash styles and then we'll import the grid from app material 17 00:01:40,530 --> 00:01:46,140 dash UI slash core slash grid import typography 18 00:01:50,550 --> 00:01:52,290 we can import the button 19 00:01:56,880 --> 00:02:04,950 and then lastly we'll need to import our new text field component from app material dash UI slash core 20 00:02:05,160 --> 00:02:16,190 slash text field we can then come down and export default our function of contact and then open that 21 00:02:16,190 --> 00:02:24,680 up and we'll come up here to create our constant of use styles set to make styles function called with 22 00:02:24,680 --> 00:02:33,180 the theme we'll turn our object and then now in our function we can create our constant classes equals 23 00:02:33,300 --> 00:02:35,240 use styles. 24 00:02:35,640 --> 00:02:38,450 Constant theme use theme. 25 00:02:38,490 --> 00:02:46,380 And now we can return a grid container direction of row. 26 00:02:46,380 --> 00:02:51,840 Remember this is going to be different than all the other pages that are a wrapping container a direction 27 00:02:51,870 --> 00:02:52,980 of column. 28 00:02:52,980 --> 00:02:58,800 Because this is going to have that horizontal layout inside of this container. 29 00:02:58,800 --> 00:03:06,620 Direction row will have a grid item container direction of column. 30 00:03:06,830 --> 00:03:08,830 We'll open that and then adjacent to that. 31 00:03:08,850 --> 00:03:17,960 Let's add a grid item container and we'll open that up as well inside of this grid item container direction 32 00:03:18,020 --> 00:03:19,240 of column. 33 00:03:19,250 --> 00:03:23,090 This is where we'll have our form and the contact information. 34 00:03:23,090 --> 00:03:32,660 So the first grid item within this container is going to wrap a typography variant of H two and this 35 00:03:32,660 --> 00:03:34,420 is going to be for our title. 36 00:03:34,430 --> 00:03:43,730 Contact us and then down underneath this typography component let's add a typography variant body one 37 00:03:43,970 --> 00:03:45,620 and this will be for our text. 38 00:03:45,620 --> 00:03:53,500 We're waiting let's go ahead and save that and I'm gonna go ahead and refresh my page my server should 39 00:03:53,500 --> 00:03:59,200 be restarted and I can come over to the Contact Us page and here you see our text. 40 00:03:59,200 --> 00:04:04,870 And real quick I want to change a few things because in the design file this text is actually going 41 00:04:04,870 --> 00:04:05,970 to be blue. 42 00:04:06,010 --> 00:04:16,150 So on the typography variant body one what's add a style of color is our theme dot palette dot common 43 00:04:16,330 --> 00:04:21,430 dot blue and then you see how there's the spacing in between these two lines. 44 00:04:21,460 --> 00:04:25,730 Let's go ahead and on the Contact Us typography variant H2. 45 00:04:25,840 --> 00:04:30,610 Let's add a style here of line height of just one. 46 00:04:30,790 --> 00:04:38,480 And so that'll reduce the line height here given by the H2 component or actually the HDL element H2. 47 00:04:38,530 --> 00:04:41,440 So we can save this and that'll refresh. 48 00:04:41,440 --> 00:04:43,690 And now that text is the correct color. 49 00:04:43,870 --> 00:04:47,930 And those are a little bit closer together now. 50 00:04:47,960 --> 00:04:53,800 Let's go ahead and we're going to set that background for the call to action here on this page. 51 00:04:53,810 --> 00:05:03,650 So what's come up and underneath the text field import let's import our background from asset's background 52 00:05:04,080 --> 00:05:11,510 JPEG and then let's actually come over to the landing page and here at the top in our styles where we 53 00:05:11,510 --> 00:05:18,500 have the revolution background style let's go ahead and copy all of those styles and then we'll flip 54 00:05:18,500 --> 00:05:20,910 over back to the contact us page. 55 00:05:20,960 --> 00:05:25,160 Contact dot J.S. and inside of our styles object. 56 00:05:25,160 --> 00:05:31,610 Let's open this back up and let's create the background style and we'll open that up and paste in the 57 00:05:31,610 --> 00:05:37,850 styles that we had just copied but change revolution background to background and then we're going to 58 00:05:37,880 --> 00:05:44,550 take off the width we won't need that and then we can set in height here of 60 m. 59 00:05:44,600 --> 00:05:50,090 So that will set a responsive height on our background to make sure that is the size that we're wanting 60 00:05:50,090 --> 00:05:52,990 it and to see this appear on the page now. 61 00:05:53,150 --> 00:06:01,200 Let's come down to the grid item container that is empty and we'll add the class name of classes dot 62 00:06:01,220 --> 00:06:08,880 background and let's save this now to see the page refresh and our background icon is on the screen. 63 00:06:09,010 --> 00:06:16,070 Now the obvious problem here is that the text is sitting above the image instead of to the left of it. 64 00:06:16,090 --> 00:06:21,370 They should actually be sharing this line sharing the horizontal space instead of sitting on their own 65 00:06:21,370 --> 00:06:22,190 lines. 66 00:06:22,270 --> 00:06:28,660 And if that sounds familiar that's because we're going to be using our familiar large props. 67 00:06:28,690 --> 00:06:35,220 So on the grid item container direction column and the large prop and where we just added the classes 68 00:06:35,230 --> 00:06:42,080 class name of background we'll give it a large prop as well if we save this. 69 00:06:42,080 --> 00:06:43,710 We'll see the page refresh. 70 00:06:43,850 --> 00:06:46,840 And now they're sharing the space equally. 71 00:06:46,880 --> 00:06:51,560 So they are sitting on the same line but they're splitting it in half. 72 00:06:51,560 --> 00:06:55,220 OK well we actually we don't really want it to be split in half. 73 00:06:55,220 --> 00:07:00,470 If you look at the design file it's actually more of extending all the way over to here. 74 00:07:00,560 --> 00:07:07,600 The image actually has a lot more space than the Contact Us form space does. 75 00:07:07,610 --> 00:07:15,710 So what we can do is instead of leaving the large prop at the default or of auto so just letting it 76 00:07:15,770 --> 00:07:21,590 choose automatically to share the space evenly let's go ahead and on the large prop for our grid item 77 00:07:21,590 --> 00:07:23,840 container direction of column. 78 00:07:23,870 --> 00:07:29,860 Let's add the number three and then we'll come down and on the large prop for our background. 79 00:07:29,960 --> 00:07:38,180 Let's add the number nine this is now going to tell the background item container to take up nine columns 80 00:07:38,210 --> 00:07:44,930 worth of space while the contact us section will only take up three columns of space giving this section 81 00:07:44,930 --> 00:07:51,200 just a quarter of the space available and giving three quarters of the available space over to our background 82 00:07:51,230 --> 00:07:55,410 instead of right now where it is essentially six and six. 83 00:07:55,430 --> 00:07:56,590 It's half and half. 84 00:07:56,600 --> 00:08:01,520 So if I go ahead and I increase the screen size you'll be able to see this a little bit better if I 85 00:08:01,520 --> 00:08:02,210 go ahead. 86 00:08:02,210 --> 00:08:05,090 You see there now perfectly split in half. 87 00:08:05,180 --> 00:08:08,510 And if I go and save the file we'll see it jump. 88 00:08:08,630 --> 00:08:15,050 And now our image is taking up three quarters of the space available to it leaving just the one quarter 89 00:08:15,050 --> 00:08:19,240 left that we needed for our contact us section. 90 00:08:19,280 --> 00:08:23,720 I'll go ahead and shrink that back down to size where I can see the editor. 91 00:08:23,720 --> 00:08:28,580 And now we can go ahead and keep building out the Contact Us form section. 10108

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