Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <!-- this page was designed my nervsy!!!! visit my webpage at mididump.neocities.com
- for live previews go to nervslayouts.neocities.org!!! you can use it and tweak it, these are very basic and are meant to be customized to your liking!!! LIVE PREVIEW https://nervslayouts.neocities.org/sweetgallery -->
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" type="image/x-icon" href="favicon/favicon.ico">
- <title>my sweet gallery ♥</title>
- <style>
- body {
- font-family: ms gothic;
- display: flex;
- flex-direction: column;
- align-items: center;
- margin: 0;
- background-color: #ffa483;
- }
- .gallery {
- display: grid;
- grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
- gap: 10px;
- width: 75%;
- margin-top: 20px;
- }
- .gallery img {
- width: 100%;
- height: auto;
- cursor: pointer;
- }
- .full-image {
- display: none;
- flex-direction: column;
- align-items: center;
- }
- .full-image img {
- width: auto;
- max-width: 100%;
- height: auto;
- max-height: 80vh;
- }
- .back-button {
- display: none;
- margin-top: 10px;
- padding: 10px 20px;
- font-size: 16px;
- cursor: pointer;
- border: none;
- background-color: #ff4703;
- color: #ffa483;
- border-radius: 5px;
- }
- </style>
- </head>
- <body>
- <button class="back-button" onclick="showGallery()">return</button>
- <div class="gallery" id="gallery">
- <img src="https://i.pinimg.com/736x/8a/c3/7c/8ac37c6d6d0523c48dd1d09e0a5c73dc.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/fd/a4/3e/fda43edbee606b36d477ebbc47dc9beb.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/b9/64/96/b964965222d877e94866f946067957cb.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/80/3b/7a/803b7a7fd0d393e3ad09b069fc3190b4.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/da/69/8b/da698b5a0531e66d6dca5a5294c63ae6.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/3f/b4/15/3fb415562ffe4d1b0f0b76d9b7ae592f.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/50/d2/9c/50d29ce4c09a3eafe9e5a0742d4a390f.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/78/0b/33/780b3317c3e62a9034e6e96fe056ef7f.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/b2/5e/61/b25e615b6ea621ada80e62be82f49218.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/96/0d/9c/960d9c428551d19cf7c8f2b8fd9ab247.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/c6/a2/23/c6a22342e2348bf807bfe1bae69170e8.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/79/44/d7/7944d754c0d9b3093aec25be3038eb40.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/c3/42/a4/c342a47b5cf310241f5efb74f44ff9ba.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/60/4c/af/604caf9a917e3d0e5fba8d4028e097df.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/77/93/6b/77936b529de0143d427d785891ce8457.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/75/c9/7c/75c97ce2004d618381241e3e70f49890.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/02/7f/8c/027f8ce677800f0c3f5129d1fad337d1.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <img src="https://i.pinimg.com/736x/3f/97/e4/3f97e4e0253669bc424f67cf9f44a041.jpg" alt="picture" title="this is a sample image, replace with your own!!!" onclick="showImage(this)" >
- <!-- Add more images as needed -->
- </div>
- <div class="full-image" id="fullImage">
- <img id="fullImageView" src="" alt="full res">
- </div>
- <script>
- function showImage(element) {
- document.getElementById('fullImageView').src = element.src;
- document.getElementById('gallery').style.display = 'none';
- document.getElementById('fullImage').style.display = 'flex';
- document.querySelector('.back-button').style.display = 'block';
- }
- function showGallery() {
- document.getElementById('fullImage').style.display = 'none';
- document.getElementById('gallery').style.display = 'grid';
- document.querySelector('.back-button').style.display = 'none';
- }
- </script>
- </body>
- </html>
Advertisement
Comments
-
- Live Preview: https://nervslayouts.neocities.org/sweetgallery
Add Comment
Please, Sign In to add comment