2022-03-15 12:48:47 +01:00
package main
2022-03-13 21:34:54 +01:00
2022-04-18 13:49:16 +02:00
import (
"github.com/maxence-charriere/go-app/v9/pkg/app"
)
2022-03-13 21:34:54 +01:00
type GalaxiesPage struct {
app . Compo
2022-04-18 13:49:16 +02:00
gnuOver bool
mousex , mousey int
2022-03-13 21:34:54 +01:00
}
func NewGalaxiesPage ( ) * GalaxiesPage {
return & GalaxiesPage { }
}
func ( f * GalaxiesPage ) Render ( ) app . UI {
2022-03-15 12:48:47 +01:00
return newPage ( ) .
Title ( "Galaxies" ) .
LeftBar (
2022-03-15 13:22:59 +01:00
newHTMLBlock ( ) .
Class ( "left" ) .
Class ( "leftbarblock" ) .
Src ( "/web/blocks/snippets/bannerpanel.html" ) ,
2022-03-15 12:48:47 +01:00
) .
Main (
2022-04-18 13:49:16 +02:00
/ *
newHTMLBlock ( ) .
Class ( "right" ) .
Class ( "contentblock" ) .
Src ( "/web/blocks/pages/galaxies.html" ) ,
* /
newUIBlock ( ) .
2022-03-15 12:48:47 +01:00
Class ( "right" ) .
2022-03-15 13:22:59 +01:00
Class ( "contentblock" ) .
2022-04-18 13:49:16 +02:00
UI (
app . Div ( ) .
Body (
app . P ( ) .
Class ( "p-h1" ) .
Text ( "Galaxies" ) ,
app . P ( ) .
Class ( "content-text" ) .
Text ( ` Here you can find some really really really cool pages that I found on the internet .
Some of these are blogs or even blogposts I found , but the ones on top are special !
They ' re the websites of friends of mine ! Please visit them , because they worked really hard
on their websites as well ! ` ) ,
app . Div ( ) .
Body (
app . P ( ) .
Class ( "p-h2" ) .
Class ( "mt-20" ) .
Class ( "mb-10" ) .
Class ( "bold" ) .
Text ( "My friends!" ) ,
app . Ul ( ) .
Body (
app . Li ( ) .
Body (
2022-04-18 16:02:41 +02:00
newLinkWithStatus ( ) .
Link ( "https://forestofunix.xyz" ) .
LinkText ( "Forest of Unix" ) .
2022-04-18 22:20:36 +02:00
Text ( "A website made by Sebastiaan. A massive Linux fanboy, runs Gentoo on his ThinkPad. Absolutely based. His website is written in Lisp, that's why it's often offline. That was the inspiration for the online/offline status text." ) ,
2022-04-18 13:49:16 +02:00
) ,
app . Li ( ) .
Body (
2022-04-18 16:02:41 +02:00
newLinkWithStatus ( ) .
Link ( "https://nymphali.neocities.org" ) .
LinkText ( "Nymphali" ) .
Text ( "The website made by ■■■■■■, whoops Nymphali. They have an awesome minimalist website that's just lovely." ) ,
2022-04-18 13:49:16 +02:00
) ,
app . Li ( ) .
Body (
2022-04-18 16:02:41 +02:00
newLinkWithStatus ( ) .
Link ( "https://kristypixel.neocities.org" ) .
LinkText ( "Kristypixel" ) .
Text ( "Website made by Kristy. Very cute website, I love it! Keep up the awesome work!" ) ,
2022-04-18 13:49:16 +02:00
) ,
) ,
) ,
app . Div ( ) .
Body (
app . P ( ) .
Class ( "p-h2" ) .
Class ( "mt-20" ) .
Class ( "mb-10" ) .
Class ( "bold" ) .
Text ( "Neat webspaces" ) ,
app . P ( ) .
Class ( "m-t5" ) .
Style ( "margin-left" , "10px" ) .
Text ( "Just very neat websites I found and causes I support. Not necessarily by people I know. I just wanted to share them here!" ) ,
app . Ul ( ) .
Body (
app . Li ( ) .
Body (
2022-04-18 16:02:41 +02:00
newLinkWithStatus ( ) .
Link ( "https://evillious.ylimegirl.com" ) .
LinkText ( "Evillious Chronicles fan guide" ) .
Text ( "A VERY cool website made by Ylimegirl! They wrote a whole website dedicated to Evillious Chronicles, which is a super good Japanese light novel and vocaloid series!! Definitely look it up!" ) ,
2022-04-18 13:49:16 +02:00
) ,
app . Li ( ) .
Body (
2022-04-18 22:02:51 +02:00
newLinkWithStatus ( ) .
Link ( "https://www.gnu.org" ) .
LinkBody (
newTextWithTooltip ( ) .
2022-04-18 13:49:16 +02:00
Text ( "The GNU Project" ) .
2022-04-18 22:02:51 +02:00
Tooltip (
app . Img ( ) .
Src ( "/web/static/images/gnu-head-sm.png" ) .
Width ( 129 ) .
Height ( 122 ) .
Alt ( "GNU" ) ,
2022-04-18 13:49:16 +02:00
) ,
2022-04-18 22:02:51 +02:00
) .
Text ( "The official website of the GNU project. They advocate for free/libre software. This is not to be confused with 'open source' software. I highly recommend you read about them and their efforts." ) ,
2022-04-18 13:49:16 +02:00
) ,
) ,
) ,
) ,
) ,
2022-03-15 12:48:47 +01:00
)
2022-03-13 21:34:54 +01:00
}
2022-04-18 13:49:16 +02:00
/ *
func ( f * GalaxiesPage ) onMouseOverGnu ( ctx app . Context , e app . Event ) {
} * /