Removed unused code

This commit is contained in:
DutchEllie 2022-03-15 12:56:08 +01:00
parent 81d9e315a0
commit 0b7b478cd3
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
5 changed files with 0 additions and 237 deletions

View File

@ -24,29 +24,3 @@ func (a *AboutPage) Render() app.UI {
Src("/web/blocks/about.html"),
)
}
type aboutPanel struct {
app.Compo
aboutText string
}
func (a *aboutPanel) Render() app.UI {
return app.Div().Body(
app.Img().Src("/web/static/images/rin-1.gif").Styles(map[string]string{"width": "100px", "position": "absolute", "top": "10px", "right": "10px"}),
app.Raw(`<p class="content-text">I am a 21 year old computer science student (they/them, he/him, she/her), living and studying in The Netherlands. I like Docker, Kubernetes and Golang!
<br>
I made this website because I was inspired again by the amazing Neocities pages that I discovered because of my friends.
They also have their own pages (you can find them on the friends tab, do check them out!) and I just had to get a good website of my own!
<br>
I am not that great at web development, especially design, but I love trying it regardless!
<br><br>
To say a bit more about me personally, I love all things computers. From servers to embedded devices! I love the cloud and all that it brings
(except for big megacorps, but alright) and it's my goal to work for a big cloud company!
<br>
Aside from career path ambitions, ボーカロイドはすきです I love vocaloid and other Japanese music and culture!!
I also like Vtubers, especially from Hololive and it's my goal to one day finally understand them in their native language!
<br><br>
There is a lot more to say in words, but who cares about those! Have a look around my creative digital oasis and see what crazy stuff you can find!</p>`),
).Class("content")
}

View File

@ -22,91 +22,3 @@ func (f *GalaxiesPage) Render() app.UI {
Src("/web/blocks/galaxies.html"),
)
}
type galaxiesPanel struct {
app.Compo
}
func (b *galaxiesPanel) Render() app.UI {
return app.Div().Body(
app.P().
Text(`Galaxies`).
Class("p-h1"),
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 mt-20 mb-10 bold").
Text("My friends!"),
app.Ul().Body(
app.Li().Body(
app.Div().Body(
// TODO: Create a modal popup for each name!!!
app.A().Href("https://forestofunix.xyz").
Class("p-h3 m-t5").
Text("Forest of Unix"),
app.P().
Class("m-t5").
Text(`A website by Sebastiaan. A massive Linux fanboy, runs Gentoo on his
ThinkPad. Absolutely based.`),
),
),
app.Li().Body(
app.Div().Body(
// TODO: Create a modal popup for each name!!!
app.A().Href("https://nymphali.neocities.org").
Class("p-h3 m-t5").
Text("Nymphali"),
app.P().
Class("m-t5").
Text(`The website made by , whoops Nymphali. They have an awesome
minimalist website that's just lovely.`),
),
),
app.Li().Body(
app.Div().Body(
// TODO: Create a modal popup for each name!!!
app.A().Href("https://kristypixel.neocities.org").
Class("p-h3 m-t5").
Text("Kristy"),
app.P().
Class("m-t5").
Text(`Website made by Kristy. Very cute website, I love it! Keep up the
awesome work!`),
),
),
),
),
app.Div().
Body(
app.P().
Class("p-h2 mt-20 mb-10 bold").
Text("Neat webspaces"),
app.P().
Class("m-t5").
Style("margin-left", "10px").
Text(`Just very neat websites I found. Not necessarily by people I know.
I just thought it would be nice to share them here!`),
app.Ul().Body(
app.Li().Body(
app.Div().Body(
// TODO: Create a modal popup for each name!!!
app.A().Href("https://evillious.ylimegirl.com/").
Class("p-h3 m-t5").
Text("Evillious Chronicles fan guide"),
app.P().
Class("m-t5").
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!`),
),
),
),
),
).Class("content")
}

View File

@ -61,41 +61,4 @@ func (p *Homepage) Render() app.UI {
},
gbp.Render(),
)
/*
return app.Div().Body(
&header{},
&navbar{},
&homePanel{
onShowClick: func() {
p.showGuestbook = !p.showGuestbook
},
},
&bannerPanel{},
&guestbookForm{
OnSubmit: func(name, message string) {
var comment entity.Comment
comment.Name = name
comment.Message = message
jsondata, err := json.Marshal(comment)
if err != nil {
fmt.Printf("err: %v\n", err)
return
}
url := ApiURL
req, err := http.Post(url, "application/json", bytes.NewBuffer(jsondata))
if err != nil {
fmt.Printf("err: %v\n", err)
return
}
if req.StatusCode == 200 {
p.Update()
}
defer req.Body.Close()
},
},
//app.If(p.showGuestbook, gbp),
gbp.Render(),
).Class("main")*/
}

View File

@ -1,58 +0,0 @@
package main
import "github.com/maxence-charriere/go-app/v9/pkg/app"
type homePanel struct {
app.Compo
onShowClick func()
updateAvailable bool
}
func newHomePanel() *homePanel {
return &homePanel{}
}
func (p *homePanel) Render() app.UI {
return app.Div().Body(
app.P().Text("Welcome, internet surfer!").Class("p-h1"),
app.Div().Body(
app.P().Text("Please sign my guestbook!").Class("small"),
app.Img().Src("/web/static/images/email3.gif").Style("width", "40px").Style("position", "absolute").Style("bottom", "0px").Style("right", "0px"),
).Style("position", "absolute").Style("top", "10px").Style("right", "5px").
OnClick(func(ctx app.Context, e app.Event) {
e.PreventDefault()
p.onShowClick()
}),
app.Img().
Style("float", "right").
Style("margin-bottom", "10px").
Height(230).
Src("/web/static/images/rin-len1.webp"),
app.Raw(
`
<p class="content-text">
Welcome to my webspace! Whether you stumbled across this page by accident
or were linked here, you're more than welcome! This is my personal project that I like
to work on! I was inspired by a couple friends of mine, please do check their webspaces
out as well under "Galaxies" on the left side there!
If you like this page, there is a lot more, so have a look around! You can also leave a
nice message for me in the guestbook! There is no registration (unlike the rest of the "modern"
internet) so nothing of that sort!
That said, this website is my creative outlet and a way to introduce myself, so be kind please!
Also its code is entirely open-source and can be found
<a href="https://dutchellie.nl/DutchEllie/proper-website-2">here</a> so if you like that sort
of stuff, be my guest it's cool!</p>
`),
app.If(p.updateAvailable,
app.Div().Body(
app.P().
Class("content-text").
Text("An update is available! Reload to update!"),
)),
).Class("content")
}
func (p *homePanel) OnAppUpdate(ctx app.Context) {
p.updateAvailable = true
}

View File

@ -64,35 +64,7 @@ func main() {
}
app.GenerateStaticWebsite("./staticsite", handler)
/*
uri := "mongodb+srv://guestbook-database:5WUDzpvBKBBiiMCy@cluster0.wtt64.mongodb.net/myFirstDatabase?retryWrites=true&w=majority"
client, err := mongo.Connect(context.TODO(), options.Client().ApplyURI(uri))
if err != nil {
fmt.Println(err)
return
}
defer func() {
if err = client.Disconnect(context.TODO()); err != nil {
panic(err)
}
}()
// Ping the primary
if err := client.Ping(context.TODO(), readpref.Primary()); err != nil {
panic(err)
}
db := client.Database("guestbook")
coll := db.Collection("comments")
apiapp := &application{
client: client,
database: db,
collection: coll,
}
*/
http.Handle("/", handler)
//http.HandleFunc("/api/comment", apiapp.Comment)
if err := http.ListenAndServe(":8000", nil); err != nil {
log.Fatal(err)