Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In case you use this please don't forget to credit me >> https://janitorai.com/profiles/b0970842-3004-4584-96ef-b63e0ec11190_profile-of-iam-devi <<
- <style>
- /* === Buttons === */
- .action-trigger {
- display: inline-block;
- background: /* PRIMARY COLOR HERE */ #cccccc;
- color: /* BUTTON TEXT COLOR */ #000000;
- padding: 10px 20px;
- font-size: 1em;
- font-weight: bold;
- border-radius: 8px;
- border: 2px solid /* BORDER COLOR */ #ffffff;
- cursor: pointer;
- transition: background 0.3s, transform 0.3s;
- margin: 0.5em;
- text-decoration: none;
- text-align: center;
- font-family: /* FONT FAMILY HERE */ sans-serif;
- }
- .action-trigger:hover {
- background: /* PRIMARY HOVER COLOR */ #999999;
- transform: scale(1.05);
- color: /* HOVER TEXT COLOR */ #ffffff;
- }
- /* === Modal Overlay === */
- .modal {
- position: fixed;
- top: 0; left: 0;
- width: 100vw; height: 100vh;
- background: /* OVERLAY COLOR */ rgba(0, 0, 0, 0.5);
- z-index: 99999;
- visibility: hidden;
- opacity: 0;
- transition: opacity 0.3s, visibility 0.3s;
- display: flex;
- align-items: center;
- justify-content: center;
- font-family: /* FONT FAMILY HERE */ sans-serif;
- }
- .modal:target {
- visibility: visible;
- opacity: 1;
- }
- /* === Modal Background Image (Optional) === */
- .modal-bg {
- position: absolute;
- top: 0; left: 0;
- width: 100%;
- height: 100%;
- object-fit: cover;
- z-index: -1;
- pointer-events: none;
- opacity: 1;
- user-select: none;
- }
- /* === Optional Animated Stars === */
- .modal-stars {
- position: absolute;
- top: 0; left: 0;
- width: 100%; height: 100%;
- background:
- radial-gradient(circle, rgba(255, 255, 255, 0.7) 2px, transparent 3px),
- radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.5px, transparent 2.5px);
- background-position: 0 0, 40px 40px;
- background-size: 200px 200px, 150px 150px;
- animation: shimmerStars 30s linear infinite;
- opacity: 0.5;
- z-index: 0;
- pointer-events: none;
- user-select: none;
- }
- @keyframes shimmerStars {
- from { background-position: 0 0, 0 0; }
- to { background-position: 1000px 1000px, 800px 800px; }
- }
- /* === Modal Content === */
- .modal .modal-content {
- position: relative;
- background: /* MODAL BACKGROUND COLOR */ #000000;
- padding: 1rem;
- max-width: 600px;
- width: 90%;
- max-height: 80vh;
- overflow-y: auto;
- border-radius: 8px;
- font-family: /* FONT FAMILY HERE */ sans-serif;
- z-index: 1;
- }
- /* === Modal Heading (Optional) === */
- .modal h2 {
- /* Customize heading styles here */
- font-family: inherit;
- font-weight: bold;
- }
- /* === Close Button === */
- .modal .close {
- position: absolute;
- top: 1rem; right: 1rem;
- font-size: 1.5rem;
- text-decoration: none;
- color: /* CLOSE BUTTON COLOR */ #333333;
- padding: 0.25em 0.5em;
- background: transparent;
- border-radius: 4px;
- transition: background 0.2s;
- }
- .modal .close:hover {
- background: transparent;
- color: /* CLOSE BUTTON HOVER COLOR */ red;
- }
- /* === Offscreen Anchors === */
- .offscreen-anchor {
- position: fixed;
- top: -100vh;
- left: 0;
- width: 0;
- height: 0;
- visibility: hidden;
- pointer-events: none;
- display: none;
- }
- /* === Responsive for Mobile === */
- @media (max-width: 575.98px) {
- .button-container {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 1em;
- padding: 1em;
- }
- .action-trigger {
- width: 100%;
- max-width: 300px;
- }
- }
- .modal-link {
- color: /* MODAL LINK COLOR */ pink;
- text-decoration: underline;
- }
- .button-container {
- display: flex;
- flex-wrap: wrap;
- justify-content: center;
- align-items: center;
- gap: 5px; /* Adjust as needed */
- padding: 5px; /* Adjust as needed */
- }
- </style>
- <!-- Triggers -->
- <div class="button-container">
- <a href="#button1Modal" class="action-trigger">Button 1</a>
- <a href="#button2Modal" class="action-trigger">Button 2</a>
- <a href="#button3Modal" class="action-trigger">Button 3</a>
- <a href="#button4Modal" class="action-trigger">Button 4</a>
- <a href="#button5Modal" class="action-trigger">Button 5</a>
- </div>
- <!-- Modal 1 -->
- <div id="button1Modal" class="modal">
- <img src="INSERT THE BACKGROUND IMAGE LINK" alt="Background" class="modal-bg" />
- <div class="modal-stars"></div>
- <div class="modal-content">
- <a href="#close-button1Modal" class="close" title="Close">✕</a>
- <h2>HERE WILL BE THE TITLE</h2>
- <ul>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- </ul>
- </div>
- </div>
- <div id="close-botsModal" class="offscreen-anchor"></div>
- <!-- Modal 2 -->
- <div id="button2Modal" class="modal">
- <img src="INSERT THE BACKGROUND IMAGE LINK" alt="Background" class="modal-bg" />
- <div class="modal-stars"></div>
- <div class="modal-content">
- <a href="#close-button2Modal" class="close" title="Close">✕</a>
- <h2>HERE WILL BE THE TITLE</h2>
- <p>FIRST PARAGRAPH</p>
- <p>
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a>
- </p>
- </div>
- </div>
- <div id="close-creatorsModal" class="offscreen-anchor"></div>
- <!-- Modal 3 -->
- <div id="button3Modal" class="modal">
- <img src="INSERT THE BACKGROUND IMAGE LINK" alt="Background" class="modal-bg" />
- <div class="modal-stars"></div>
- <div class="modal-content">
- <a href="#close-button3Modal" class="close" title="Close">✕</a>
- <h2>HERE WILL BE THE TITLE</h2>
- <p>FIRST PARAGRAPH</p>
- <p>
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a> ||
- <a href="INSERT LINK HERE" class="modal-link">NAME TO BE SHOWN IN LIST</a>
- </p>
- </div>
- </div>
- <div id="close-belovedModal" class="offscreen-anchor"></div>
- <!-- Modal 4 -->
- <div id="button4Modal" class="modal">
- <img src="INSERT THE BACKGROUND IMAGE LINK" alt="Background" class="modal-bg" />
- <div class="modal-stars"></div>
- <div class="modal-content">
- <a href="#close-button4Modal" class="close" title="Close">✕</a>
- <h2>HERE WILL BE THE TITLE</h2>
- <ul>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- </ul>
- </div>
- </div>
- <div id="close-rulesModal" class="offscreen-anchor"></div>
- <!-- Modal 5 -->
- <div id="button5Modal" class="modal">
- <img src="INSERT THE BACKGROUND IMAGE LINK" alt="Background" class="modal-bg" />
- <div class="modal-stars"></div>
- <div class="modal-content">
- <a href="#close-button5Modal" class="close" title="Close">✕</a>
- <h2>HERE WILL BE THE TITLE</h2>
- <ul>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- <li>EXAMPLE OF TEST IN LIST</li>
- </ul>
- </div>
- </div>
- <div id="close-usageModal" class="offscreen-anchor"></div>
Advertisement
Add Comment
Please, Sign In to add comment