1 00:00:01,260 --> 00:00:05,560 Now what I'm going to do is that I'm going to work on the single product page. 2 00:00:06,120 --> 00:00:11,100 So if you if you click on one of these products, nothing is going to happen. 3 00:00:11,550 --> 00:00:13,300 And of course, we don't want that. 4 00:00:13,320 --> 00:00:14,490 We want to display. 5 00:00:14,880 --> 00:00:17,250 If a user clicks on a product. 6 00:00:17,490 --> 00:00:23,820 We want to display a product, the product in a single page and display information about that product 7 00:00:24,300 --> 00:00:27,060 and how to add that product to that card. 8 00:00:27,060 --> 00:00:33,330 And so many different things about that specific product that the user is interested in. 9 00:00:33,510 --> 00:00:39,000 So what I'm going to do is that I'm going to open my project and then I'm going to create a new file. 10 00:00:39,390 --> 00:00:40,800 Here, I'm going to create a new file. 11 00:00:40,800 --> 00:00:45,120 I'm going to click on this icon, and then I'm going to create a new file called Single. 12 00:00:47,380 --> 00:00:47,980 Product. 13 00:00:48,940 --> 00:00:54,790 Single underscore product that hitched email and sends the single product. 14 00:00:54,790 --> 00:01:00,820 That email will have the footer and heather it will have the nav bar and and the future. 15 00:01:01,210 --> 00:01:07,150 We need to copy the future and the nav bar from from the index or from the shop. 16 00:01:07,150 --> 00:01:09,460 Let's copy, copy them from the index. 17 00:01:10,090 --> 00:01:15,700 So I'm going to open up the index and in the index here I'm going to copy, I'm going to start copying 18 00:01:15,700 --> 00:01:23,280 from the beginning here all the way to to the body first to read by and then I'm going to paste it in 19 00:01:23,290 --> 00:01:25,840 the single product that it will. 20 00:01:26,530 --> 00:01:33,340 Then we need to copy the, the lower part, which is, which is these three lines. 21 00:01:33,340 --> 00:01:36,970 I'm going to copy these three lines and then paste them here. 22 00:01:38,180 --> 00:01:39,400 I'm going to paste them here. 23 00:01:41,140 --> 00:01:44,230 You need to give yourself some space here and then peace that go with you. 24 00:01:45,000 --> 00:01:48,190 Now we need to display the navigation bar. 25 00:01:48,550 --> 00:01:53,320 So I'm going to again head on over back to the index and then I'm going to scroll. 26 00:01:54,280 --> 00:01:59,230 So I'm going to scroll up and then I'm going to close this navigation bar and then I'm going to copy 27 00:01:59,230 --> 00:02:00,270 this navigation bar. 28 00:02:00,280 --> 00:02:04,780 I'm going to copy it, and then I'm going to place it in the single product, that email, I'm going 29 00:02:04,780 --> 00:02:10,120 to base it here and then I'm going to close it one more time because we don't want to confuse ourselves. 30 00:02:11,080 --> 00:02:13,750 And then I'm going to copy the footer as well. 31 00:02:14,080 --> 00:02:19,480 So from the index, if you scroll down, you should find that we have the footer. 32 00:02:19,480 --> 00:02:26,530 So I'm going to copy the folder as well and then I'm going to place the footer below the the navigation 33 00:02:26,530 --> 00:02:26,710 bar. 34 00:02:26,710 --> 00:02:30,100 But you need to leave the space because we need to add code here. 35 00:02:30,550 --> 00:02:35,680 So I'm going to give myself some space and then I'm going to base the footer and then I'm going to close 36 00:02:35,680 --> 00:02:36,850 the filter as well. 37 00:02:36,880 --> 00:02:39,040 I'm going to glossier here, this footer. 38 00:02:39,520 --> 00:02:42,190 So now we have the navigation bar and we have the future. 39 00:02:42,670 --> 00:02:47,830 Let me click on file and then Sable, let's test that in the browser. 40 00:02:48,250 --> 00:02:54,910 So now in the browser I'm going to go to the single underscore product. 41 00:02:56,230 --> 00:02:58,660 That's G.M. And then I'm going to hit enter. 42 00:02:58,660 --> 00:03:03,820 And as you can see, we have the navigation bar as well as the footer. 43 00:03:04,890 --> 00:03:13,020 Now we need to work on the content so the content will contain a single image with all with all its 44 00:03:13,020 --> 00:03:13,620 information. 45 00:03:14,100 --> 00:03:17,700 So the design is going to be like this on the left side. 46 00:03:18,210 --> 00:03:23,310 I'm going to display the product image and on the right side, I'm going to display information about 47 00:03:23,310 --> 00:03:30,510 the products as well as a button to add to the to the to cart and the quantity and also the price, 48 00:03:30,510 --> 00:03:32,190 all of these things on the right side. 49 00:03:33,210 --> 00:03:38,100 So images will be on the left side, whereas information will be on the right side. 50 00:03:38,670 --> 00:03:40,020 So let's work on the design. 51 00:03:40,590 --> 00:03:46,650 So here in the single product that this HTML, what I'm going to do is that I'm going to click it and 52 00:03:46,650 --> 00:03:48,180 U.S. here, I'm going to say. 53 00:03:49,170 --> 00:03:50,070 Your section. 54 00:03:56,810 --> 00:03:57,530 Section. 55 00:03:58,160 --> 00:04:01,310 And then I'm going to give this section a class. 56 00:04:01,350 --> 00:04:03,260 I'm going to say here class. 57 00:04:04,190 --> 00:04:05,690 And that class is going to be. 58 00:04:08,100 --> 00:04:08,970 Single. 59 00:04:11,650 --> 00:04:12,310 Products. 60 00:04:15,030 --> 00:04:22,050 And I'm going to also give it margin Y margin top and bottom five and also margin. 61 00:04:22,320 --> 00:04:24,690 Also batting top five. 62 00:04:25,680 --> 00:04:32,600 And inside that section, we want to divide the page into two columns. 63 00:04:32,730 --> 00:04:39,870 Therefore, I'm going to say here then and then for this, Dave, I'm going to give it the raw class 64 00:04:39,870 --> 00:04:42,090 because we want to divide the page into two columns. 65 00:04:42,690 --> 00:04:47,280 And I'm going to also give this this Dave a margin top five. 66 00:04:48,450 --> 00:04:54,300 And inside this inside this, Dave, what I'm going to do is that I'm going to create another Dave I'm 67 00:04:54,300 --> 00:04:59,250 going to say here, Dave and this Dave will contain the image on the left side. 68 00:05:00,150 --> 00:05:07,350 So I'm going to at first give this Dave a class and that class is going to be column large five because 69 00:05:07,350 --> 00:05:13,250 we want it to take five out of 12 columns for large screens, for medium screens. 70 00:05:13,260 --> 00:05:18,630 I'm going to let this take six out of 12 for large for small screens. 71 00:05:19,440 --> 00:05:21,510 I'm going to give it 12 columns. 72 00:05:23,090 --> 00:05:23,600 That's it. 73 00:05:24,110 --> 00:05:26,600 Now, inside is where we want to display the image. 74 00:05:26,690 --> 00:05:27,710 So I'm going to say image. 75 00:05:28,580 --> 00:05:33,970 And then for this image, I'm going to say source and let's use one of the images that we already have. 76 00:05:33,980 --> 00:05:35,090 I'm going to say assets. 77 00:05:36,130 --> 00:05:36,790 Images. 78 00:05:37,420 --> 00:05:39,460 Let's use the feature one. 79 00:05:42,040 --> 00:05:45,310 And then I'm going to give this image a glass. 80 00:05:45,460 --> 00:05:52,120 I'm going to say here, glass first I'm going to give you the image fluid, which is going to make the 81 00:05:52,120 --> 00:05:53,950 image responsive. 82 00:05:54,730 --> 00:06:03,790 I'm going to also give it a width, 100%, 100 with 100%, so that it takes the complete parent size. 83 00:06:04,480 --> 00:06:07,320 Also, I'm going to give it padding bottom. 84 00:06:07,330 --> 00:06:07,980 I'm going to say. 85 00:06:09,350 --> 00:06:10,370 Bebe one. 86 00:06:11,030 --> 00:06:11,900 Panic button one. 87 00:06:14,860 --> 00:06:19,330 And lay me here, save and lay me here, then over to the browser and test. 88 00:06:20,020 --> 00:06:26,860 So now if I refresh, as you can see, we have this image, but we of course we need to work on it further 89 00:06:26,860 --> 00:06:28,300 because they want to display the image. 90 00:06:28,930 --> 00:06:32,290 I want to make this image smaller. 91 00:06:33,820 --> 00:06:39,970 But before we work on this, let's work on these small images because I'm going to be displaying the 92 00:06:39,970 --> 00:06:42,190 varieties of that product. 93 00:06:42,190 --> 00:06:50,800 So below this image, I'm going to display small images that represent the different varieties of that 94 00:06:50,800 --> 00:06:51,250 product. 95 00:06:52,340 --> 00:06:53,630 So below this level. 96 00:06:54,560 --> 00:07:00,620 What I'm going to do is that I'm going to create another another depth. 97 00:07:01,760 --> 00:07:04,580 But it must be inside this thing, so it must be here. 98 00:07:05,450 --> 00:07:12,110 B I am actually below the image not, not below that then because, because we want the images to be 99 00:07:12,110 --> 00:07:15,050 to be displayed below this image, not to be low of itself. 100 00:07:15,710 --> 00:07:20,870 So below the image I'm going to say Divs, and then I'm going to give this dev a class. 101 00:07:21,500 --> 00:07:28,130 And that class is going to be I'm going to name it Small Image Group. 102 00:07:29,300 --> 00:07:35,570 And for this small image group, I'm going to also get yet another dev inside it. 103 00:07:37,760 --> 00:07:47,240 And I'm going to give this image also another class called Small Image Quality, and I'm going to display 104 00:07:47,240 --> 00:07:52,680 inside it's one image I'm going to say here image and I'm going to give it to a source. 105 00:07:52,700 --> 00:07:55,130 And let's use one of the images that we already have. 106 00:07:56,060 --> 00:08:00,430 I'm going to see assets images feature to that. 107 00:08:02,030 --> 00:08:05,510 And I'm going to also give it a with I'm going to say width. 108 00:08:08,590 --> 00:08:09,850 100%. 109 00:08:11,380 --> 00:08:12,790 And I'm going to give it a glass. 110 00:08:14,250 --> 00:08:17,160 Glass walled, small. 111 00:08:18,670 --> 00:08:23,530 Image Lainey Slave Alamy heading over to the browser and test. 112 00:08:24,370 --> 00:08:28,090 So in the browser now as you can see, we will have one image. 113 00:08:28,850 --> 00:08:31,440 Now let's, let's now display other images. 114 00:08:31,460 --> 00:08:34,830 So what I'm going to do is that I'm going to copy the section of this there. 115 00:08:34,840 --> 00:08:38,190 I'm going to copy this there and I'm going to paste it four times. 116 00:08:38,200 --> 00:08:39,190 So I'm going to copy this. 117 00:08:41,050 --> 00:08:45,180 And inside the same the same there. 118 00:08:45,250 --> 00:08:46,360 We're below this. 119 00:08:46,750 --> 00:08:47,470 I'm going to base it. 120 00:08:47,470 --> 00:08:50,740 One, two, three. 121 00:08:50,740 --> 00:08:52,810 So we should have one, two, three, four. 122 00:08:52,810 --> 00:08:55,120 We should have four there like this. 123 00:08:56,410 --> 00:08:57,850 Now, let me change the images. 124 00:08:57,850 --> 00:09:04,580 So I'm going to say here featured one and they featured two and they feature three and they featured 125 00:09:04,600 --> 00:09:05,050 four. 126 00:09:05,560 --> 00:09:08,500 And then here featured, let's say let's use another image. 127 00:09:08,500 --> 00:09:11,110 Let me use the cloths. 128 00:09:11,110 --> 00:09:11,410 One. 129 00:09:12,340 --> 00:09:13,660 Lamy now save and. 130 00:09:14,990 --> 00:09:16,970 Lamy handed over to the adviser, Andy Fresh. 131 00:09:17,540 --> 00:09:19,970 And we should have now are there images? 132 00:09:19,970 --> 00:09:22,850 So we have one, two, three and four. 133 00:09:22,850 --> 00:09:24,110 So we have all of these images. 134 00:09:24,860 --> 00:09:27,650 Of course, we need to display these images below. 135 00:09:27,650 --> 00:09:35,150 In our project, we see the product that we that we want to display as as varieties of that product. 136 00:09:35,150 --> 00:09:40,460 So they must be displayed here in small containers. 137 00:09:41,060 --> 00:09:42,380 So let's work on this. 138 00:09:43,580 --> 00:09:49,970 So in order to work on this, what I'm going to do is that I'm going to create six glasses. 139 00:09:50,870 --> 00:09:56,030 Therefore, I'm going to head on over to the thesis here. 140 00:09:58,450 --> 00:09:59,050 She says. 141 00:10:00,230 --> 00:10:00,650 Style. 142 00:10:00,650 --> 00:10:02,270 Let's use something in the style. 143 00:10:02,930 --> 00:10:03,930 Let's work on this. 144 00:10:03,930 --> 00:10:07,010 So I'm going to scroll to the bottom and then let's walk on this. 145 00:10:07,520 --> 00:10:09,740 So here I'm going to say a small. 146 00:10:11,230 --> 00:10:14,010 Small Image group. 147 00:10:15,090 --> 00:10:19,180 And for this small image group, I'm going to remember this small image group is this one. 148 00:10:19,930 --> 00:10:21,040 It represents. 149 00:10:22,140 --> 00:10:26,160 It represents this small image group. 150 00:10:26,160 --> 00:10:26,840 It represents. 151 00:10:26,940 --> 00:10:30,630 It represents the device that contains all of these small images. 152 00:10:31,830 --> 00:10:36,330 So for this, we need to give it a display flex. 153 00:10:38,930 --> 00:10:47,600 Display flex and we need also to give it justify content space. 154 00:10:48,960 --> 00:10:53,370 Space between let me see even let me show you what it's going to do. 155 00:10:53,940 --> 00:11:00,350 So if I refresh now, as you can see, these images will be small, but they don't have the same sizes, 156 00:11:00,360 --> 00:11:02,130 so we need to fix their sizes. 157 00:11:02,820 --> 00:11:11,160 Therefore, I'm going to work on the other class, which is the small column, small image column, 158 00:11:11,910 --> 00:11:12,870 small image call. 159 00:11:12,900 --> 00:11:17,070 Remember here and the single product for each image. 160 00:11:17,070 --> 00:11:22,200 I have given each image a class called Small Image column. 161 00:11:23,010 --> 00:11:31,050 So here, in order to make all images have the same exact width and height, we need to say links. 162 00:11:32,390 --> 00:11:33,530 Alex basis. 163 00:11:34,920 --> 00:11:39,690 Licks basis 24% or 25. 164 00:11:41,230 --> 00:11:42,760 And let's also give it the cursor. 165 00:11:42,760 --> 00:11:43,150 Cursor. 166 00:11:43,150 --> 00:11:46,030 It means that the image is going to be clickable. 167 00:11:46,960 --> 00:11:48,250 Lamy Now save on refresh. 168 00:11:50,230 --> 00:11:55,150 And as you can see, all of the images will have the same exact width and height. 169 00:11:55,780 --> 00:12:00,140 You might find some images a little bigger than others. 170 00:12:00,160 --> 00:12:07,750 And the reason is because some images are originally gray, bigger in terms of the size than others. 171 00:12:08,080 --> 00:12:14,920 This is why I always I have always been telling you that you need to make sure that you are all of your 172 00:12:14,920 --> 00:12:18,740 images, all of your product images have the same exact size. 173 00:12:18,760 --> 00:12:24,610 Otherwise, you will, even if you try to resize them using sizes. 174 00:12:24,850 --> 00:12:28,810 So many images because they are or because they are originally small. 175 00:12:29,200 --> 00:12:29,830 They will not. 176 00:12:31,240 --> 00:12:32,050 They will not look. 177 00:12:34,630 --> 00:12:39,370 They will not fill the complete the complete container. 178 00:12:39,790 --> 00:12:42,280 This is this is the only problem that we will have.