├── script.js ├── styles.css └── pizza.html /script.js: -------------------------------------------------------------------------------- 1 | // Navbar 2 | let menu = document.querySelector('#menu-icon'); 3 | let navbar = document.querySelector('.navbar'); 4 | 5 | menu.onclick = () => { 6 | navbar.classList.toggle('active'); 7 | } 8 | 9 | window.onscroll = () => { 10 | navbar.classList.remove('active'); 11 | } 12 | // Dark Mode 13 | let darkmode = document.querySelector('#darkmode'); 14 | 15 | darkmode.onclick = () => { 16 | if(darkmode.classList.contains('bx-moon')){ 17 | darkmode.classList.replace('bx-moon','bx-sun'); 18 | document.body.classList.add('active'); 19 | }else{ 20 | darkmode.classList.replace('bx-sun','bx-moon'); 21 | document.body.classList.remove('active'); 22 | } 23 | } 24 | 25 | // Scroll Reveal 26 | const sr = ScrollReveal ({ 27 | origin: 'top', 28 | distance: '40px', 29 | duration: 2000, 30 | reset: false 31 | }); 32 | 33 | 34 | sr.reveal(`.home-text, .home-img, 35 | .about-img, .about-text, 36 | .box, .s-box, 37 | .btn, .connect-text, 38 | .contact-box`, { 39 | interval: 200 40 | }) 41 | 42 | -------------------------------------------------------------------------------- /styles.css: -------------------------------------------------------------------------------- 1 | /* Google Fonts */ 2 | @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap"); 3 | * { 4 | margin: 0; 5 | padding: 0; 6 | font-family: "Poppins", sans-serif; 7 | box-sizing: border-box; 8 | scroll-behavior: smooth; 9 | scroll-padding-top: 2rem; 10 | list-style: none; 11 | text-decoration: none; 12 | } 13 | *::selection { 14 | background: var(--main-color); 15 | color: #fff; 16 | } 17 | :root { 18 | --main-color: #ffb411; 19 | --text-color: #1e1c2a; 20 | --bg-color: #fff; 21 | 22 | --big-font: 4rem; 23 | --h2-font: 2.24rem; 24 | --p-font: 0.9rem; 25 | } 26 | section { 27 | padding: 50px 10%; 28 | } 29 | body.active { 30 | --bg-color: #1e1c2a; 31 | --text-color: #fff; 32 | } 33 | body { 34 | color: var(--text-color); 35 | background: var(--bg-color); 36 | } 37 | #darkmode { 38 | font-size: 25px; 39 | cursor: pointer; 40 | } 41 | header { 42 | position: fixed; 43 | width: 100%; 44 | top: 0; 45 | right: 0; 46 | z-index: 1000; 47 | display: flex; 48 | align-items: center; 49 | justify-content: space-between; 50 | background: var(--bg-color); 51 | padding: 18px 100px; 52 | box-shadow: 0 0.5rem 50rem rgba(0, 0, 0, 0.1); 53 | } 54 | .logo { 55 | font-size: 1.2rem; 56 | font-weight: 600; 57 | color: var(--main-color); 58 | } 59 | .navbar { 60 | display: flex; 61 | } 62 | .navbar a { 63 | font-size: 1rem; 64 | padding: 10px 20px; 65 | color: var(--text-color); 66 | font-weight: 500; 67 | } 68 | .navbar a:hover { 69 | color: var(--main-color); 70 | } 71 | #menu-icon { 72 | font-size: 2rem; 73 | cursor: pointer; 74 | display: none; 75 | } 76 | .home { 77 | width: 100%; 78 | min-height: 100vh; 79 | display: grid; 80 | grid-template-columns: repeat(2, 1fr); 81 | align-items: center; 82 | gap: 1.5rem; 83 | } 84 | .home-img img { 85 | width: 100%; 86 | } 87 | .home-text h1 { 88 | font-size: var(--big-font); 89 | color: var(--main-color); 90 | } 91 | .home-text h2 { 92 | font-size: var(--h2-font); 93 | margin: 1rem 0 1rem; 94 | } 95 | .btn { 96 | display: inline-block; 97 | background: var(--main-color); 98 | padding: 10px 20px; 99 | border-radius: 0.5rem; 100 | color: #fff; 101 | } 102 | .btn:hover { 103 | background: #ffa400; 104 | } 105 | .about { 106 | display: grid; 107 | grid-template-columns: repeat(2, 1fr); 108 | gap: 1.5rem; 109 | align-items: center; 110 | } 111 | .about-img img { 112 | max-width: 80%; 113 | border-radius: 0.5rem; 114 | } 115 | .about-text span { 116 | color: var(--main-color); 117 | font-weight: 500; 118 | } 119 | .about-text h2 { 120 | font-size: var(--h2-font); 121 | } 122 | .about-text p { 123 | margin: 0.8rem 0 1.8rem; 124 | } 125 | .heading { 126 | text-align: center; 127 | } 128 | .heading span { 129 | color: var(--main-color); 130 | font-weight: 500; 131 | } 132 | .heading h2 { 133 | font-size: var(--h2-font); 134 | } 135 | .menu-container { 136 | display: grid; 137 | grid-template-columns: repeat(auto-fit, minmax(220px, auto)); 138 | gap: 1.5rem; 139 | align-items: center; 140 | } 141 | .box { 142 | position: relative; 143 | margin-top: 2rem; 144 | height: auto; 145 | display: flex; 146 | flex-direction: column; 147 | justify-content: center; 148 | align-items: center; 149 | border-radius: 0.5rem; 150 | box-shadow: 0 2px 4px rgb(4 64 54 / 10%); 151 | padding: 10px; 152 | } 153 | .box-img { 154 | width: 200px; 155 | height: 200px; 156 | } 157 | .box-img img { 158 | width: 100%; 159 | height: 100%; 160 | object-fit: contain; 161 | object-position: center; 162 | } 163 | .box h2 { 164 | font-size: 1.2rem; 165 | } 166 | .box h3 { 167 | font-size: 1rem; 168 | font-weight: 400; 169 | margin: 4px 0 10px; 170 | } 171 | .box span { 172 | font-size: var(--p-font); 173 | font-weight: 500; 174 | } 175 | .box .bx { 176 | position: absolute; 177 | right: 0; 178 | top: 0; 179 | font-size: 20px; 180 | background: var(--main-color); 181 | border-radius: 0 0.5rem 0 0.5rem; 182 | padding: 5px 8px; 183 | } 184 | .box .bx:hover { 185 | background: #ffa400; 186 | } 187 | .servives-container { 188 | display: grid; 189 | grid-template-columns: repeat(auto-fit, minmax(240px, auto)); 190 | gap: 1.5rem; 191 | margin-top: 2rem; 192 | } 193 | .s-box { 194 | text-align: center; 195 | } 196 | .s-box img { 197 | width: 60px; 198 | } 199 | .s-box h3 { 200 | margin: 4px 0 10px; 201 | } 202 | .connect { 203 | display: flex; 204 | align-items: center; 205 | justify-content: space-around; 206 | } 207 | .connect-text span { 208 | color: var(--main-color); 209 | font-weight: 500; 210 | } 211 | .connect-text h2 { 212 | font-size: var(--h2-font); 213 | } 214 | .contact { 215 | display: grid; 216 | grid-template-columns: repeat(auto-fit, minmax(200px, auto)); 217 | gap: 1.5rem; 218 | } 219 | .contact-box h3 { 220 | margin-bottom: 1rem; 221 | } 222 | .social { 223 | display: flex; 224 | margin-top: 1.5rem; 225 | } 226 | .social i { 227 | font-size: 20px; 228 | margin-right: 1rem; 229 | color: var(--text-color); 230 | } 231 | .social i:hover { 232 | color: var(--main-color); 233 | } 234 | .contact-box li a { 235 | color: var(--text-color); 236 | } 237 | .contact-box li a:hover { 238 | color: var(--main-color); 239 | } 240 | .address { 241 | display: flex; 242 | flex-direction: column; 243 | } 244 | .address i { 245 | margin-bottom: 0.5rem; 246 | font-size: 1rem; 247 | } 248 | .address span { 249 | margin-left: 1rem; 250 | } 251 | .copyright { 252 | padding: 20px; 253 | text-align: center; 254 | } 255 | @media (max-width: 921px) { 256 | header { 257 | padding: 14px 41px; 258 | } 259 | :root { 260 | --big-font: 3rem; 261 | --h2-font: 1.7rem; 262 | } 263 | } 264 | @media (max-width: 768px) { 265 | section { 266 | padding: 50px 8%; 267 | } 268 | #menu-icon { 269 | display: initial; 270 | color: var(--text-color); 271 | } 272 | header .navbar { 273 | position: absolute; 274 | top: -400px; 275 | left: 0; 276 | right: 0; 277 | display: flex; 278 | flex-direction: column; 279 | text-align: center; 280 | background: var(--bg-color); 281 | box-shadow: 0 4px 4px rgb(0 0 0 / 10%); 282 | transition: 0.2s ease; 283 | } 284 | .navbar.active { 285 | top: 100%; 286 | } 287 | .navbar a { 288 | padding: 1.5rem; 289 | display: block; 290 | background: var(--bg-color); 291 | } 292 | #darkmode { 293 | position: absolute; 294 | top: 1.4rem; 295 | right: 2rem; 296 | } 297 | } 298 | @media (max-width: 715px) { 299 | header { 300 | padding: 10px 16px; 301 | } 302 | .home { 303 | grid-template-columns: 1fr; 304 | } 305 | .about { 306 | grid-template-columns: 1fr; 307 | text-align: center; 308 | } 309 | .about-img { 310 | order: 2; 311 | } 312 | } 313 | @media (max-width: 515px) { 314 | .connect { 315 | flex-direction: column; 316 | } 317 | .connect .btn { 318 | margin-top: 1rem; 319 | } 320 | } 321 | @media (max-width: 450px) { 322 | :root { 323 | --big-font: 2rem; 324 | --h2-font: 1.4rem; 325 | } 326 | .home-text { 327 | padding-top: 4rem; 328 | } 329 | } -------------------------------------------------------------------------------- /pizza.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Responsive Pizza Landing Page 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 30 |
31 | 32 |
33 |
34 |

Pizza Taste

35 |

The tasty pizza of
your choice

36 | View Menu 37 |
38 |
39 | 40 |
41 |
42 | 43 | 44 |
45 |
46 | 47 |
48 |
49 | About Us 50 |

We make good and
tasty pizzas

51 |

pizza, dish of Italian origin consisting of a flattened disk of bread dough topped with some combination of olive oil, oregano, tomato, olives, mozzarella or other cheese, and many other

52 | Learn More 53 |
54 |
55 | 56 | 57 | 95 | 96 | 97 |
98 |
99 | Services 100 |

We provide best food services

101 |
102 | 103 |
104 | 105 |
106 | 107 |

You Order

108 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sit ea fugiat esse tempore ipsum temporibus.

109 |
110 | 111 |
112 | 113 |

Shipping

114 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sit ea fugiat esse tempore ipsum temporibus.

115 |
116 | 117 |
118 | 119 |

Delivered

120 |

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sit ea fugiat esse tempore ipsum temporibus.

121 |
122 |
123 |
124 | 125 | 126 |
127 |
128 | Let's Talk 129 |

Connect now

130 |
131 | Contact Us 132 |
133 | 134 | 135 |
136 |
137 |

Pizza Pie

138 | Connect With Us 139 | 144 |
145 |
146 |

Menu Links

147 |
  • Home
  • 148 |
  • About
  • 149 |
  • Menu
  • 150 |
  • Service
  • 151 |
  • Contact
  • 152 |
    153 |
    154 |

    Quick Links

    155 |
  • Contact
  • 156 |
  • Privacy Policy
  • 157 |
  • Disclaimer
  • 158 |
  • Terms Of Use
  • 159 |
    160 |
    161 |

    Contact

    162 | 005, sakar nagar, Bangalore, India 163 | +91 99999 5555 164 | pizzapie@email.com 165 |
    166 |
    167 | 168 | 169 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | --------------------------------------------------------------------------------