From 711f775afb7295b753d1c3d9773450ca5b799dad Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Mon, 28 Oct 2024 17:21:19 +1100 Subject: some template fun --- template.txt | 184 +++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 167 insertions(+), 17 deletions(-) (limited to 'template.txt') diff --git a/template.txt b/template.txt index 1f9c2d6..1c22bd5 100644 --- a/template.txt +++ b/template.txt @@ -29,7 +29,7 @@ body { color: white; background-color: #281b38; - background-image: url('/media/bg.gif'); + background-image: url('https://danieljones.au/media/bg.gif'); } img{max-width: 100%; max-height: 100%; overflow: hidden;} @@ -44,6 +44,23 @@ div.cover{display:inline-block; vertical-align: top; padding-top: 28px; padding- .content{max-width: 75%; margin: auto;} .pinned{margin-left: 10px; display: inline-block; border-width: 1px; width: auto; outline: 1px solid #000; outline-offset: 10px;} .notes{margin-left: 10px; display: inline-block; border-width: 1px; width: auto; outline: 1px solid #000; outline-offset: 10px; max-height: 300px; max-width: 500px; overflow-y:scroll; /*background-color: #333339; color: #fff;*/} +#links { + background-image: url('https://danieljones.au/media/rainbow.jpg'); + 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 */ +} +@keyframes scroll-bg { + from { + background-position: 100% 0; + } + to { + background-position: 0 0; + } +} a { color: #c625ef; text-decoration: none; @@ -56,25 +73,155 @@ a { td {text-align: center;} /*a{color: #eee;}*/ - - - +#links a { + padding: 2px 8px; + color: #281b38; + text-shadow: + -1px -1px 0 white, + 1px -1px 0 white, + -1px 1px 0 white, + 1px 1px 0 white; + transition: all 0.2s; +} + +#links a:hover { + color: white; + text-shadow: + -1px -1px 0 #281b38, + 1px -1px 0 #281b38, + -1px 1px 0 #281b38, + 1px 1px 0 #281b38; +} + +.running-sprite { + position: absolute; + top: -61px; /* Adjust this value to align with the top border */ + left: 0; + width: 49px; /* Adjust based on your sprite's actual size */ + height: 61px; /* Adjust based on your sprite's actual size */ + background-image: url('https://danieljones.au/media/running_girl.gif'); + animation: run-sprite 8s linear infinite; + transform: scaleX(1); + z-index: 1; +} + +@keyframes run-sprite { + 0% { + left: 0; + transform: scaleX(1); + } + 45% { + left: calc(100% - 32px); /* Adjust based on sprite width */ + transform: scaleX(1); + } + 50% { + left: calc(100% - 32px); + transform: scaleX(-1); + } + 95% { + left: 0; + transform: scaleX(-1); + } + 100% { + left: 0; + transform: scaleX(1); + } +} + +table { + position: relative; /* Ensure the table's position is a reference point */ + z-index: 0; /* Place table behind the sprite */ +} + +.walker-left, .walker-right { + position: fixed; + width: 200px; + height: 200px; + background-image: url('https://danieljones.au/media/chiyo_walk.gif'); + background-size: contain; + background-repeat: no-repeat; + pointer-events: none; + z-index: -1; + opacity: 0; +} + +.walker-left { + animation: walk-left 6s linear infinite; + transform: scaleX(1); +} + +.walker-right { + animation: walk-right 6s linear infinite; + transform: scaleX(-1); + animation-delay: 3s; +} + +@keyframes walk-left { + 0% { + left: 60%; + bottom: 0; + transform: scaleX(1) scale(0.2); + opacity: 0; + } + 20% { + opacity: 1; + } + 100% { + left: 20%; + bottom: 70%; + transform: scaleX(1) scale(2); + opacity: 0; + } +} + +@keyframes walk-right { + 0% { + left: 40%; + bottom: 0; + transform: scaleX(-1) scale(0.2); + opacity: 0; + } + 20% { + opacity: 1; + } + 100% { + left: 80%; + bottom: 70%; + transform: scaleX(-1) scale(2); + opacity: 0; + } +} + +/* Ensure main content stays above walkers */ +.middle { + position: relative; + z-index: 1; + background: transparent; +} + + +
-

danieljon.es

- - - - - - - - - -
indexpostsopinions portfolio
- {INFO} +

Daniel's Homepage

+ + {INFO}
{CONTENT} @@ -83,6 +230,9 @@ td {text-align: center;}

RSS feed
FSF member

page generated {TIME} using websitegenerator in C
- + +
+
+
-- cgit v1.2.3