Advertisement
MaxDjently

index.html

Mar 27th, 2025
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.65 KB | Software | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <title>Page Title</title>
  5.     <style>
  6.         body { font-family: Arial, sans-serif; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; background-color: #f0f0f0; }
  7.         header { text-align: center; margin-bottom: 10px; width: 100%; }
  8.         nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
  9.         nav a { text-decoration: none; color: white; background-color: #007bff; padding: 10px 20px; border-radius: 5px; transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); }
  10.         nav a:hover { background-color: #0056b3; transform: translateY(-3px); box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4); }
  11.         nav a:active { transform: translateY(1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
  12.         main { max-width: 800px; padding: 20px; background-color: white; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); margin-top: 20px; text-align: left; }
  13.         footer { margin-top: 20px; text-align: center; }
  14.         .cc-license { display: flex; align-items: center; justify-content: center; margin-top: 20px; }
  15.         .cc-license img { margin-left: 10px; }
  16.         .post { margin-bottom: 20px; margin-top:20px; }
  17.         .post p { margin-bottom: 20px; }
  18.         .video-container { position: relative; width: 100%; max-width: 800px; height: 0; padding-bottom: 56.25%; margin: 0 auto; }
  19.         .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
  20.     </style>
  21.     <script>
  22.         function confirmNavigation(e, name, url){e.preventDefault();if(confirm(`You clicked on the "${name}" link.\nThis will take you to ${url}\nDo you want to proceed?`)){window.location.href=url;}}
  23.     </script>
  24. </head>
  25. <body>
  26.     <header>
  27.         <h1>Page Title</h1>
  28.         <p>Company Tagline</p>
  29.     </header>
  30.     <nav>
  31.         <a href="https://www.facebook.com/" onclick="confirmNavigation(event, 'Facebook', this.href)">Facebook</a>
  32.         <a href="https://x.com/" onclick="confirmNavigation(event, 'X', this.href)">X</a>
  33.         <a href="https://www.youtube.com/" onclick="confirmNavigation(event, 'YouTube', this.href)">YouTube</a>
  34.         <a href="https://gab.com/" onclick="confirmNavigation(event, 'Gab', this.href)">Gab</a>
  35.         <a href="mailto:" onclick="confirmNavigation(event, 'E-Mail', this.href)">E-Mail</a>
  36.         <a href="#license">Creative Commons</a>
  37.     </nav>
  38.     <main>
  39.         <p>Welcome to Page Title.</p>
  40.         <h2>Blog</h2>
  41.         <div id='blog-entries'>
  42. <div class='post'>Tue Mar 18 02:39:40 PDT 2025:<p><h3>Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film</h3></p><p>Channel: Blender</p></div><div class='video-container'><iframe loading="lazy" width="560" height="315" src="https://www.youtube.com/embed/aqz-KE-bpKQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
  43.         </div>
  44.     </main>
  45.     <footer>
  46.         <div class="cc-license">
  47.             <h2 id="license">This work is licensed under:</h2>
  48.             <img src="https://licensebuttons.net/l/by/4.0/88x31.png" alt="Creative Commons License" title="Creative Commons License">
  49.         </div>
  50.         <p><a href="https://creativecommons.org/licenses/by/4.0/" onclick="confirmNavigation(event, 'Creative Commons License', this.href)">Creative Commons Attribution 4.0 International License</a>.</p>
  51.     </footer>
  52. </body>
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement