Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>My Website</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <style>
- body, html {
- margin: 0;
- padding: 0;
- font-family: Arial, Helvetica, sans-serif;
- height: 100%;
- background: #000;
- color: white;
- }
- /* Main section background with title overlay */
- .main-section {
- position: relative;
- min-height: 100vh;
- background-image: url('your-background-image.jpg');
- background-size: cover;
- background-position: center;
- color: white;
- }
- .overlay-title {
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- background: rgba(0, 0, 0, 0.5);
- padding: 40px 80px;
- border-radius: 10px;
- font-size: 3em;
- text-align: center;
- z-index: 2;
- }
- .fade-overlay {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 50vh;
- background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
- pointer-events: none;
- z-index: 1;
- }
- /* Left content + banner section */
- .content-container {
- display: flex;
- background: #000;
- min-height: 80vh;
- padding: 40px;
- gap: 40px;
- }
- .main-content {
- flex: 2;
- background: #111;
- padding: 20px;
- border-radius: 10px;
- overflow-y: auto;
- }
- .main-content h2 {
- margin-top: 0;
- }
- .side-banner {
- flex: 1;
- background: #181818;
- padding: 15px;
- border-left: 2px solid #333;
- border-radius: 10px;
- }
- .side-banner h3 {
- margin-top: 0;
- text-align: center;
- }
- .banner-item {
- background: #222;
- padding: 10px;
- margin-bottom: 10px;
- border-radius: 6px;
- }
- /* Gallery section */
- .gallery-section {
- background: #000;
- padding: 60px 15px;
- display: flex;
- flex-wrap: wrap;
- gap: 20px;
- justify-content: center;
- }
- .gallery-img {
- width: 200px;
- height: 140px;
- object-fit: cover;
- border-radius: 8px;
- box-shadow: 0 2px 10px rgba(0,0,0,0.4);
- }
- @media (max-width: 800px) {
- .content-container {
- flex-direction: column;
- padding: 20px;
- }
- .side-banner {
- order: -1;
- }
- }
- </style>
- </head>
- <body>
- <div class="main-section">
- <div class="overlay-title">My Website</div>
- <div class="fade-overlay"></div>
- </div>
- <div class="content-container">
- <div class="main-content">
- <h2>Write Your Thoughts</h2>
- <p>This is your writing section. You can add multiple paragraphs, blog-style posts, notes, or descriptions.</p>
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum at mi sed felis facilisis pulvinar. Nulla facilisi.</p>
- <p>Aliquam euismod sapien vel ante tincidunt, nec semper neque blandit.</p>
- </div>
- <div class="side-banner">
- <h3>Banner Content</h3>
- <div class="banner-item">Feature 1 or Ad Space</div>
- <div class="banner-item">Feature 2 or Announcement</div>
- <div class="banner-item">Feature 3 or Image</div>
- </div>
- </div>
- <div class="gallery-section">
- <img class="gallery-img" src="gallery-image1.jpg" alt="Gallery image 1" />
- <img class="gallery-img" src="gallery-image2.jpg" alt="Gallery image 2" />
- <img class="gallery-img" src="gallery-image3.jpg" alt="Gallery image 3" />
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment