| 1 |
--- |
| 2 |
import { Image } from 'astro:assets'; |
| 3 |
import Layout from '../layouts/Layout.astro'; |
| 4 |
import createdWith from '../assets/img/createdwith.jpeg'; |
| 5 |
import navigatorGif from '../assets/img/navigator.gif'; |
| 6 |
|
| 7 |
const title = "htmx webring"; |
| 8 |
--- |
| 9 |
|
| 10 |
<Layout title={title}> |
| 11 |
<style> |
| 12 |
h1 { |
| 13 |
display: none; |
| 14 |
} |
| 15 |
|
| 16 |
footer { |
| 17 |
display: none; |
| 18 |
} |
| 19 |
|
| 20 |
#webring-div { |
| 21 |
font-family: Times New Roman; |
| 22 |
} |
| 23 |
|
| 24 |
@media only screen and (max-width: 720px) { |
| 25 |
.built-with-tds { |
| 26 |
display: none; |
| 27 |
} |
| 28 |
} |
| 29 |
</style> |
| 30 |
|
| 31 |
<div id="webring-div"> |
| 32 |
|
| 33 |
<table id="nav-table" style="border: black 4px double; text-align: center"> |
| 34 |
<tr> |
| 35 |
<td class="built-with-tds" style="border: 1px black solid"> |
| 36 |
<Image width={200} src={createdWith} alt="Site created with htmx, The Right Way." /> |
| 37 |
</td> |
| 38 |
<td width="70%" style="text-align: center; font-size: 20px; border: 1px black solid"> |
| 39 |
This Great <a href="https://htmx.org">htmx</a> Webring site is owned by <a |
| 40 |
href="https://bigsky.software">Your Name Here</a>. |
| 41 |
</td> |
| 42 |
<td class="built-with-tds" style="border: 1px black solid"> |
| 43 |
<Image width={200} src={createdWith} alt="Site created with htmx, The Right Way." /> |
| 44 |
</td> |
| 45 |
</tr> |
| 46 |
<tr> |
| 47 |
<td colspan="3" style="text-align: center; ; border: 1px black solid; position: relative"> |
| 48 |
{`[`}<a |
| 49 |
class="nav-link" |
| 50 |
href="#" |
| 51 |
_={`on click |
| 52 |
set links to <a/> in the #ring-table |
| 53 |
decrement :index |
| 54 |
if :index is -1 |
| 55 |
get the length of the links |
| 56 |
set :index to the result - 1 |
| 57 |
end |
| 58 |
log :index |
| 59 |
get links[:index] |
| 60 |
set the #webring's src to the result's @href |
| 61 |
`}>Prev</a>{`][`}<a href="#" class="nav-link" _={`on click |
| 62 |
set links to <a/> in the #ring-table |
| 63 |
get the :index |
| 64 |
repeat until the result is not :index |
| 65 |
get Math.floor(Math.random() * length of the links) |
| 66 |
end |
| 67 |
set the :index to the result |
| 68 |
get links[:index] |
| 69 |
set the #webring's src to the result's @href |
| 70 |
`}>Random</a>{`][`}<a href="#" class="nav-link" _={`on click |
| 71 |
set links to <a/> in the #ring-table |
| 72 |
increment :index |
| 73 |
if :index is length of the links |
| 74 |
set :index to 0 |
| 75 |
end |
| 76 |
get links[:index] |
| 77 |
set the #webring's src to the result's @href |
| 78 |
`}>Next</a>{`]`}<br/> |
| 79 |
{`[`}<a href="#" id="show-sites" |
| 80 |
_={`on click |
| 81 |
transition the #webring's opacity to 0 |
| 82 |
hide the #webring |
| 83 |
transition #site-table's height to 100% over 300ms then |
| 84 |
hide me then |
| 85 |
show #return-to-webring`}>List Sites</a><a href="#" id="return-to-webring" |
| 86 |
style="display: none" |
| 87 |
_={`on click |
| 88 |
transition #site-table's height to 0px over 800ms then |
| 89 |
show the #webring |
| 90 |
transition the #webring's opacity to 100% |
| 91 |
hide me then |
| 92 |
show #show-sites`}>Return To Webring</a>{`]`} |
| 93 |
<Image src={navigatorGif} alt="" |
| 94 |
_={`on click from .nav-link |
| 95 |
log 'here' |
| 96 |
transition my opacity to 100% |
| 97 |
on load from #webring |
| 98 |
transition my opacity to 0%`} |
| 99 |
style="opacity: 0; float: right; width: 38px; position:absolute; right:2px; bottom: 2px" /> |
| 100 |
</td> |
| 101 |
</tr> |
| 102 |
</table> |
| 103 |
|
| 104 |
<div id="site-table" style="height: 0px; overflow: hidden"> |
| 105 |
<table> |
| 106 |
<thead> |
| 107 |
<tr> |
| 108 |
<th>Name</th> |
| 109 |
<th>Description</th> |
| 110 |
</tr> |
| 111 |
</thead> |
| 112 |
<tbody id="ring-table"> |
| 113 |
<tr> |
| 114 |
<td><a rel="nofollow" target="_blank" href="https://www.commspace.co.za/">Commspace</a></td> |
| 115 |
<td>The ultimate solution for managing, tracking, splitting and analysing Financial Adviser |
| 116 |
revenue. |
| 117 |
</td> |
| 118 |
</tr> |
| 119 |
<tr> |
| 120 |
<td><a rel="noopener" target="_blank" href="https://zorro.management">Zorro Management</a></td> |
| 121 |
<td>Manage your projects, time, and progress!</td> |
| 122 |
</tr> |
| 123 |
<tr> |
| 124 |
<td><a rel="nofollow" target="_blank" href="https://www.contexte.com/">Contexte</a></td> |
| 125 |
<td>L'écosystème politique, au-delà des politiques publiques sectorielles : les métiers, les gens, |
| 126 |
les textes, les institutions |
| 127 |
</td> |
| 128 |
</tr> |
| 129 |
<tr> |
| 130 |
<td><a rel="nofollow" target="_blank" href="https://ocaml.org/">ocaml.org</a></td> |
| 131 |
<td>An industrial-strength functional programming language with an emphasis on expressiveness and |
| 132 |
safety |
| 133 |
</td> |
| 134 |
</tr> |
| 135 |
<tr> |
| 136 |
<td><a rel="nofollow" target="_blank" href="https://www.nikevision.com/">Nike Vision</a></td> |
| 137 |
<td>Eye-wear</td> |
| 138 |
</tr> |
| 139 |
<tr> |
| 140 |
<td><a rel="nofollow" target="_blank" href="https://vanillaweather.com/">Vanilla Weather</a></td> |
| 141 |
<td>No ads. No tracking. Just the weather.</td> |
| 142 |
</tr> |
| 143 |
<tr> |
| 144 |
<td><a rel="nofollow" target="_blank" href="https://turboscribe.ai/">TurboScribe</a></td> |
| 145 |
<td>TurboScribe's mission is to deliver world-class AI transcription at an unbeatable price.</td> |
| 146 |
</tr> |
| 147 |
<tr> |
| 148 |
<td><a rel="nofollow" target="_blank" href="https://xrss.infogulch.com">XRSS</a></td> |
| 149 |
<td>A simple RSS reader inspired by Google Reader</td> |
| 150 |
</tr> |
| 151 |
<tr> |
| 152 |
<td><a rel="nofollow" target="_blank" href="https://openunited.com/">OpenUnited</a></td> |
| 153 |
<td>A Digital Talent match-making platform</td> |
| 154 |
</tr> |
| 155 |
<tr> |
| 156 |
<td><a rel="nofollow" target="_blank" href="https://gophemeral.com">Gophemeral</a></td> |
| 157 |
<td>Share secrets securely!</td> |
| 158 |
</tr> |
| 159 |
<tr> |
| 160 |
<td><a rel="nofollow" target="_blank" href="https://www.thomasricci.dev">thomasricci.dev</a></td> |
| 161 |
<td>Super fast portfolio website</td> |
| 162 |
</tr> |
| 163 |
<tr> |
| 164 |
<td><a rel="nofollow" target="_blank" href="https://signup.casa">Signup Casa</a></td> |
| 165 |
<td>Simple, convenient sign-up forms.</td> |
| 166 |
</tr> |
| 167 |
<tr> |
| 168 |
<td><a rel="nofollow" target="_blank" href="https://recipes.musicavis.ca">Recipya</a></td> |
| 169 |
<td>A clean, simple and powerful recipe manager your whole family can enjoy.</td> |
| 170 |
</tr> |
| 171 |
<tr> |
| 172 |
<td><a rel="noopener" target="_blank" href="https://statusnook.com">Statusnook</a></td> |
| 173 |
<td>Effortlessly deploy a status page and start monitoring endpoints in minutes.</td> |
| 174 |
</tr> |
| 175 |
<tr> |
| 176 |
<td><a rel="noopener" target="_blank" href="https://photoquest.wedding/ ">PhotoQuest</a></td> |
| 177 |
<td>The interactive wedding photo game for unique moments that connect.</td> |
| 178 |
</tr> |
| 179 |
<tr> |
| 180 |
<td><a rel="noopener" target="_blank" href="https://todo.dankstuff.net/">DankTodo</a></td> |
| 181 |
<td>The First Ever HTMX C (Ulfius) Todo App in History!</td> |
| 182 |
</tr> |
| 183 |
<tr> |
| 184 |
<td><a rel="noopener" target="_blank" href="https://dankmuzikk.com/">DankMuzikk</a></td> |
| 185 |
<td>Create, share and play music playlists with the fully hypermedia music player.</td> |
| 186 |
</tr> |
| 187 |
<tr> |
| 188 |
<td><a rel="noopener" target="_blank" href="https://danklyrics.com/">DankLyrics</a></td> |
| 189 |
<td>A lyrics finder API, Website and Go package.</td> |
| 190 |
</tr> |
| 191 |
</tbody> |
| 192 |
</table> |
| 193 |
</div> |
| 194 |
|
| 195 |
</div> |
| 196 |
|
| 197 |
<iframe id="webring" src="https://www.commspace.co.za" |
| 198 |
style="position:fixed;right:0;left:0;bottom:0;top:250px;width:100%;height:100%" name="webring"></iframe> |
| 199 |
|
| 200 |
</Layout> |