1 00:00:04,510 --> 00:00:07,660 Hello everyone and welcome back to our bootstrapped course. 2 00:00:07,780 --> 00:00:12,610 In this lecture we're going to be setting up the device for our pricing header and our container which 3 00:00:12,610 --> 00:00:16,330 will contain the pricing options for this product. 4 00:00:16,330 --> 00:00:22,120 So right now our div has the class pricing header which is a bootstrap class and we can add in more 5 00:00:22,120 --> 00:00:27,850 classes like for padding and margin later on if we see that we need more padding and margin for our 6 00:00:27,850 --> 00:00:29,110 design. 7 00:00:29,110 --> 00:00:36,730 But we can also add instilling to the class tech center which will center the text in this div and inside 8 00:00:36,730 --> 00:00:40,270 of the header we want to add text that will be a header. 9 00:00:40,270 --> 00:00:45,240 So we're going to add each to element which is header too. 10 00:00:45,280 --> 00:00:46,410 We already have an H1. 11 00:00:46,420 --> 00:00:52,630 So the next option would be each two and each two is different from each one in that it is a bit smaller 12 00:00:53,380 --> 00:00:55,720 in terms of size a bit less. 13 00:00:55,750 --> 00:01:00,710 And in terms of importance and it can be used multiple times. 14 00:01:00,730 --> 00:01:03,720 So you can use an H2 for multiple elements. 15 00:01:04,090 --> 00:01:11,290 So we're also going to give this V bootstrap class of display 4 which will make the H to a bit bigger 16 00:01:11,290 --> 00:01:18,460 in size display for is a sizing class and we have to close off that each to tag. 17 00:01:18,490 --> 00:01:24,280 And in here we're going to put in the text we want to be styled as a header too which is just pricing 18 00:01:24,940 --> 00:01:30,970 and below this pricing header we're going to actually set pricing options in our container here that 19 00:01:30,970 --> 00:01:31,870 we have. 20 00:01:31,890 --> 00:01:38,050 So we have a div there's a container in the container we're going to put in a card deck a card deck 21 00:01:38,080 --> 00:01:45,970 is a bootstrap class you can use to make a card effect and this is often used for pricing schemas because 22 00:01:46,180 --> 00:01:54,130 it has a nice efficient styling that is commonly recognized as a pricing model information and you'll 23 00:01:54,130 --> 00:01:56,830 see how this looks like when we test it in the output. 24 00:01:56,830 --> 00:02:01,810 So let's go ahead and actually make it by making a div and giving it to the bootstrap class card deck 25 00:02:02,260 --> 00:02:07,810 as well we can add something like a board of three and essentially text with text center and you can 26 00:02:07,810 --> 00:02:15,250 add margin on the left and right to the maximum five and padding to the left and right to the maximum 27 00:02:15,340 --> 00:02:16,770 five as well. 28 00:02:16,840 --> 00:02:18,810 This will actually create quite a lot of padding. 29 00:02:18,820 --> 00:02:23,260 So you might want to make this smaller depending on if you're using mobile. 30 00:02:23,260 --> 00:02:25,660 So 5 would be good for a Web site. 31 00:02:25,720 --> 00:02:30,820 One would be better for mobile because mobile requires less padding and margin on the left and right 32 00:02:30,820 --> 00:02:31,440 typically. 33 00:02:31,930 --> 00:02:37,960 So we can change this as we test it both can leave it as one for now and make sure you go ahead and 34 00:02:37,960 --> 00:02:40,000 close off that device so you don't forget. 35 00:02:40,210 --> 00:02:40,420 OK. 36 00:02:40,420 --> 00:02:46,480 So now we have a div with a card deck and in the card deck we're going to put in cards. 37 00:02:46,480 --> 00:02:53,260 So let's make another div and this will be of class card and this will make one card each card will 38 00:02:53,260 --> 00:02:55,330 contain one pricing option. 39 00:02:55,330 --> 00:03:01,840 Now you can add multiple pricing options typically fewer pricing options are easier for the customer 40 00:03:01,840 --> 00:03:05,400 to understand and choose through that are better for user friendliness. 41 00:03:05,920 --> 00:03:12,700 But if you wanted to add multiple pricing options like monthly or yearly subscriptions or a sale versus 42 00:03:12,700 --> 00:03:16,750 a regular price then you could make a card deg with multiple cards. 43 00:03:16,750 --> 00:03:24,500 Let's build one card from now and we're going to give it a shadow effect with shadow S.M. for shadow 44 00:03:24,500 --> 00:03:25,860 small. 45 00:03:25,900 --> 00:03:28,490 This will give it a shadow colour. 46 00:03:28,560 --> 00:03:31,150 And let's go ahead and close that div immediately. 47 00:03:31,150 --> 00:03:34,430 Now Andy Card we're going to need two things. 48 00:03:34,510 --> 00:03:37,230 We're going to need a card header and a card body. 49 00:03:37,240 --> 00:03:43,900 So these will be styled differently because one is a header and one is a body and they are both bootstrap 50 00:03:43,900 --> 00:03:44,710 classes. 51 00:03:44,720 --> 00:03:48,310 So let's make a div with the class card header just like this. 52 00:03:48,310 --> 00:03:54,820 And let's close that off and right below that let's immediately go ahead and make the div class div 53 00:03:54,850 --> 00:03:59,230 class card body and we can go ahead and close it off as well. 54 00:03:59,240 --> 00:04:04,240 And in here we're going to put in information about the pricing of the product. 55 00:04:04,240 --> 00:04:11,740 So we're gonna start off with a card header and in here we can put in a header like in each three and 56 00:04:11,740 --> 00:04:19,820 give it the class of any styling we wanted to add if we did want to add we could added margin y the 57 00:04:19,840 --> 00:04:22,690 font weight or we can just leave it as is. 58 00:04:22,690 --> 00:04:24,320 So we're gonna have an h three. 59 00:04:24,370 --> 00:04:30,070 Let's go ahead and close off that each three again slightly smaller and slightly less important for 60 00:04:30,070 --> 00:04:33,030 a CEO and Page structure than an H two. 61 00:04:33,130 --> 00:04:38,480 We're going to give this a total such as sale. 62 00:04:38,500 --> 00:04:42,550 So perhaps this will be the header for a card of a sale price. 63 00:04:42,550 --> 00:04:42,780 Okay. 64 00:04:42,820 --> 00:04:48,250 So now that is all we need for the header of the card in the body will be some information about the 65 00:04:48,250 --> 00:04:50,980 product and about the discount. 66 00:04:51,010 --> 00:05:01,750 So in the card body we're going to add in and none other H3 and this H3 is going to show the title of 67 00:05:01,750 --> 00:05:05,010 the card so let's close off at age 3 immediately. 68 00:05:05,010 --> 00:05:13,020 Okay so in the H three we're going to put in a title so we're going to make this h three to be of class 69 00:05:13,890 --> 00:05:16,800 card title and pricing. 70 00:05:16,800 --> 00:05:23,040 Card title these are bootstrap classes that will style this title to be a card title and also a pricing 71 00:05:23,040 --> 00:05:30,060 card because again pricing cards are commonly made using these card classes. 72 00:05:30,060 --> 00:05:30,570 Okay great. 73 00:05:30,570 --> 00:05:38,250 So in here we're going to put in the text of the title so we're gonna have some text that will say forty 74 00:05:38,250 --> 00:05:44,760 nine ninety nine the price of the item and then below that we can put in the regular price of the item 75 00:05:45,150 --> 00:05:54,630 because this is the sale card so you can make a small text item by using the helmet small and we can 76 00:05:54,630 --> 00:06:00,350 make the class text muted which is a bootstrap class that will make the text a muted colour. 77 00:06:01,410 --> 00:06:06,990 And let's go ahead and close off that small tag and in here we're going to put in the text regularly 78 00:06:07,310 --> 00:06:11,320 forty nine four hundred ninety nine point ninety nine. 79 00:06:12,400 --> 00:06:12,960 Okay great. 80 00:06:12,960 --> 00:06:20,310 So you'll see this typically on product pages the sale price compared with the regular price. 81 00:06:20,310 --> 00:06:20,940 Okay great. 82 00:06:21,210 --> 00:06:28,110 So now we have a card title we can also add some information about the product into the card body and 83 00:06:28,110 --> 00:06:34,320 to do that we're going to go ahead and open up an unordered list now we can close off this H3 tag we 84 00:06:34,320 --> 00:06:40,050 don't need anything else in there and let's make an unordered list with the U L tag and we're going 85 00:06:40,050 --> 00:06:47,160 to make this if the class list on styled which is another bootstrap class and we can go ahead and close 86 00:06:47,160 --> 00:06:49,470 off the unordered list immediately. 87 00:06:49,470 --> 00:06:52,360 And of course in every list we need a list item. 88 00:06:52,410 --> 00:06:58,310 So it's put in some information about the product into each list items such as lifetime access. 89 00:06:58,310 --> 00:07:02,040 You can also add another list item that says certificate of completion. 90 00:07:02,040 --> 00:07:06,230 So this is where you will put in features about the product you're trying to promote. 91 00:07:06,470 --> 00:07:06,980 Okay. 92 00:07:07,030 --> 00:07:15,390 Ally project based curriculum you would put in all the highlights in here and you can put something 93 00:07:15,390 --> 00:07:17,370 like thousand copies sold. 94 00:07:17,490 --> 00:07:22,830 So you want to put in all of the selling points of why people should buy the product here in the pricing 95 00:07:23,160 --> 00:07:24,410 card body. 96 00:07:24,510 --> 00:07:24,780 Okay. 97 00:07:24,780 --> 00:07:29,910 And right below that unordered list we're still in the card body we can go ahead and added button that 98 00:07:29,910 --> 00:07:32,200 will bring the user to the checkout. 99 00:07:32,340 --> 00:07:34,780 So this will scroll them right down to the checkout. 100 00:07:34,850 --> 00:07:41,460 So let's go ahead and add a button we make it with the button element this time and we're going to make 101 00:07:41,460 --> 00:07:42,600 it up type button. 102 00:07:42,600 --> 00:07:47,910 So this is different from what we've done previously making an anchor tag inside of a paragraph tag 103 00:07:48,360 --> 00:07:50,100 but this is another way that you can make a button. 104 00:07:50,100 --> 00:07:56,940 It's good to know different ways we're gonna make it a class button of the bootstrap class button and 105 00:07:57,000 --> 00:08:01,300 we can make it a button large this is also a bootstrap class. 106 00:08:01,350 --> 00:08:06,270 Also make it a class and button block and button outline primary. 107 00:08:06,290 --> 00:08:13,170 So this will start early buttons some more but making a block and outlining it in the primary color 108 00:08:13,220 --> 00:08:15,320 that bootstrap chooses. 109 00:08:15,330 --> 00:08:16,020 Okay great. 110 00:08:16,020 --> 00:08:20,190 And we can also add padding later if we wanted to but we can start with a template like this. 111 00:08:20,190 --> 00:08:22,390 We can go ahead and add more texture. 112 00:08:22,410 --> 00:08:26,380 That's something like by now. 113 00:08:26,400 --> 00:08:29,340 So this button will scroll the user down to the checkout. 114 00:08:30,300 --> 00:08:34,710 Excellent so that is all that we need for the setup of our card. 115 00:08:34,710 --> 00:08:40,620 Right now we have a card deck and a card header a card title and a button. 116 00:08:40,620 --> 00:08:45,490 Let's go ahead and test how this looks and we can add more styling as needed using Bootstrap classes. 117 00:08:45,900 --> 00:08:46,180 Okay. 118 00:08:46,200 --> 00:08:52,470 So I'm going to go ahead and open up the output and I can see I have now have a pricing header as well 119 00:08:52,470 --> 00:08:58,730 as a card here which is containing a title and an unsolved list as well as this button. 120 00:08:58,920 --> 00:09:03,830 This button is different from the first button we have because this is transparent with an outline. 121 00:09:03,840 --> 00:09:05,430 Then when you have over it it becomes blue. 122 00:09:05,850 --> 00:09:07,160 So it's a bit of a different effect. 123 00:09:07,170 --> 00:09:12,390 And when you click on this we don't go anywhere but we're gonna make more pages below that will scroll 124 00:09:12,390 --> 00:09:14,710 down to upon the click of this button. 125 00:09:14,700 --> 00:09:15,160 Okay. 126 00:09:16,410 --> 00:09:20,110 So now that is what we have set up here. 127 00:09:20,310 --> 00:09:23,130 The margin looks fine on the large screen. 128 00:09:23,150 --> 00:09:29,940 However when you look at it on a smaller screen we need to magnify the margins we need to reduce the 129 00:09:29,940 --> 00:09:32,850 margin and the text size from Mobile. 130 00:09:33,000 --> 00:09:36,840 And we're gonna go ahead and fix that in the upcoming lectures. 131 00:09:36,840 --> 00:09:42,490 But for now we have the basic structure set up for our pricing card. 132 00:09:42,510 --> 00:09:45,960 As you can see this bootstrap card was made for us immediately. 133 00:09:45,960 --> 00:09:51,560 We didn't have to do any styling ourselves and see SS for this card it was all done for us in bootstrap 134 00:09:51,600 --> 00:09:56,970 so highly convenient and you can see this text is muted with this dark gray color. 135 00:09:57,010 --> 00:09:57,220 OK. 136 00:09:57,300 --> 00:09:59,240 Oh and the forty nine ninety nine is white. 137 00:09:59,250 --> 00:10:06,390 So we're gonna have to go ahead and change that to a black color by using text dark so we can go ahead 138 00:10:06,390 --> 00:10:09,550 and fix the styling in the next lectures. 139 00:10:09,580 --> 00:10:10,110 Other than that. 140 00:10:10,110 --> 00:10:12,810 Thank you all for watching and we will see you in the next lecture.