7f

base1testing

7f
Aug 28th, 2025
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>My Website</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <style>
  8. body, html {
  9. margin: 0;
  10. padding: 0;
  11. height: 100%;
  12. font-family: Arial, Helvetica, sans-serif;
  13. background: #000;
  14. }
  15. .main-section {
  16. position: relative;
  17. min-height: 100vh;
  18. background-image: url('your-background-image.jpg');
  19. background-size: cover;
  20. background-position: center;
  21. color: white;
  22. overflow: hidden;
  23. }
  24. .overlay-title {
  25. position: absolute;
  26. top: 50%;
  27. left: 50%;
  28. transform: translate(-50%, -50%);
  29. background: rgba(0, 0, 0, 0.5);
  30. padding: 40px 80px;
  31. border-radius: 10px;
  32. font-size: 3em;
  33. text-align: center;
  34. z-index: 2;
  35. }
  36. .fade-overlay {
  37. position: absolute;
  38. bottom: 0;
  39. left: 0;
  40. width: 100%;
  41. height: 50vh;
  42. background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
  43. pointer-events: none;
  44. z-index: 1;
  45. }
  46. .gallery-section {
  47. background: #000;
  48. padding: 60px 15px;
  49. min-height: 50vh;
  50. display: flex;
  51. flex-wrap: wrap;
  52. gap: 20px;
  53. justify-content: center;
  54. }
  55. .gallery-img {
  56. width: 200px;
  57. height: 140px;
  58. object-fit: cover;
  59. border-radius: 8px;
  60. box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  61. }
  62. @media only screen and (max-width: 600px) {
  63. .overlay-title {
  64. font-size: 1.5em;
  65. padding: 20px 10px;
  66. }
  67. .gallery-img {
  68. width: 100px;
  69. height: 70px;
  70. }
  71. }
  72. </style>
  73. </head>
  74. <body>
  75. <div class="main-section">
  76. <div class="overlay-title">My Website</div>
  77. <div class="fade-overlay"></div>
  78. </div>
  79. <div class="gallery-section">
  80. <!-- Add your gallery images here -->
  81. <img class="gallery-img" src="gallery-image1.jpg" alt="Gallery image 1" />
  82. <img class="gallery-img" src="gallery-image2.jpg" alt="Gallery image 2" />
  83. <img class="gallery-img" src="gallery-image3.jpg" alt="Gallery image 3" />
  84. <!-- ...more images as needed -->
  85. </div>
  86. </body>
  87. </html>
  88.  
Advertisement
Add Comment
Please, Sign In to add comment