24kDxrxk

HTML 1

Oct 15th, 2024
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Combined Page</title>
  7. <style>
  8. /* Remove scrollbar */
  9. body {
  10. margin: 0;
  11. overflow: hidden;
  12. display: flex;
  13. flex-direction: column;
  14. justify-content: center; /* Center content vertically */
  15. align-items: center;
  16. height: 100vh; /* Full viewport height */
  17. background-color: transparent; /* Optional: background color for better visibility */
  18. }
  19.  
  20. /* Center the first button */
  21. .centered {
  22. display: flex;
  23. justify-content: center;
  24. align-items: center;
  25. margin-bottom: 20px; /* Space between buttons */
  26. }
  27.  
  28. /* Image button with 3D hover effect */
  29. .image-button img {
  30. width: 150px;
  31. height: auto;
  32. transition: transform 0.2s, box-shadow 0.2s;
  33. cursor: pointer; /* Change cursor to pointer */
  34. }
  35.  
  36. .image-button img:hover {
  37. transform: scale(1.1); /* Scale to 110% on hover */
  38. }
  39.  
  40. /* Styling for the second button text */
  41. .button-container {
  42. position: relative;
  43. display: flex;
  44. justify-content: center;
  45. align-items: center;
  46. }
  47.  
  48. a img {
  49. width: 50px;
  50. height: 50px;
  51. transition: transform 0.3s ease, box-shadow 0.3s ease;
  52. margin: 0 10px; /* Adjusted margin for spacing */
  53. }
  54.  
  55. a:hover img {
  56. transform: scale(1.1); /* Scale to 110% on hover */
  57. }
  58.  
  59. span {
  60. position: absolute;
  61. left: 60px; /* Initially hidden off to the side */
  62. font-family: serif;
  63. font-size: 18px;
  64. font-weight: bold;
  65. opacity: 0;
  66. transition: opacity 0.3s ease, transform 0.3s ease;
  67. transform: scale(0.8, 1.5); /* Squished horizontally and tall vertically */
  68. white-space: nowrap;
  69. }
  70.  
  71. /* Hover effects */
  72. .button-container:hover span {
  73. opacity: 1;
  74. transform: translateX(10px) scale(0.8, 1.5);
  75. }
  76.  
  77. /* Smaller buttons on small devices */
  78. @media (max-width: 600px) {
  79. .image-button img {
  80. width: 70px; /* Reduced size for the first image button on smaller devices */
  81. height: auto;
  82. }
  83.  
  84. .button-container a img {
  85. width: 40px; /* Smaller size for other buttons */
  86. height: 40px;
  87. }
  88.  
  89. span {
  90. font-size: 14px; /* Smaller text for small devices */
  91. }
  92. }
  93. </style>
  94. </head>
  95. <body>
  96.  
  97. <!-- First centered image button with music -->
  98. <div class="centered">
  99. <a href="https://sites.google.com/view/pathetic-scripts/home/scripts" class="image-button" target="_blank" onclick="playMusic()">
  100. <img src="https://iili.io/2HZDl0N.png" alt="Button Image">
  101. </a>
  102. </div>
  103.  
  104. <!-- Autoplay background music -->
  105. <audio id="background-music" loop>
  106. <source src="https://dl.sndup.net/99z4j/Jaydes%20-%20Junkie.mp3" type="audio/mpeg">
  107. Your browser does not support the audio element.
  108. </audio>
  109.  
  110. <!-- Second hover button with text -->
  111. <div class="button-container">
  112. <a href="https://discord.com/users/1031695477592309840" target="_blank">
  113. <img src="https://iili.io/2H6eSX2.png" alt="Discord">
  114. </a>
  115. <a href="https://f29cc861.solaraweb-alj.pages.dev/download/static/files/Bootstrapper.exe" target="_blank">
  116. <img src="https://iili.io/2HiheYG.png" alt="Solara">
  117. </a>
  118. </div>
  119.  
  120. <script>
  121. function playMusic() {
  122. var audio = document.getElementById('background-music');
  123. audio.play();
  124. }
  125. </script>
  126.  
  127. </body>
  128. </html>
  129.  
Advertisement
Add Comment
Please, Sign In to add comment