In this post, we will learn how to create a skateboard video platform using HTML and CSS. In the last post, we created a Neon love effect in Html and CSS. At this moment we are trying to create a skateboard video platform using HTML, CSS and javascript.
Skateboard video platform:
As you can see in the image we have created a dashboard for skateboard users. . On the left-hand side, it has a menu in vertical form and all of the icons have a hover effect and they change their color in the hover effect. By clicking on them there is no response because we have not used a database in it.
Below this, it has two trending images with titles on them. Then it has some profiles of top people in this category. They are suggested and it looks awesome.
You might like it:
How to create a skateboard video platform?
We will create it using Html, CSS, and js in the below steps.
Download a code editor for the Skateboard video platform:
The code editor will help us to write the code of Html, CSS, and javascript. The most used IDE for these languages is vs code, sublime text editor, and brackets. You can use anyone from them.
Source code of Html:
It is a markup language and uses to create buttons, images, videos, icons, etc without design. The code for all these things is given below and copy it by clicking on the copy button.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 |
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <<link rel="stylesheet" href="style.css"> <title>Skateboard video platform| FantacyDesigns</title> </head> <body> <div class="container"> <div class="sidebar"> <span class="logo">S</span> <a class="logo-expand" href="#">skateboard</a> <div class="side-wrapper"> <div class="side-title">MENU</div> <div class="side-menu"> <a class="sidebar-link discover is-active" href="#"> <svg viewBox="0 0 24 24" fill="currentColor"> <path d="M9.135 20.773v-3.057c0-.78.637-1.414 1.423-1.414h2.875c.377 0 .74.15 1.006.414.267.265.417.625.417 1v3.057c-.002.325.126.637.356.867.23.23.544.36.87.36h1.962a3.46 3.46 0 002.443-1 3.41 3.41 0 001.013-2.422V9.867c0-.735-.328-1.431-.895-1.902l- 6.671-5.29a3.097 3.097 0 00-3.949.072L3.467 7.965A2.474 2.474 0 002.5 9.867v8.702C2.5 20.464 4.047 22 5.956 22h1.916c.68 0 1.231-.544 1.236- 1.218l.027-.009z" /> </svg> Discover </a> <a class="sidebar-link trending" href="#"> <svg viewBox="0 0 24 24" fill="currentColor"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10.835 12.007l.002.354c.012 1.404.096 2.657.242 3.451 0 .015.16.802.261 1.064.16.38.447.701.809.905a2 2 0 00.91.219c.249-.012.66-.137.954-.242l.244-.094c1.617-.642 4.707-2.74 5.891-4.024l.087-.09.39-.42c.245 -.322.375-.715.375-1.138 0-.379-.116-.758-.347-1.064-.07-.099-.18-.226-.28-.334l-.379-.397c-1.305-1.321-4.129-3.175-5.593-3.79 0-.013-.91-.393- 1.343-.407h-.057c-.665 0-1.286.379-1.603.991-.087.168-.17.496-.233.784l-.114.544c-.13.874-.216 2.216-.216 3.688zm-6.332-1.525C3.673 10.482 3 11.162 3 12a1.51 1.51 0 001.503 1.518l3.7-.328c.65 0 1.179-.532 1.179-1.19 0-.658-.528-1.191-1.18-1.191l-3.699-.327z" /> </svg> Trending </a> <a class="sidebar-link" href="#"> <svg viewBox="0 0 24 24" fill="currentColor"> <path d="M11.23 7.29V3.283c0-.427.34-.782.77-.782.385 0 .711.298.763.677l.007.104v4.01h4.78c2.38 0 4.335 1.949 4.445 4.38l.005.215v5.04c0 2.447-1.887 4.456-4.232 4.569l-.208.005H6.44c-2.38 0-4.326-1.94-4.435-4.379L2 16.905v-5.03c0-2.447 1.878-4.466 4.222-4.58l.208-.004h4.8v6.402l- 1.6-1.652a.755.755 0 00-1.09 0 .81.81 0 00-.22.568c0 .157.045.32.14.459l.08.099 2.91 3.015c.14.155.34.237.55.237a.735.735 0 00.465-.166l.075 -.071 2.91-3.015c.3-.31.3-.816 0-1.126a.755.755 0 00-1.004-.077l-.086.077-1.59 1.652V7.291h-1.54z" /> </svg> Streaming </a> <a class="sidebar-link" href="#"> <svg viewBox="0 0 24 24" fill="currentColor"> <path fill-rule="evenodd" clip-rule="evenodd" d="M12.1535 16.64L14.995 13.77C15.2822 13.47 15.2822 13 14.9851 12.71C14.698 12.42 14.2327 12.42 13.9455 12.71L12.3713 14.31V9.49C12.3713 9.07 12.0446 8.74 11.6386 8.74C11.2327 8.74 10.896 9.07 10.896 9.49V14.31L9.32178 12.71C9.03465 12.42 8.56931 12.42 8.28218 12.71C7.99505 13 7.99505 13.47 8.28218 13.77L11.1139 16.64C11.1832 16.71 11.2624 16.76 11.3515 16.8C11.4406 16.84 11.5396 16.86 11.6386 16.86C11.7376 16.86 11.8267 16.84 11.9158 16.8C12.005 16.76 12.0842 16.71 12.1535 16.64ZM19.3282 9.02561C19.5609 9.02292 19.8143 9.02 20.0446 9.02C20.302 9.02 20.5 9.22 20.5 9.47V17.51C20.5 19.99 18.5 22 16.0446 22H8.17327C5.58911 22 3.5 19.89 3.5 17.29V6.51C3.5 4.03 5.4901 2 7.96535 2H13.2525C13.5 2 13.7079 2.21 13.7079 2.46V5.68C13.7079 7.51 15.1931 9.01 17.0149 9.02C17.4333 9.02 17.8077 9.02318 18.1346 9.02595C18.3878 9.02809 18.6125 9.03 18.8069 9.03C18.9479 9.03 19.1306 9.02789 19.3282 9.02561ZM19.6045 7.5661C18.7916 7.5691 17.8322 7.5661 17.1421 7.5591C16.047 7.5591 15.145 6.6481 15.145 5.5421V2.9061C15.145 2.4751 15.6629 2.2611 15.9579 2.5721C16.7203 3.37199 17.8873 4.5978 18.8738 5.63395C19.2735 6.05379 19.6436 6.44249 19.945 6.7591C20.2342 7.0621 20.0223 7.5651 19.6045 7.5661Z" /> </svg> Playlist </a> <a class="sidebar-link" href="#"> <svg viewBox="0 0 24 24" fill="currentColor"> <path fill-rule="evenodd" clip-rule="evenodd" d="M17.769 8.382H22C22 4.985 19.964 3 16.516 3H7.484C4.036 3 2 4.985 2 8.338v7.324C2 19.015 4.036 21 7.484 21h9.032C19.964 21 22 19.015 22 15.662v-.313h-4.231c-1.964 0-3.556-1.552-3.556-3.466 0-1.915 1.592-3.467 3.556-3.467v-.034zm0 1.49h3.484c.413 0 .747.326.747.728v2.531a.746.746 0 01-.747.728H17.85c-.994.013-1.864-.65-2.089-1.595a1.982 1.982 0 01.433-1.652 2.091 2.091 0 011.576-.74zm.151 2.661h.329a.755.755 0 00.764-.745.755.755 0 00-.764-.746h-.329a.766.766 0 00-.54.213.727.727 0 00-.224.524c0 .413.34.75.764.754zM6.738 8.382h5.644a.755.755 0 00.765-.746.755.755 0 00-.765-.745H6.738a.755.755 0 00-.765.737c0 .413.341.75.765.754z" /> </svg> Bookmark </a> </div> </div> <div class="side-wrapper"> <div class="side-title">CATEGORY</div> <div class="side-menu"> <a class="sidebar-link" href="#"> <svg viewBox="0 0 24 24" fill="currentColor"> <path fill-rule="evenodd" clip-rule="evenodd" d="M15.164 6.083l.948.011c3.405 0 5.888 2.428 5.888 5.78v4.307c0 3.353-2.483 5.78-5.888 5.78A193.5 193.5 0 0112.01 22c-1.374 0-2.758-.01-4.122-.038-3.405 0-5.888-2.428-5.888-5.78v-4.307c0-3.353 2.483-5.78 5.898-5.78 1.286-.02 2.6 -.04 3.935-.04v-.163c0-.665-.56-1.204-1.226-1.204h-.972c-1.109 0-2.012-.886-2.012-1.965 0-.395.334-.723.736-.723.412 0 .736.328.736.723 0 .289.246.52.54.52h.972c1.481.01 2.688 1.194 2.698 2.64v.183c.619 0 1.238.008 1.859.017zm-4.312 8.663h-1.03v1.02a.735.735 0 01-.737.723.728.728 0 01-.736-.722v-1.021H7.31a.728.728 0 01-.736-.723c0-.395.334-.722.736-.722h1.04v-1.012c0-.395.324-.723.736-.723.403 0 .736.328.736.723v1.012h1.03c.403 0 .737.327.737.722a.728.728 0 01-.736.723zm4.17-1.629h.099a.728.728 0 00.736-.722.735.735 0 00-.736 -.723h-.098a.722.722 0 100 1.445zm1.679 3.315h.098a.728.728 0 00.736-.723.735.735 0 00-.736-.723H16.7a.722.722 0 100 1.445z" /> </svg> Live Stream </a> <a class="sidebar-link" href="#"> <svg viewBox="0 0 24 24" fill="currentColor"> <path fill-rule="evenodd" clip-rule="evenodd" d="M7.33 2h9.34c3.4 0 5.32 1.93 5.33 5.33v9.34c0 3.4-1.93 5.33-5.33 5.33H7.33C3.93 22 2 20.07 2 16.67V7.33C2 3.93 3.93 2 7.33 2zm4.72 15.86c.43 0 .79-.32.83-.75V6.92a.815.815 0 00-.38-.79.84.84 0 00- 1.28.79v10.19c.05.43.41.75.83.75zm4.6 0c.42 0 .78-.32.83-.75v-3.28a.839.839 0 00-1.28-.79.806.806 0 00-.38.79v3.28c.04.43.4.75.83.75zm-8.43 -.75a.827.827 0 01-.83.75c-.43 0-.79-.32-.83-.75V10.2a.84.84 0 01.39-.79c.27-.17.61-.17.88 0s.42.48.39.79v6.91z" /> </svg> Tutorial </a> <a class="sidebar-link" href="#"> <svg viewBox="0 0 24 24" fill="currentColor"> <path fill-rule="evenodd" clip-rule="evenodd" d="M19.761 12.001c0 .814.668 1.475 1.489 1.475.414 0 .75.333.75.743v2.677C22 19.159 20.142 21 17.858 21H6.143C3.859 21 2 19.159 2 16.896v-2.677c0-.41.336-.743.75-.743.822 0 1.49-.662 1.49-1.475 0-.793-.641-1.39-1.49-1.39a.752.752 0 01 -.53-.217.74.74 0 01-.22-.525l.002-2.764C2.002 4.842 3.86 3 6.144 3h11.712c2.284 0 4.143 1.842 4.143 4.105L22 9.782a.741.741 0 01 -.219.526.753.753 0 01-.531.218c-.821 0-1.489.662-1.489 1.475zm-5.509.647l1.179-1.137a.73.73 0 00-.409-1.25l-1.629-.236-.729-1.462a.737.737 0 00-.662-.41H12a.74.74 0 00-.663.409l-.729 1.463-1.626.235a.735.735 0 00-.6.498.724.724 0 00.187.753l1.179 1.137-.278 1.608a.727.727 0 00.295.719.742.742 0 00.777.054L12 14.27l1.455.757a.733.733 0 00.78-.053.723.723 0 00.296-.718l-.279-1.608z" /> </svg> Competation </a> <a class="sidebar-link" href="#"> <svg viewBox="0 0 24 24" fill="currentColor"> <path fill-rule="evenodd" clip-rule="evenodd" d="M16.158 8.233a4.207 4.207 0 01-4.209 4.234 4.207 4.207 0 01-4.21-4.234A4.206 4.206 0 0111.95 4a4.206 4.206 0 014.21 4.233zM11.95 20c-3.431 0-6.36-.544-6.36-2.72 0-2.177 2.91-2.74 6.36-2.74 3.431 0 6.361.544 6.361 2.72S15.399 20 11.949 20zm6.008-11.69a5.765 5.765 0 01-.984 3.24.158.158 0 00.107.245 3.4 3.4 0 00.483.046c1.643.044 3.118-1.02 3.525-2.621.604-2.379-1.168- 4.514-3.425-4.514-.245 0-.48.026-.708.073-.031.007-.064.021-.082.05-.022.034-.006.08.016.11a5.807 5.807 0 011.068 3.37zm2.721 5.203c1.104.217 1.83.66 2.131 1.304a1.923 1.923 0 010 1.67c-.46.998-1.944 1.319-2.52 1.402-.12.018-.215-.086-.203-.206.295-2.767-2.048-4.08-2.654-4.381-.026 -.014-.032-.034-.03-.047.003-.009.013-.023.033-.026 1.312-.024 2.722.156 3.243.284zM6.438 11.84c.164-.004.325-.019.483-.046a.158.158 0 00.106 -.245 5.765 5.765 0 01-.984-3.24c0-1.25.39-2.416 1.068-3.372.022-.03.037-.075.016-.11-.017-.027-.051-.042-.082-.05a3.52 3.52 0 00-.71-.072c- 2.255 0-4.027 2.135-3.423 4.514.407 1.6 1.882 2.664 3.525 2.621zm.159 1.414c.003.013-.003.033-.028.047-.607.302-2.95 1.614-2.656 4.38.013.121 -.082.224-.201.207-.577-.083-2.06-.404-2.52-1.402a1.917 1.917 0 010-1.67c.3-.644 1.026-1.087 2.13-1.305.522-.127 1.93-.307 3.244 -.283.02.003.03.017.03.026z" /> </svg> Community </a> </div> </div> </div> <div class="wrapper"> <div class="header"> <div class="search-bar"> <input type="text" placeholder="Search"> </div> <div class="user-settings"> <img class="user-img" src="https://images.unsplash.com/photo-1587918842454-870dbd18261a?ixlib=rb- 1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=943&q=80" alt=""> <div class="user-name">JD Khan</div> <svg viewBox="0 0 492 492" fill="currentColor"> <path d="M484.13 124.99l-16.11-16.23a26.72 26.72 0 00-19.04-7.86c-7.2 0-13.96 2.79-19.03 7.86L246.1 292.6 62.06 108.55c-5.07-5.06-11.82- 7.85-19.03-7.85s-13.97 2.79-19.04 7.85L7.87 124.68a26.94 26.94 0 000 38.06l219.14 219.93c5.06 5.06 11.81 8.63 19.08 8.63h.09c7.2 0 13.96-3.57 19.02-8.63l218.93-219.33A27.18 27.18 0 00492 144.1c0-7.2-2.8-14.06-7.87-19.12z"></path> </svg> <div class="notify"> <div class="notification"></div> <svg viewBox="0 0 24 24" fill="currentColor"> <path fill-rule="evenodd" clip-rule="evenodd" d="M18.707 8.796c0 1.256.332 1.997 1.063 2.85.553.628.73 1.435.73 2.31 0 .874-.287 1.704 -.863 2.378a4.537 4.537 0 01-2.9 1.413c-1.571.134-3.143.247-4.736.247-1.595 0-3.166-.068-4.737-.247a4.532 4.532 0 01-2.9-1.413 3.616 3.616 0 01 -.864-2.378c0-.875.178-1.682.73-2.31.754-.854 1.064-1.594 1.064-2.85V8.37c0-1.682.42-2.781 1.283-3.858C7.861 2.942 9.919 2 11.956 2h.09c2.08 0 4.204.987 5.466 2.625.82 1.054 1.195 2.108 1.195 3.745v.426zM9.074 20.061c0-.504.462-.734.89-.833.5-.106 3.545-.106 4.045 0 .428.099.89.33.89.833-.025.48-.306.904-.695 1.174a3.635 3.635 0 01-1.713.731 3.795 3.795 0 01-1.008 0 3.618 3.618 0 01-1.714-.732c-.39-.269-.67 -.694-.695-1.173z" /> </svg> </div> </div> </div> <div class="main-container"> <div class="main-header anim" style="--delay: 0s">Discover</div> <div class="main-blogs"> <div class="main-blog anim" style="--delay: .1s"> <div class="main-blog__title">How to do Basic Jumping and how to landing safely</div> <div class="main-blog__author"> <div class="author-img__wrapper"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.unsplash.com/photo-1560941001-d4b52ad00ecc?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw %3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1650&q=80" /> </div> <div class="author-detail"> <div class="author-name">JD Khan Hope</div> <div class="author-info">53K views <span class="seperate"></span>2 weeks ago</div> </div> </div> <div class="main-blog__time">7 min</div> </div> <div class="main-blog anim" style="--delay: .2s"> <div class="main-blog__title">Skateboard Tips You need to know</div> <div class="main-blog__author tips"> <div class="main-blog__time">7 min</div> <div class="author-img__wrapper"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.unsplash.com/photo-1496345875659-11f7dd282d1d? ixid=MXwxMjA3fDB8MHxzZWFyY2h8Mzl8fG1lbnxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" /> </div> <div class="author-detail"> <div class="author-name">Tony Andrew</div> <div class="author-info">53K views <span></span>2 weeks ago</div> </div> </div> </div> </div> <div class="small-header anim" style="--delay: .3s">Most Watched</div> <div class="videos"> <div class="video anim" style="--delay: .4s"> <div class="video-time">8 min</div> <div class="video-wrapper"> <video muted=""> <source src="https://player.vimeo.com/external/436572488.sd.mp4? s=eae5fb490e214deb9ff532dd98d101efe94e7a8b&profile_id=139&oauth2_token_id=57447761" type="video/mp4"> </video> <div class="author-img__wrapper video-author"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.pexels.com/photos/1680172/pexels-photo-1680172.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" /> </div> </div> <div class="video-by">Andy William</div> <div class="video-name">Basic how to ride your skateboard comfortly</div> <div class="video-view">54K views<span class="seperate video-seperate"></span>1 week ago</div> </div> <div class="video anim" style="--delay: .5s"> <div class="video-time">5 min</div> <div class="video-wrapper"> <video muted=""> <source src="https://player.vimeo.com/external/449972745.sd.mp4? s=9943177fe8a6147b7bc4598259401f06ec57878a&profile_id=139&oauth2_token_id=57447761" type="video/mp4"> </video> <div class="author-img__wrapper video-author"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.pexels.com/photos/3370021/pexels-photo-3370021.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" /> </div> </div> <div class="video-by offline">Gerard Bind</div> <div class="video-name">Prepare for your first skateboard jump</div> <div class="video-view">42K views<span class="seperate video-seperate"></span>1 week ago</div> </div> <div class="video anim" style="--delay: .6s"> <div class="video-time">7 min</div> <div class="video-wrapper"> <video muted=""> <source src="https://player.vimeo.com/external/436553499.sd.mp4? s=0e44527f269278743db448761e35c5e39cfaa52c&profile_id=139&oauth2_token_id=57447761" type="video/mp4"> </video> <div class="author-img__wrapper video-author"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.pexels.com/photos/1870163/pexels-photo-1870163.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" /> </div> </div> <div class="video-by offline">John Wise</div> <div class="video-name">Basic equipment to play skateboard safely</div> <div class="video-view">64K views<span class="seperate video-seperate"></span>2 week ago</div> </div> <div class="video anim" style="--delay: .7s"> <div class="video-time">6 min</div> <div class="video-wrapper"> <video muted=""> <source src="https://player.vimeo.com/external/361861493.sd.mp4? s=19d8275ca755d653042a87ef28b2f0b2eabf57d0&profile_id=139&oauth2_token_id=57447761" type="video/mp4"> </video> <div class="author-img__wrapper video-author"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.pexels.com/photos/2889942/pexels-photo-2889942.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" /> </div> </div> <div class="video-by">Budi Hakim</div> <div class="video-name">Tips to playing skateboard on the ramp</div> <div class="video-view">50K views<span class="seperate video-seperate"></span>1 week ago</div> </div> </div> <div class="stream-area"> <div class="video-stream"> <video id="my_video_1" class="video-js vjs-default-skin anim" width="640px" height="267px" controls preload="none" poster='https://images.unsplash.com/photo-1476801071117-fbc157ae3f01?ixlib=rb- 1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1yZWxhdGVkfDh8fHxlbnwwfHx8&w=1000&q=80' data-setup='{ "aspectRatio":"940:620", "playbackRates": [1, 1.5, 2] }'> <source src="https://player.vimeo.com/external/390402719.sd.mp4? s=20cfdb066c4253047562b65bd4e411b86a004bc5&profile_id=139&oauth2_token_id=57447761" type='video/mp4' /> <source src="https://player.vimeo.com/external/390402719.sd.mp4? s=20cfdb066c4253047562b65bd4e411b86a004bc5&profile_id=139&oauth2_token_id=57447761" type='video/webm' /> </video> <div class="video-detail"> <div class="video-content"> <div class="video-p-wrapper anim" style="--delay: .1s"> <div class="author-img__wrapper video-author video-p"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.pexels.com/photos/1680172/pexels-photo-1680172.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" /> </div> <div class="video-p-detail"> <div class="video-p-name">Andy William</div> <div class="video-p-sub">1,980,893 subscribers</div> </div> <div class="button-wrapper"> <button class="like"> <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M21.435 2.582a1.933 1.933 0 00-1.93-.503L3.408 6.759a1.92 1.92 0 00-1.384 1.522c-.142.75.355 1.704 1.003 2.102l5.033 3.094a1.304 1.304 0 001.61-.194l5.763-5.799a.734.734 0 011.06 0c.29.292.29.765 0 1.067l-5.773 5.8c-.428.43-.508 1.1-.193 1.62l3.075 5.083c.36.604.98.946 1.66.946.08 0 .17 0 .251-.01.78-.1 1.4-.634 1.63-1.39l4.773-16.075c.21-.685.02-1.43-.48-1.943z" /> </svg> Share </button> <button class="like red"> <svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M15.85 2.5c.63 0 1.26.09 1.86.29 3.69 1.2 5.02 5.25 3.91 8.79a12.728 12.728 0 01- 3.01 4.81 38.456 38.456 0 01-6.33 4.96l-.25.15-.26-.16a38.093 38.093 0 01-6.37-4.96 12.933 12.933 0 01-3.01-4.8c-1.13-3.54.2-7.59 3.93-8.81.29 -.1.59-.17.89-.21h.12c.28-.04.56-.06.84-.06h.11c.63.02 1.24.13 1.83.33h.06c.04.02.07.04.09.06.22.07.43.15.63.26l.38.17c.092.05.195.125.284.19.056.04.107.077.146.1l.05.03c.085.05.175.102.25.16a6.263 6.263 0 013.85-1.3zm2.66 7.2c.41-.01.76-.34.79-.76v-.12a3.3 3.3 0 00-2.11-3.16.8.8 0 00-1.01.5c-.14.42.08.88.5 1.03.64.24 1.07.87 1.07 1.57v.03a.86.86 0 00.19.62c.14.17.35.27.57.29z" /> </svg> Liked </button> </div> </div> <div class="video-p-title anim" style="--delay: .2s">Basic how to ride your Skateboard</div> <div class="video-p-subtitle anim" style="--delay: .3s">Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellendus illum tempora consequuntur. Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis earum velit accusantium maiores qui sit quas, laborum voluptatibus vero quidem tempore facilis voluptate tempora deserunt! </div> <div class="video-p-subtitle anim" style="--delay: .4s">Lorem ipsum dolor sit amet consectetur adipisicing elit. Temporibus laborum qui dolorum fugiat eius accusantium repellendus illum tempora consequuntur. Lorem ipsum dolor, sit amet consectetur adipisicing elit.</div> </div> </div> </div> <div class="chat-stream"> <div class="chat"> <div class="chat-header anim">Live Chat<span><svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M14.212 7.762c0 2.644-2.163 4.763-4.863 4.763-2.698 0-4.863-2.119-4.863-4.763C4.486 5.12 6.651 3 9.35 3c2.7 0 4.863 2.119 4.863 4.762zM2 17.917c0-2.447 3.386-3.06 7.35-3.06 3.985 0 7.349.634 7.349 3.083 0 2.448-3.386 3.06-7.35 3.06C5.364 21 2 20.367 2 17.917zM16.173 7.85a6.368 6.368 0 01-1.137 3.646c-.075.107-.008.252.123.275.182.03.369.048.56.052 1.898.048 3.601-1.148 4.072-2.95.697-2.675-1.35-5.077-3.957-5.077a4.16 4.16 0 00-.818.082c-.036.008-.075.025-.095.055-.025.04-.007.09.019.124a6.414 6.414 0 011.233 3.793zm3.144 5.853c1.276.245 2.115.742 2.462 1.467a2.107 2.107 0 010 1.878c-.531 1.123-2.245 1.485-2.912 1.578a.207.207 0 01-.234-.232c.34- 3.113-2.367-4.588-3.067-4.927-.03-.017-.036-.04-.034-.055.002-.01.015-.025.038-.028 1.515-.028 3.145.176 3.747.32z" /> </svg> 15,988 people </span> </div> <div class="message-container"> <div class="message anim" style="--delay: .1s"> <div class="author-img__wrapper video-author video-p"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.unsplash.com/photo-1560941001-d4b52ad00ecc? ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1650&q=80" /> </div> <div class="msg-wrapper"> <div class="msg__name video-p-name"> Wijaya Adabi</div> <div class="msg__content video-p-sub"> Lorem ipsum clor sit, ame conse quae debitis</div> </div> </div> <div class="message anim" style="--delay: .2s"> <div class="author-img__wrapper video-author video-p"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.pexels.com/photos/2889942/pexels-photo-2889942.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" /> </div> <div class="msg-wrapper"> <div class="msg__name video-p-name offline"> Johny Wise</div> <div class="msg__content video-p-sub"> Suscipit eos atque voluptates labore</div> </div> </div> <div class="message anim" style="--delay: .3s"> <div class="author-img__wrapper video-author video-p"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.unsplash.com/photo-1496345875659-11f7dd282d1d? ixid=MXwxMjA3fDB8MHxzZWFyY2h8Mzl8fG1lbnxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" /> </div> <div class="msg-wrapper"> <div class="msg__name video-p-name offline"> Budi Hakim</div> <div class="msg__content video-p-sub">Dicta quidem sunt adipisci</div> </div> </div> <div class="message anim" style="--delay: .4s"> <div class="author-img__wrapper video-author video-p"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.pexels.com/photos/1870163/pexels-photo-1870163.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" /> </div> <div class="msg-wrapper"> <div class="msg__name video-p-name"> JD Khan Hope</div> <div class="msg__content video-p-sub"> recusandae doloremque aperiam alias molestias</div> </div> </div> <div class="message anim" style="--delay: .5s"> <div class="author-img__wrapper video-author video-p"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.pexels.com/photos/1680172/pexels-photo-1680172.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" /> </div> <div class="msg-wrapper"> <div class="msg__name video-p-name"> Gerard Will</div> <div class="msg__content video-p-sub">Dicta quidem sunt adipisci</div> </div> </div> <div class="message anim" style="--delay: .6s"> <div class="author-img__wrapper video-author video-p"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"> <path d="M20 6L9 17l-5-5" /> </svg> <img class="author-img" src="https://images.pexels.com/photos/2889942/pexels-photo-2889942.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" /> </div> <div class="msg-wrapper"> <div class="msg__name video-p-name offline">Johny Wise</div> <div class="msg__content video-p-sub"> recusandae doloremque aperiam alias molestias</div> </div> </div> </div> <div class="chat-footer anim" style="--delay: .1s"> <input type="text" placeholder="Write your message"> </div> </div> <div class="chat-vid__container"> <div class="chat-vid__title anim" style="--delay: .3s">Related Videos</div> <div class="chat-vid anim" style="--delay: .4s"> <div class="chat-vid__wrapper"> <img class="chat-vid__img" src="https://cdn.nohat.cc/thumb/f/720/3b55eddcfffa4e87897d.jpg" /> <div class="chat-vid__content"> <div class="chat-vid__name">Prepare for your first skateboard jump</div> <div class="chat-vid__by">Jordan Wise</div> <div class="chat-vid__info">125.908 views <span class="seperate"></span>2 days ago</div> </div> </div> </div> <div class="chat-vid anim" style="--delay: .5s"> <div class="chat-vid__wrapper"> <img class="chat-vid__img" src="https://iamaround.it/wp-content/uploads/2015/02/pexels-photo-4663818.jpeg" /> <div class="chat-vid__content"> <div class="chat-vid__name">Prepare for your first skateboard jump</div> <div class="chat-vid__by">Jordan Wise</div> <div class="chat-vid__info">125.908 views <span class="seperate"></span>2 days ago</div> </div> </div> </div> <div class="chat-vid__button anim" style="--delay: .6s">See All related videos (32)</div> </div> </div> </div> </div> </div> </div> </body> </html> |
Source code of CSS:
It is also a markup language and we have used it to design our dashboard and make it responsive across all the devices. All the icons, images and videos are designed using CSS.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 |
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap"); * { outline: none; box-sizing: border-box; } html { box-sizing: border-box; -webkit-font-smoothing: antialiased; } img { max-width: 100%; } :root { --body-font: "Inter", sans-serif; --theme-bg: #1f1d2b; --body-color: #808191; --button-bg: #353340; --border-color: rgb(128 129 145 / 24%); --video-bg: #252936; --delay: 0s; } body { font-family: var(--body-font); color: var(--body-color); background-image: url("https://images.unsplash.com/photo-1445251836269-d158eaa028a6?ixlib=rb- 1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1951&q=80"); background-image: url(https://images.unsplash.com/photo-1520045892732-304bc3ac5d8e?ixlib=rb- 1.2.1&ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&auto=format&fit=crop&w=1950&q=80); background-position: center; background-size: cover; background-repeat: no-repeat; background-blend-mode: color-dodge; background-color: rgba(18, 21, 39, 0.86); display: flex; justify-content: center; align-items: center; flex-direction: column; padding: 1em 2em; width: 100%; height: 100vh; overflow: hidden; } body:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(163deg, #1f1d2b 21%, rgba(31, 29, 43, 0.3113620448) 64%); opacity: 0.4; content: ""; } .container { background-color: var(--theme-bg); max-width: 1240px; max-height: 900px; height: 95vh; display: flex; overflow: hidden; width: 100%; border-radius: 20px; font-size: 15px; font-weight: 500; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); position: relative; } .sidebar { width: 220px; height: 100%; padding: 30px; display: flex; flex-direction: column; flex-shrink: 0; transition-duration: 0.2s; overflow-y: auto; overflow-x: hidden; } .sidebar .logo { display: none; width: 30px; height: 30px; background-color: #22b07d; flex-shrink: 0; color: #fff; align-items: center; border-radius: 50%; justify-content: center; } .sidebar .logo-expand { text-decoration: none; color: #fff; font-size: 19px; font-weight: 600; line-height: 34px; position: sticky; top: 0; } .sidebar .logo-expand:before { content: ""; position: absolute; top: -30px; left: 0; background: var(--theme-bg); width: 200px; height: 70px; z-index: -1; } .sidebar-link:hover, .sidebar-link.is-active { color: #fff; font-weight: 600; } .sidebar-link:hover:nth-child(2n+1) svg, .sidebar-link.is-active:nth-child(2n+1) svg { background: #ff7551; } .sidebar-link:hover:nth-child(2n) svg, .sidebar-link.is-active:nth-child(2n) svg { background: #32a7e2; } .sidebar-link:hover:nth-child(2n+3) svg, .sidebar-link.is-active:nth-child(2n+3) svg { background: #6c5ecf; } .sidebar.collapse { width: 90px; border-right: 1px solid var(--border-color); } .sidebar.collapse .logo-expand, .sidebar.collapse .side-title { display: none; } .sidebar.collapse .logo { display: flex; } .sidebar.collapse .side-wrapper { width: 30px; } .sidebar.collapse .side-menu svg { margin-right: 30px; } @-webkit-keyframes bottom { 0% { transform: translateY(100px); opacity: 0; } 100% { opacity: 1; transform: none; } } @keyframes bottom { 0% { transform: translateY(100px); opacity: 0; } 100% { opacity: 1; transform: none; } } .side-menu { display: flex; flex-direction: column; } .side-menu a { display: flex; align-items: center; text-decoration: none; color: var(--body-color); } .side-menu a + a { margin-top: 26px; } .side-menu svg { width: 30px; padding: 8px; border-radius: 10px; background-color: var(--button-bg); flex-shrink: 0; margin-right: 16px; } .side-menu svg:hover { color: #fff; } .side-title { font-size: 12px; letter-spacing: 0.07em; margin-bottom: 24px; } .side-wrapper { border-bottom: 1px solid var(--border-color); padding: 36px 0; width: 145px; } .side-wrapper + .side-wrapper { border-bottom: none; } .wrapper { display: flex; flex-direction: column; flex-grow: 1; } .header { display: flex; align-items: center; flex-shrink: 0; padding: 30px; } .search-bar { height: 34px; display: flex; width: 100%; max-width: 450px; } .search-bar input { width: 100%; height: 100%; border: none; background-color: var(--button-bg); border-radius: 8px; font-family: var(--body-font); font-size: 14px; font-weight: 500; padding: 0 40px 0 16px; box-shadow: 0 0 0 2px rgba(134, 140, 160, 0.02); background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56.966 56.966' fill='%23717790c7'%3e%3cpath d='M55.146 51.887L41.588 37.786A22.926 22.926 0 0046.984 23c0-12.682-10.318-23-23-23s-23 10.318-23 23 10.318 23 23 23c4.761 0 9.298-1.436 13.177-4.162l13.661 14.208c.571.593 1.339.92 2.162.92.779 0 1.518-.297 2.079-.837a3.004 3.004 0 00.083-4.242zM23.984 6c9.374 0 17 7.626 17 17s-7.626 17-17 17-17-7.626-17-17 7.626-17 17-17z'/%3e%3c/svg%3e"); background-size: 14px; background-repeat: no-repeat; background-position: 96%; color: #fff; } .user-settings { display: flex; align-items: center; padding-left: 20px; flex-shrink: 0; margin-left: auto; } .user-settings svg { width: 10px; flex-shrink: 0; } @media screen and (max-width: 575px) { .user-settings svg { display: none; } } .user-settings .notify { position: relative; } .user-settings .notify svg { width: 20px; margin-left: 24px; flex-shrink: 0; } .user-settings .notify .notification { width: 8px; height: 8px; border-radius: 50%; background-color: #ec5252; position: absolute; right: 1px; border: 1px solid var(--theme-bg); top: -2px; } @media screen and (max-width: 575px) { .user-settings .notify .notification { display: none; } } .user-img { width: 30px; height: 30px; flex-shrink: 0; -o-object-fit: cover; object-fit: cover; border-radius: 50%; } .user-name { color: #fff; font-size: 14px; margin: 0 6px 0 12px; } @media screen and (max-width: 575px) { .user-name { display: none; } } .main-container { display: flex; flex-direction: column; padding: 0 30px 30px; flex-grow: 1; overflow: auto; } .anim { -webkit-animation: bottom 0.8s var(--delay) both; animation: bottom 0.8s var(--delay) both; } .main-header { font-size: 30px; color: #fff; font-weight: 700; padding-bottom: 20px; position: sticky; top: 0; left: 0; background: linear-gradient(to bottom, #1f1d2b 0%, #1f1d2b 78%, rgba(31, 29, 43, 0) 100%); z-index: 11; } .small-header { font-size: 24px; font-weight: 500; color: #fff; margin: 30px 0 20px; } .main-blogs { display: flex; align-items: center; } .main-blog__author { display: flex; align-items: center; padding-bottom: 10px; } .main-blog__author.tips { flex-direction: column-reverse; align-items: flex-start; } .main-blog__title { font-size: 25px; max-width: 12ch; font-weight: 600; letter-spacing: 1px; color: #fff; margin-bottom: 30px; } .main-blog { background-image: url("https://assets.codepen.io/3364143/skate-removebg-preview.png"); background-size: 80%; background-position-x: 150px; background-color: #31abbd; display: flex; flex-direction: column; width: 65%; padding: 30px; border-radius: 20px; align-self: stretch; overflow: hidden; position: relative; transition: background 0.3s; background-repeat: no-repeat; } .main-blog + .main-blog { margin-left: 20px; width: 35%; background-image: url(https://c0.anyrgb.com/images/1020/945/venice-beach-2018-outdoors-sport-men-jumping-desert-sunset-extreme-sports-one- person-action.jpg); background-color: unset; background-position-x: 0; background-size: 139%; filter: saturate(1.4); } .main-blog + .main-blog .author-img { border-color: rgba(255, 255, 255, 0.75); margin-top: 14px; } .main-blog + .main-blog .author-img__wrapper svg { border-color: #ffe6b2; color: #e7bb7d; } .main-blog + .main-blog .author-detail { margin-left: 0; } @media screen and (max-width: 905px) { .main-blog, .main-blog + .main-blog { width: 50%; padding: 30px; } .main-blog { background-size: cover; background-position-x: center; background-blend-mode: overlay; } } .main-blog__time { background: rgba(21, 13, 13, 0.44); color: #fff; padding: 3px 8px; font-size: 12px; border-radius: 6px; position: absolute; right: 20px; bottom: 20px; } .author-img { width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, 0.75); padding: 4px; border-radius: 50%; -o-object-fit: cover; object-fit: cover; } .author-img__wrapper { position: relative; flex-shrink: 0; } .author-img__wrapper svg { width: 16px; padding: 2px; background-color: #fff; color: #0daabc; border-radius: 50%; border: 2px solid #0daabc; position: absolute; bottom: 5px; right: 0; } .author-name { font-size: 15px; color: #fff; font-weight: 500; margin-bottom: 8px; } .author-info { font-size: 13px; font-weight: 400; color: #fff; } .author-detail { margin-left: 16px; } .seperate { width: 3px; height: 3px; display: inline-block; vertical-align: middle; border-radius: 50%; background-color: #fff; margin: 0 6px; } .seperate.video-seperate { background-color: var(--body-color); } .videos { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); grid-column-gap: 20px; grid-row-gap: 20px; } @media screen and (max-width: 980px) { .videos { grid-template-columns: repeat(2, 1fr); } } .video { position: relative; background-color: var(--video-bg); border-radius: 20px; overflow: hidden; transition: 0.4s; } .video-wrapper { position: relative; } .video-name { color: #fff; font-size: 16px; line-height: 1.4em; padding: 12px 20px 0; overflow: hidden; background-color: var(--video-bg); z-index: 9; position: relative; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .video-view { font-size: 12px; padding: 12px 20px 20px; background-color: var(--video-bg); position: relative; } .video-by { transition: 0.3s; padding: 20px 20px 0px; display: inline-flex; position: relative; } .video-by:before { content: ""; background-color: #22b07d; width: 6px; height: 6px; border-radius: 50%; position: absolute; top: 26px; right: 5px; } .video-by.offline:before { background-color: #ff7551; } .video-time { position: absolute; background: rgba(21, 13, 13, 0.44); color: rgba(255, 255, 255, 0.85); padding: 3px 8px; font-size: 12px; border-radius: 6px; top: 10px; z-index: 1; right: 8px; } .video:hover video { transform: scale(1.6); transform-origin: center; } .video:hover .video-time { display: none; } .video:hover .video-author { bottom: -65px; transform: scale(0.6); right: -3px; z-index: 10; } .video:hover .video-by { opacity: 0; } .video-author { position: absolute; right: 10px; transition: 0.4s; bottom: -25px; } .video-author svg { background-color: #0aa0f7; color: #fff; border-color: var(--video-bg); } video { max-width: 100%; width: 100%; border-radius: 20px 20px 0 0; display: block; cursor: pointer; transition: 0.4s; } .stream-area { display: none; } @media screen and (max-width: 940px) { .stream-area { flex-direction: column; } .stream-area .video-stream { width: 100%; } .stream-area .chat-stream { margin-left: 0; margin-top: 30px; } .stream-area .video-js.vjs-fluid { min-height: 250px; } .stream-area .msg__content { max-width: 100%; } } .show .stream-area { display: flex; } .show .main-header, .show .main-blogs, .show .small-header, .show .videos { display: none; } .video-stream { width: 65%; -o-object-fit: cover; object-fit: cover; transition: 0.3s; } .video-stream:hover .video-js .vjs-big-play-button { opacity: 1; } .video-p { margin-right: 12px; -o-object-fit: cover; object-fit: cover; flex-shrink: 0; border-radius: 50%; position: relative; top: 0; left: 0; } .video-p .author-img { border: 0; } .video-p-wrapper { display: flex; align-items: center; } .video-p-wrapper .author-img { border: 0; } .video-p-wrapper svg { width: 20px; padding: 4px; } @media screen and (max-width: 650px) { .video-p-wrapper { flex-direction: column; } .video-p-wrapper .button-wrapper { margin: 20px auto 0; } .video-p-wrapper .video-p-detail { display: flex; flex-direction: column; align-items: center; } .video-p-wrapper .video-p { margin-right: 0; } } .video-p-sub { font-size: 12px; } .video-p-title { font-size: 24px; color: #fff; line-height: 1.4em; margin: 16px 0 20px; } .video-p-subtitle { font-size: 14px; line-height: 1.5em; max-width: 60ch; } .video-p-subtitle + .video-p-subtitle { margin-top: 16px; } .video-p-name { margin-bottom: 8px; color: #fff; display: flex; align-items: center; } .video-p-name:after { content: ""; width: 6px; height: 6px; background-color: #22b07d; border-radius: 50%; margin-left: 8px; display: inline-block; } .video-p-name.offline:after { background-color: #ff7551; } .video-content { width: 100%; } .button-wrapper { display: flex; align-items: center; margin-left: auto; } .like { display: flex; align-items: center; background-color: var(--button-bg); color: #fff; border: 0; font-family: var(--body-font); border-radius: 8px; padding: 10px 16px; font-size: 14px; cursor: pointer; } .like.red { background-color: #ea5f5f; } .like svg { width: 18px; flex-shrink: 0; margin-right: 10px; padding: 0; } .like + .like { margin-left: 16px; } .video-stats { margin-left: 30px; } .video-detail { display: flex; margin-top: 30px; width: 100%; } .chat-header { display: flex; align-items: center; padding: 20px 0; font-size: 16px; font-weight: 600; color: #fff; position: sticky; top: 0; background-color: #252836; left: 0; z-index: 1; border-bottom: 1px solid var(--border-color); } .chat-header svg { width: 15px; margin-right: 6px; flex-shrink: 0; } .chat-header span { margin-left: auto; color: var(--body-color); font-size: 12px; display: flex; align-items: center; } .chat-stream { flex-grow: 1; margin-left: 30px; } .chat { background-color: #252836; border-radius: 20px; padding: 0 20px; max-height: 414px; overflow: auto; } .chat-footer { display: flex; align-items: center; position: sticky; bottom: 0; left: 0; width: calc(100% + 20px); padding-bottom: 12px; background-color: #252836; } .chat-footer input { width: 100%; border: 0; background-color: #2d303e; border-radius: 20px; font-size: 12px; color: #fff; margin-left: -10px; padding: 12px 40px; font-weight: 500; font-family: var(--body-font); background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 12C2 6.48 6.47 2 12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10C6.47 22 2 17.52 2 12zm5.52 1.2c-.66 0- 1.2-.54-1.2-1.2 0-.66.54-1.2 1.2-1.2.66 0 1.19.54 1.19 1.2 0 .66-.53 1.2-1.19 1.2zM10.8 12c0 .66.54 1.2 1.2 1.2.66 0 1.19-.54 1.19-1.2a1.194 1.194 0 10-2.39 0zm4.48 0a1.195 1.195 0 102.39 0 1.194 1.194 0 10-2.39 0z' fill='%236c6e78'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-size: 24px; background-position: 8px; } .chat-footer input::-moz-placeholder { color: #6c6e78; } .chat-footer input:-ms-input-placeholder { color: #6c6e78; } .chat-footer input::placeholder { color: #6c6e78; } .chat-footer:before { content: ""; position: absolute; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M21.435 2.582a1.933 1.933 0 00-1.93-.503L3.408 6.759a1.92 1.92 0 00-1.384 1.522c-.142.75.355 1.704 1.003 2.102l5.033 3.094a1.304 1.304 0 001.61-.194l5.763-5.799a.734.734 0 011.06 0c.29.292.29.765 0 1.067l-5.773 5.8c-.428.43-.508 1.1-.193 1.62l3.075 5.083c.36.604.98.946 1.66.946.08 0 .17 0 .251-.01.78-.1 1.4-.634 1.63-1.39l4.773-16.075c.21-.685.02-1.43-.48-1.943z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-size: 14px; background-position: center; width: 18px; height: 18px; background-color: #6c5ecf; padding: 4px; border-radius: 50%; right: 16px; } .chat-vid__title { color: #fff; font-size: 18px; } .chat-vid__container { margin-top: 40px; } .chat-vid__wrapper { display: flex; align-items: center; margin-top: 26px; } .chat-vid__name { color: #fff; font-size: 14px; line-height: 1.3em; display: -webkit-box; -webkit-line-clamp: 2; overflow: hidden; -webkit-box-orient: vertical; } .chat-vid__img { width: 100px; height: 80px; border-radius: 10px; -o-object-fit: cover; object-fit: cover; -o-object-position: right; object-position: right; margin-right: 16px; transition: 0.3s; } .chat-vid__img:hover { transform: scale(1.02); } .chat-vid__content { max-width: 20ch; } .chat-vid__by, .chat-vid__info { color: var(--body-color); font-size: 13px; } .chat-vid__by { margin: 6px 0; } .chat-vid__button { background-color: #6c5ecf; border: 0; color: #fff; font-size: 13px; margin-top: 26px; display: flex; padding: 0 10px; align-items: center; justify-content: center; height: 40px; border-radius: 10px; cursor: pointer; transition: 0.3s; } .chat-vid__button:hover { background-color: #5847d0; } .message { display: flex; align-items: center; margin-top: 18px; } .message:last-child { margin-bottom: 18px; } .message-container .author-img__wrapper svg { width: 15px; } .msg__name { font-size: 13px; } .msg__content { line-height: 1.4em; max-width: 26ch; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .video-js .vjs-control-bar { display: flex; align-items: center; } .vjs-poster { background-size: 150%; } .video-js .vjs-control-bar { width: 100%; position: absolute; bottom: 14px; padding-left: 36px; left: 14px; width: calc(100% - 28px); right: 0; border-radius: 10px; height: 4em; background-color: #2b333f; background-color: rgba(43, 51, 63, 0.7); } @media screen and (max-width: 625px) { .video-js .vjs-control-bar { padding-left: 0; } } .video-js:hover .vjs-big-play-button { background-color: rgba(43, 51, 63, 0.5); } .video-js .vjs-big-play-button { transition: 0.3s; opacity: 0; border: 0; top: 50%; left: 50%; transform: translate(-50%, -50%); } .video-js .vjs-big-play-button:hover { background-color: rgba(43, 51, 63, 0.7); border-color: transparent; } .vjs-play-control:after { content: "LIVE"; position: absolute; left: -66px; top: 7px; background-color: #8941e3; height: 24px; font-family: var(--body-font); font-size: 10px; padding: 0 12px 0 26px; display: flex; font-weight: 700; letter-spacing: 0.03em; align-items: center; border-radius: 6px; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-circle'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-size: 6px; background-position: 12px; } @media screen and (max-width: 625px) { .vjs-play-control:after { display: none; } } .vjs-menu-button-inline .vjs-menu { top: 4px; } .video-js .vjs-control:before, .video-js .vjs-time-control { line-height: 40px; } .video-js .vjs-tech { -o-object-fit: cover; object-fit: cover; } button.vjs-play-control.vjs-control.vjs-button { margin-left: 40px; } @media screen and (max-width: 625px) { button.vjs-play-control.vjs-control.vjs-button { margin-left: 0; } } .vjs-icon-fullscreen-enter:before, .video-js .vjs-fullscreen-control:before { content: ""; position: absolute; display: block; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.54 0h3.38c1.41 0 2.54 1.15 2.54 2.561V5.97c0 1.42-1.13 2.56-2.54 2.56H2.54C1.14 8.53 0 7.39 0 5.97V2.561C0 1.15 1.14 0 2.54 0zm0 11.47h3.38c1.41 0 2.54 1.14 2.54 2.56v3.41c0 1.41-1.13 2.56-2.54 2.56H2.54C1.14 20 0 18.85 0 17.44v-3.41c0- 1.42 1.14-2.56 2.54-2.56zM17.46 0h-3.38c-1.41 0-2.54 1.15-2.54 2.561V5.97c0 1.42 1.13 2.56 2.54 2.56h3.38c1.4 0 2.54-1.14 2.54-2.56V2.561C20 1.15 18.86 0 17.46 0zm-3.38 11.47h3.38c1.4 0 2.54 1.14 2.54 2.56v3.41c0 1.41-1.14 2.56-2.54 2.56h-3.38c-1.41 0-2.54-1.15-2.54-2.56v-3.41c0-1.42 1.13-2.56 2.54-2.56z' fill='%23fff'/%3e%3c/svg%3e"); background-size: 11px; background-position: center; background-position-y: 14px; background-repeat: no-repeat; opacity: 0.6; } .vjs-playback-rate .vjs-playback-rate-value { font-size: 1.1em; line-height: 3.5em; opacity: 0.6; font-weight: 700; font-family: var(--body-font); } .video-js .vjs-playback-rate { width: 2.2em; } .video-js.vjs-fluid { border-radius: 20px; overflow: hidden; min-height: 414px; } @media screen and (max-width: 735px) { .main-blogs { flex-wrap: wrap; } .main-blog, .main-blog + .main-blog { width: 100%; } .videos { grid-template-columns: 1fr; } .main-blog + .main-blog { margin-left: 0; margin-top: 20px; background-size: cover; } } @media screen and (max-width: 475px) { .main-blog__title { font-size: 20px; } .author-name { font-size: 14px; } .main-blog__author { flex-direction: column-reverse; align-items: flex-start; } .author-detail { margin-left: 0; } .main-blog .author-img { margin-top: 14px; } .main-container { padding: 0 20px 20px; } .header { padding: 20px; } .sidebar.collapse { width: 40px; } .sidebar { align-items: center; } body { padding: 0; } .container { height: 100vh; border-radius: 0; max-height: 100%; } } ::-webkit-scrollbar { width: 6px; border-radius: 10px; } ::-webkit-scrollbar-thumb { background-color: rgba(21, 20, 26, 0.63); border-radius: 10px; } |
Code of javascript:
It is not a markup language because it is a dynamic language and we use it to add functionality in our project like transition, animation, on_click function etc.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
<script type="text/javascript"> $(function () { $(".sidebar-link").click(function () { $(".sidebar-link").removeClass("is-active"); $(this).addClass("is-active"); }); }); $(window) .resize(function () { if ($(window).width() > 1090) { $(".sidebar").removeClass("collapse"); } else { $(".sidebar").addClass("collapse"); } }) .resize(); const allVideos = document.querySelectorAll(".video"); allVideos.forEach((v) => { v.addEventListener("mouseover", () => { const video = v.querySelector("video"); video.play(); }); v.addEventListener("mouseleave", () => { const video = v.querySelector("video"); video.pause(); }); }); $(function () { $(".logo, .logo-expand, .discover").on("click", function (e) { $(".main-container").removeClass("show"); $(".main-container").scrollTop(0); }); $(".trending, .video").on("click", function (e) { $(".main-container").addClass("show"); $(".main-container").scrollTop(0); $(".sidebar-link").removeClass("is-active"); $(".trending").addClass("is-active"); }); $(".video").click(function () { var source = $(this).find("source").attr("src"); var title = $(this).find(".video-name").text(); var person = $(this).find(".video-by").text(); var img = $(this).find(".author-img").attr("src"); $(".video-stream video").stop(); $(".video-stream source").attr("src", source); $(".video-stream video").load(); $(".video-p-title").text(title); $(".video-p-name").text(person); $(".video-detail .author-img").attr("src", img); }); }); </script> |
Download source code:
Download the source code of this project from the below download button.
If you have the type of query then try to comment below and we will try to solve your problem asap.
Tasks:
As you can see in the image we have developed a beautiful skateboard beautiful platform. This skateboard is created using HTML, CSS, and js languages. In this skateboard, we have used multiple concepts for its development. Now I am assigning you some tasks related to it and you have to modify this platform.
Now change the background of the skateboard. Also, change the left sidebar from the left side to the right side. Change the theme of this platform. When you will change the position of the sidebar then you have to flip this content as well. This is created using the flex and grid functions of CSS. Just implement the code of flex property into it and arrange the images and videos in this platform. Also, make the search bar functional so that if someone wants to access the relevant content related to it then you find that with the help of a search bar.
Thanks for reading this article.
Download Source CodeClick to Download