7f

web1

7f
Oct 16th, 2025
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 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. font-family: Arial, Helvetica, sans-serif;
  12. height: 100%;
  13. background: #000;
  14. color: white;
  15. }
  16.  
  17. /* Main section background with title overlay */
  18. .main-section {
  19. position: relative;
  20. min-height: 100vh;
  21. background-image: url('your-background-image.jpg');
  22. background-size: cover;
  23. background-position: center;
  24. color: white;
  25. }
  26.  
  27. .overlay-title {
  28. position: absolute;
  29. top: 50%;
  30. left: 50%;
  31. transform: translate(-50%, -50%);
  32. background: rgba(0, 0, 0, 0.5);
  33. padding: 40px 80px;
  34. border-radius: 10px;
  35. font-size: 3em;
  36. text-align: center;
  37. z-index: 2;
  38. }
  39.  
  40. .fade-overlay {
  41. position: absolute;
  42. bottom: 0;
  43. left: 0;
  44. width: 100%;
  45. height: 50vh;
  46. background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
  47. pointer-events: none;
  48. z-index: 1;
  49. }
  50.  
  51. /* Left content + banner section */
  52. .content-container {
  53. display: flex;
  54. background: #000;
  55. min-height: 80vh;
  56. padding: 40px;
  57. gap: 40px;
  58. }
  59.  
  60. .main-content {
  61. flex: 2;
  62. background: #111;
  63. padding: 20px;
  64. border-radius: 10px;
  65. overflow-y: auto;
  66. }
  67.  
  68. .main-content h2 {
  69. margin-top: 0;
  70. }
  71.  
  72. .side-banner {
  73. flex: 1;
  74. background: #181818;
  75. padding: 15px;
  76. border-left: 2px solid #333;
  77. border-radius: 10px;
  78. }
  79.  
  80. .side-banner h3 {
  81. margin-top: 0;
  82. text-align: center;
  83. }
  84.  
  85. .banner-item {
  86. background: #222;
  87. padding: 10px;
  88. margin-bottom: 10px;
  89. border-radius: 6px;
  90. }
  91.  
  92. /* Gallery section */
  93. .gallery-section {
  94. background: #000;
  95. padding: 60px 15px;
  96. display: flex;
  97. flex-wrap: wrap;
  98. gap: 20px;
  99. justify-content: center;
  100. }
  101.  
  102. .gallery-img {
  103. width: 200px;
  104. height: 140px;
  105. object-fit: cover;
  106. border-radius: 8px;
  107. box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  108. }
  109.  
  110. @media (max-width: 800px) {
  111. .content-container {
  112. flex-direction: column;
  113. padding: 20px;
  114. }
  115. .side-banner {
  116. order: -1;
  117. }
  118. }
  119. </style>
  120. </head>
  121. <body>
  122.  
  123. <div class="main-section">
  124. <div class="overlay-title">My Website</div>
  125. <div class="fade-overlay"></div>
  126. </div>
  127.  
  128. <div class="content-container">
  129. <div class="main-content">
  130. <h2>Write Your Thoughts</h2>
  131. <p>This is your writing section. You can add multiple paragraphs, blog-style posts, notes, or descriptions.</p>
  132. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum at mi sed felis facilisis pulvinar. Nulla facilisi.</p>
  133. <p>Aliquam euismod sapien vel ante tincidunt, nec semper neque blandit.</p>
  134. </div>
  135.  
  136. <div class="side-banner">
  137. <h3>Banner Content</h3>
  138. <div class="banner-item">Feature 1 or Ad Space</div>
  139. <div class="banner-item">Feature 2 or Announcement</div>
  140. <div class="banner-item">Feature 3 or Image</div>
  141. </div>
  142. </div>
  143.  
  144. <div class="gallery-section">
  145. <img class="gallery-img" src="gallery-image1.jpg" alt="Gallery image 1" />
  146. <img class="gallery-img" src="gallery-image2.jpg" alt="Gallery image 2" />
  147. <img class="gallery-img" src="gallery-image3.jpg" alt="Gallery image 3" />
  148. </div>
  149.  
  150. </body>
  151. </html>
  152.  
Advertisement
Add Comment
Please, Sign In to add comment