Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- /* "TREASURE GARDEN V.1.0" Template, send any questions to [email protected]! Powered by hope for the future. */
- /* Style the .grid here. Changes made here reflect across all elements within the .grid. */
- .grid {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- grid-template-rows: repeat(2, 1fr);
- grid-column-gap: 10px;
- grid-row-gap: 10px;
- max-width: 1200px;
- font-family: "ms ui gothic";
- margin-top: 4.3%
- }
- /* Style the .about grid here. */
- .about {
- grid-area: 1 / 1 / 3 / 2;
- background-color: #F4EBFA;
- border: 1px solid #9646CF;
- text-align: left;
- }
- /* Style <ul> here. You can change the bullet point. */
- ul {
- padding: 0px;
- margin: 0px;
- margin-left: 25px;
- margin-right: 10px;
- list-style-type:"»"
- }
- /* Style the .likes grid here. */
- .likes {
- grid-area: 1 / 2 / 2 / 3;
- background-color: #F4EBFA;
- border: 1px solid #9646CF;
- text-align: left;
- }
- /* Style the .dislikes grid here. */
- .dislikes {
- grid-area: 1 / 3 / 2 / 4;
- background-color: #F4EBFA;
- border: 1px solid #9646CF;
- text-align: left;
- }
- /* Style the wide .main grid here. */
- .main {
- grid-area: 2 / 2 / 3 / 4;
- background-color: #F4EBFA;
- border: 1px solid #9646CF;
- }
- /* Style the tab */
- .tab {
- overflow: hidden;
- background-color: #79EDBB;
- }
- /* Style the buttons inside the tab */
- .tab button {
- float: left;
- border: none;
- outline: none;
- cursor: pointer;
- padding: 14px 16px;
- transition: 0.3s;
- font-family:"ms gothic";
- font-weight: bold;
- text-align: left;
- margin: 0px;
- padding: 5px;
- color: white;
- background-color: #47E6A1;
- }
- /* Change background color of buttons on hover */
- .tab button:hover {
- background-color: #98F1CA;
- }
- /* Create an active/current tablink class */
- .tab button.active {
- background-color: #1FE08C;
- }
- /* Style the tab content */
- .tabcontent {
- text-align: left;
- padding: 10px;
- padding-top: 0px;
- max-height: 300px;
- overflow-y: scroll;
- scrollbar-color: #1FE08C #79EDBB;
- scrollbar-width: thin;
- }
- /* Style the .links grid here. */
- .links {
- grid-area: 1 / 4 / 3 / 5;
- background-color: #F4EBFA;
- border: 1px solid #9646CF;
- text-align: left;
- }
- /* Changes the text that's placed on top of the header
- "text-shadow" is used to make a border, you are able to change the color.
- You may have to change "top" and "left" depending on what font you're using. */
- .title {
- color: #79EDBB;
- font-family: "Graffiti";
- font-size: 100px;
- transform: rotate(-0.03turn);
- text-align: left;
- position: absolute;
- left: 280px;
- top: 20px;
- text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
- 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
- }
- /* This is the div that is used for the .grid titles, you can change the gradient here. */
- .info {
- margin: 0px;
- padding: 0px;
- background: linear-gradient(180deg,rgba(150, 70, 207, 1) 45%, rgba(235, 189, 255, 1) 90%);
- }
- /* This is what gives the icon a rounded look. The animation that plays when you stop hovering over it is also here. */
- .icon {
- border-radius: 150px;
- transition: transform .7s ease-in-out;
- }
- /* This is what makes the icon spin when hovering over it. */
- .icon:hover {
- transform: rotate(360deg);
- }
- /* Small div that displays below the main div. */
- .bottom {
- background-color: #9646CF;
- max-width: 200px;
- color: white;
- text-align: center;
- border: 1px solid;
- border-color: white;
- font-family: "ms ui gothic";
- font-size:14px;
- }
- /* This media query is responsible for making the website responsive. */
- @media only screen and (max-width: 600px) {
- .about {grid-area: 1 / span 5;}
- .likes {grid-area: 2 / span 5;}
- .dislikes {grid-area: 3 / span 5;}
- .main {grid-area: 4 / span 5;}
- .links {grid-area: 5 / span 5;}
- }
- /* This removes the .title when on mobile devices. */
- @media (max-width: 600px) {
- .title {
- display: none;
- }
- }
- /* Change background here. */
- body {background-image: url('BACKGROUND URL');
- background-repeat: no-repeat;
- background-attachment: fixed;
- background-size: cover;
- }
- /* You can add custom fonts here.
- "font-family" is the name you denote to your font, it can be anything, it doesn't have to match the file name.
- I recommend placing the font in a font sub-folder on your NeoCities dashboard. */
- @font-face {
- font-family: "CUSTOM FONT";
- src: url(CUSTOM FONT URL);
- }
- /* Style h1 here */
- h1 {
- font-size:25px;
- font-family:"ms gothic";
- margin: 0px;
- padding: 0px;
- color: white;
- }
- /* Style h2 here */
- h2 {
- font-size:18px;
- font-family:"ms gothic";
- padding-left: 20px;
- }
- /* You can change the look of links here. */
- a:link {
- color: #79EDBB;
- background-color: transparent;
- text-decoration: underline;
- font-weight: bold;
- }
- /* Changes the look of visited links */
- a:visited {
- color: #79EDBB;
- background-color: transparent;
- text-decoration: underline;
- font-weight: bold;
- }
- </style>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>TITLE</title>
- <link rel="icon" type="image/x-icon" href="FAVICON URL">
- </head>
- <body>
- <center>
- <div class="title">TITLE</div>
- <div class="grid">
- <div class="about">
- <div class="info"> <center> <h1>TITLE</h1> </center> </div>
- <center>
- <img class="icon" src="SPINNING IMAGE URL" style="max-width: 95%; padding-top: 8px;">
- <br>
- </center>
- </div>
- <div class="likes">
- <div class="info"> <center><h1>TITLE</h1></center> </div>
- <div class="container">
- </div>
- </div>
- <div class="dislikes">
- <div class="info"> <center><h1>TITLE</h1></center> </div>
- <div class="container">
- </div>
- </div>
- <div class="main">
- <div class="info"> <h1>TITLE</h1> </div>
- <div class="tab">
- <button class="tablinks" onclick="openTab(event, 'Videogames')" id="defaultOpen">TAB 1</button> <!-- ATTENTION: If you rename these, don't forget to rename them everywhere else! -->
- <button class="tablinks" onclick="openTab(event, 'Animanga')">TAB 2</button>
- <button class="tablinks" onclick="openTab(event, 'Music')">TAB 3</button>
- <button class="tablinks" onclick="openTab(event, 'Other')">TAB 4</button>
- </div>
- <div id="Videogames" class="tabcontent">
- Content.
- </div>
- <div id="Animanga" class="tabcontent">
- Content.
- </div>
- <div id="Music" class="tabcontent">
- Content.
- </div>
- <div id="Other" class="tabcontent">
- Content.
- </div>
- <script>
- function openTab(evt, interestTab) {
- var i, tabcontent, tablinks;
- tabcontent = document.getElementsByClassName("tabcontent");
- for (i = 0; i < tabcontent.length; i++) {
- tabcontent[i].style.display = "none";
- }
- tablinks = document.getElementsByClassName("tablinks");
- for (i = 0; i < tablinks.length; i++) {
- tablinks[i].className = tablinks[i].className.replace(" active", "");
- }
- document.getElementById(interestTab).style.display = "block";
- evt.currentTarget.className += " active";
- }
- // Get the element with id="defaultOpen" and click on it
- document.getElementById("defaultOpen").click();
- </script>
- </div>
- <div class="links">
- <div class="info"> <center> <h1>TITLE</h1> </center> </div>
- </div>
- </div>
- <br>
- <div class="bottom">
- Template by <a href="https://recarmdra.neocities.org/">recarmdra</a>.
- </div>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment