diff options
author | Daniel Jones <daniel@danieljon.es> | 2024-10-28 20:23:14 +1100 |
---|---|---|
committer | Daniel Jones <daniel@danieljon.es> | 2024-10-28 20:23:14 +1100 |
commit | ef4a3a9d6542e3ec5ead30e92f43efa5604e0cff (patch) | |
tree | 1fd94fabdb28fa9686c2ac05e106fe9c64c74935 /template.txt | |
parent | 711f775afb7295b753d1c3d9773450ca5b799dad (diff) | |
download | websitegenerator-ef4a3a9d6542e3ec5ead30e92f43efa5604e0cff.tar.gz websitegenerator-ef4a3a9d6542e3ec5ead30e92f43efa5604e0cff.zip |
more template changes
Diffstat (limited to 'template.txt')
-rw-r--r-- | template.txt | 51 |
1 files changed, 43 insertions, 8 deletions
diff --git a/template.txt b/template.txt index 1c22bd5..ebe29b3 100644 --- a/template.txt +++ b/template.txt @@ -49,18 +49,29 @@ div.cover{display:inline-block; vertical-align: top; padding-top: 28px; padding- background-repeat: repeat; background-size: auto 100%; animation: scroll-bg 15s linear infinite; - position: relative; /* This makes the div the positioning context */ - width: 50%; /* Match the original table width */ - margin: auto; /* Center the div */ + position: relative; + width: 50%; + margin: 0 auto; + min-width: 300px; + max-width: 100%; } + @keyframes scroll-bg { - from { - background-position: 100% 0; + 0% { + background-position-x: 100%; + } + 100% { + background-position-x: 0%; } - to { - background-position: 0 0; +} + +/* Media query for small screens */ +@media screen and (max-width: 600px) { + #links { + width: 95%; } } + a { color: #c625ef; text-decoration: none; @@ -198,6 +209,25 @@ table { z-index: 1; background: transparent; } + +.title-container { + display: flex; + align-items: center; + justify-content: center; + gap: 10px; /* space between elements */ +} + +.title-gif { + width: 100px; + height: 100px; + background-image: url('https://danieljones.au/media/tux_dance.gif'); + background-size: contain; + background-repeat: no-repeat; +} + +.title-gif.right { + transform: scaleX(-1); /* flip the right gif */ +} </style> </head> <body> @@ -207,7 +237,11 @@ table { document.write("<div class='walker-left'></div>"); document.write("<div class='walker-right'></div>"); </script>--> - <h1><a href="/">Daniel's Homepage</a></h1> + <h1 class="title-container"> + <div class="title-gif"></div> + <a href="/">daniels homepage</a> + <div class="title-gif right"></div> + </h1> <div id="links"> <div class="running-sprite"></div> <table border="1" width="100%" align="center"> @@ -231,6 +265,7 @@ table { <div class="middle"> <a href="https://www.fsf.org/"><img src="https://danieljon.es/media/fsf_member.png" alt="FSF member"></a></div> <br> <div id="gentag">page generated {TIME} using <a href="https://git.danieljon.es/websitegenerator/">websitegenerator in C</a></div> <a href="https://gnupluslinux.com/anime/escalator.webm"><img src="https://danieljones.au/media/tux_rotate.gif" style="z-index: -1; position: fixed; right: 0%; bottom: -0px; width: 15%; height: auto;"></a> + <a href="https://gnupluslinux.com/anime/escalator.webm"><img src="https://danieljones.au/media/i_love_you.gif" style="z-index: -1; position: fixed; left: 0%; bottom: -0px; width: 100px; height: auto;"></a> <div class="walker-left"></div> <div class="walker-right"></div> <div class="walker"></div> |