All language subtitles for 17. Creating The Call To Action

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:01,090 --> 00:00:08,620 The last piece to finishing our home page is actually going to be a piece we'll use in multiple locations 2 00:00:08,740 --> 00:00:11,560 on the rest of the site as well. 3 00:00:11,560 --> 00:00:17,950 This is our call to action and this will be at the bottom of most pages on the site and we'll give the 4 00:00:17,950 --> 00:00:23,980 user a reminder that they can always go and get a free estimate from the calculator on the site. 5 00:00:23,980 --> 00:00:26,500 So if you don't remember what that looks like. 6 00:00:26,560 --> 00:00:33,670 Here's a screenshot and similar to the last two blogs will be using a background image put on a div 7 00:00:34,090 --> 00:00:39,910 with our grid is sitting on top of that image and we'll use that to arrange the text and the Free Estimate 8 00:00:39,910 --> 00:00:40,290 button. 9 00:00:41,350 --> 00:00:46,390 The only thing that I think I'll change with the design of this however is there won't be quite as much 10 00:00:46,390 --> 00:00:49,870 space on the left side of the text from the edge. 11 00:00:49,870 --> 00:00:55,570 We're gonna have that much closer and consistent with the bordering for the rest of the elements on 12 00:00:55,570 --> 00:00:57,750 the site so that look a lot better. 13 00:00:57,850 --> 00:01:06,020 And once we shrink this down and it's on a mobile site we're going to lay this out vertically and sensor 14 00:01:06,020 --> 00:01:09,600 it up the way we have for all the other elements as well. 15 00:01:10,550 --> 00:01:15,680 The only difference here is that we're also going to be changing the background image for these smaller 16 00:01:15,680 --> 00:01:16,580 devices. 17 00:01:16,670 --> 00:01:22,820 And I took a more vertical cut out of this picture that will look a lot better on the mobile site rather 18 00:01:22,820 --> 00:01:24,940 than trying to cram this in somehow. 19 00:01:24,980 --> 00:01:27,210 So I'll see you in the code editor to begin. 20 00:01:29,190 --> 00:01:35,190 Since the call to action is going to be used in multiple places on the site we're going to need to build 21 00:01:35,190 --> 00:01:37,140 it as its own component. 22 00:01:37,140 --> 00:01:46,860 So in the UI folder let's create a new file called Call to Action dot J.S. and we'll start with some 23 00:01:46,860 --> 00:01:48,490 of our usual imports I. 24 00:01:48,500 --> 00:01:57,090 Add a couple more to that usual list but let's go ahead and import react from react and then we'll import 25 00:01:57,150 --> 00:02:09,540 the GRID GRID from material dash UI sized core slash grid we'll import the typography components from 26 00:02:09,690 --> 00:02:23,550 material UI core typography and we'll import our Make styles hook from material UI core styles and then 27 00:02:23,550 --> 00:02:33,450 we'll come down we'll create our constant of use styles which will take our Make styles hook and give 28 00:02:33,450 --> 00:02:38,070 us access to the theme arrow function. 29 00:02:38,070 --> 00:02:41,560 But remember this needs to be wrapped with parentheses. 30 00:02:41,580 --> 00:02:48,040 So we're returning an object and we'll just leave this blank for now but then we can come down we'll 31 00:02:48,060 --> 00:02:51,030 export defaults. 32 00:02:51,110 --> 00:02:57,250 Our call to action our function. 33 00:02:57,840 --> 00:03:06,870 Function call to action get our parentheses can open this up and create are constant of classes using 34 00:03:07,080 --> 00:03:08,570 our styles. 35 00:03:08,580 --> 00:03:19,950 Now let's return a grid container open that and this is going to be our main grid container for the 36 00:03:19,950 --> 00:03:28,260 call to action and we'll leave the default direction of row set because we want the items laid out horizontally 37 00:03:28,560 --> 00:03:33,550 and then each of our items inside the container will be our text and the button. 38 00:03:33,570 --> 00:03:40,110 So the first item will also have to be a container since it will have the text some subtext and then 39 00:03:40,170 --> 00:03:45,320 the learn more button and then the second item will just be the Free Estimate button. 40 00:03:45,330 --> 00:03:54,660 So let's open this up and we'll create a grid item here and this will be for the text on the left side. 41 00:03:54,720 --> 00:03:59,310 And so in here we'll also need a grid container. 42 00:03:59,310 --> 00:04:06,030 But this time with a direction of column and so this will make sure that we're laying out our title 43 00:04:06,030 --> 00:04:09,560 subtitle and the learn more button from top to bottom. 44 00:04:09,630 --> 00:04:13,120 And so now we can create a grid item. 45 00:04:13,410 --> 00:04:23,460 Item an inside of here created to get rid of that and inside of here we can have our typography component 46 00:04:23,640 --> 00:04:37,980 but a variant of H to close that saying simple software revolutionary evolution area results and actually 47 00:04:38,280 --> 00:04:41,430 in between here I want a line break. 48 00:04:41,850 --> 00:04:47,640 So that will stack those two sentences on top of each other but we'll use the H to styling that we've 49 00:04:47,640 --> 00:04:54,640 already set up previously theming system really makes it convenient when you use the same styles for 50 00:04:54,640 --> 00:05:00,490 different headings and subtitles and all the other styles that we've used across our site without having 51 00:05:00,490 --> 00:05:02,080 to replicate any code. 52 00:05:02,080 --> 00:05:04,330 So I always just really appreciate that. 53 00:05:05,580 --> 00:05:08,000 Now under this typography component. 54 00:05:08,040 --> 00:05:16,800 Let's create another typography component using our variants subtitled two styles or open that. 55 00:05:17,040 --> 00:05:23,470 And here we'll say take advantage of the 21st century. 56 00:05:23,520 --> 00:05:26,160 So let's go ahead and save this. 57 00:05:26,160 --> 00:05:31,250 And now we need to go in our landing page and we'll come up to the top. 58 00:05:31,410 --> 00:05:42,330 And here I'm going to do it in between these assets and we'll import our call to action from this directory. 59 00:05:42,330 --> 00:05:49,190 You I slash call to action and then we can come all the way down to the bottom of the screen. 60 00:05:49,320 --> 00:05:56,610 And underneath are grid item for the information block all the way underneath that will open this up 61 00:05:56,640 --> 00:06:04,490 and add our last to grid item for the home page and we can come up and we'll actually copy this comment. 62 00:06:04,530 --> 00:06:06,990 Copy that paste our comment in there. 63 00:06:06,990 --> 00:06:17,950 Change this to the call to action and inside of here we'll simply render our call to action component. 64 00:06:18,030 --> 00:06:19,780 So what saved this. 65 00:06:19,830 --> 00:06:26,220 We'll see our page refresh and it now we've got the beginnings of our call to action at the bottom of 66 00:06:26,220 --> 00:06:33,530 the screen you can see our simple software revolutionary results as well as the text. 67 00:06:33,630 --> 00:06:37,980 The take advantage of the 21st century underneath in white. 68 00:06:37,980 --> 00:06:39,620 So we're on the right track. 69 00:06:39,660 --> 00:06:43,870 Let's keep going and get the learn more button built. 70 00:06:43,950 --> 00:06:46,370 So we'll flip back to the call to action. 71 00:06:46,450 --> 00:06:59,070 J.S. and we'll come up here and let's import the button from material UI core button and then import 72 00:06:59,070 --> 00:07:08,850 the button arrow from dot slash button arrow and then next to our Make styles import let's also grab 73 00:07:08,850 --> 00:07:11,370 the EU's theme hook. 74 00:07:11,370 --> 00:07:19,710 So now we can come under our classes and we'll create the constant theme equals a use theme to give 75 00:07:19,710 --> 00:07:22,740 us access to our theme inside the component. 76 00:07:22,740 --> 00:07:29,790 And now we can come back to the landing page and let's actually grab this the grid item and see this 77 00:07:29,790 --> 00:07:33,470 whole grid item and we'll go back to the call to action. 78 00:07:33,600 --> 00:07:41,680 J.S. and underneath are typography component we'll go ahead and paste that right in then you might notice 79 00:07:41,680 --> 00:07:44,920 that we have a grid item within a grid item. 80 00:07:44,920 --> 00:07:50,920 So let's go ahead and we can just add the container property onto there as well. 81 00:07:50,920 --> 00:07:57,700 And now we need to go ahead and grab this learn Button class from the landing page as well so that our 82 00:07:57,700 --> 00:07:59,740 button has the correct styles. 83 00:07:59,740 --> 00:08:06,310 So let's flip back to the landing page will come back up to the styles object and here's our learned 84 00:08:06,310 --> 00:08:07,690 button style. 85 00:08:07,690 --> 00:08:14,030 Let's go ahead and copy that flip back over and inside of our styles object for the call to action. 86 00:08:14,050 --> 00:08:16,890 Go ahead and paste that in. 87 00:08:17,050 --> 00:08:23,860 Let's go ahead and save this now and we'll see the page refresh and our button is actually still receiving 88 00:08:23,860 --> 00:08:30,610 the white color and border color that we had used on the about us and contact us buttons which we had 89 00:08:30,610 --> 00:08:31,790 copied this from. 90 00:08:31,810 --> 00:08:40,270 So let's go ahead and delete that style line and go ahead and get rid of that and save this and now 91 00:08:40,300 --> 00:08:46,170 we can see that we have the correct learn button below but the arrow is also white. 92 00:08:46,240 --> 00:08:57,220 So here where Phil is specifying White let's change that to our theme dot palette dot com in dot blue 93 00:08:57,360 --> 00:08:58,570 and we can save that. 94 00:08:58,780 --> 00:09:00,340 We'll see the page refresh. 95 00:09:00,340 --> 00:09:06,070 And now the word button looks better but there's still a little too much spacing right between that 96 00:09:06,190 --> 00:09:11,970 arrow it looks like let's go ahead and change that margin right to just a margin of five. 97 00:09:12,070 --> 00:09:13,140 We'll save that. 98 00:09:13,210 --> 00:09:14,950 And that looks much more appropriate. 10722

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