diff --git a/Makefile b/Makefile index a693907..77f2e54 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ bin/stats: cmd/stats/main.go bin bin/contrib: cmd/contrib/main.go bin go build -o bin/contrib ./cmd/contrib -bin/con: cmd/towncon/main.go bin +bin/con: cmd/towncon/main.go cmd/towncon/md/* bin go build -o bin/con ./cmd/towncon bin/request: cmd/request/main.go bin diff --git a/cmd/towncon/main.go b/cmd/towncon/main.go index 7cc91b2..ac9b678 100644 --- a/cmd/towncon/main.go +++ b/cmd/towncon/main.go @@ -35,7 +35,6 @@ func banner() (string, error) { } return string(content), nil - } func info() error { @@ -53,6 +52,27 @@ func info() error { return cmd.Run() } +func schedule() error { + scheduleContent, err := md.ReadFile("md/schedule.md") + if err != nil { + return err + } + r, _ := glamour.NewTermRenderer( + // detect background color and pick either the default dark or light theme + glamour.WithAutoStyle(), + // wrap output at specific width (default is 80) + glamour.WithWordWrap(120), + ) + out, err := r.Render(string(scheduleContent)) + if err != nil { + return err + } + cmd := exec.Command("/usr/bin/bat") + cmd.Stdin = strings.NewReader(out) + cmd.Stdout = os.Stdout + return cmd.Run() +} + type physicalData struct { Arriving string Departing string @@ -373,6 +393,7 @@ func _main() error { huh.NewSelect[string]().Title("whadduyu wanna doo?"). Options( huh.NewOption("Get an info dump", "info"), + huh.NewOption("SEE SCHEDULE", "schedule"), huh.NewOption("RSVP", "rsvp"), huh.NewOption("Submit or propose a work (talk, art, etc)", "submit"), huh.NewOption("Propose a creative jam", "jam"), @@ -387,6 +408,8 @@ func _main() error { switch mode { case "info": return info() + case "schedule": + return schedule() case "rsvp": return rsvp(o) case "submit": diff --git a/cmd/towncon/md/info.md b/cmd/towncon/md/info.md index 59b7ef3..f8b7e4f 100644 --- a/cmd/towncon/md/info.md +++ b/cmd/towncon/md/info.md @@ -1,8 +1,8 @@ # TOWN CON INFORMATION -TOWN CON is a celebration of tilde.town's 10 year anniversary featuring 24 hours of talks, art, and music by townies. +TOWN CON is a celebration of tilde.town's 10 year anniversary featuring a day of talks, art, and music by townies. -TOWN CON begins at 0:00 UTC on October 11, 2024 and ends 23:59 UTC on October 12, 2024. +TOWN CON's OFFICIAL START is now 10:00 am on October 11th in US Central Time (15:00 UTC). It ends when we run out of energy late on the 11th. There is an additional day of TOWN CON on October 12th for townies attending TOWN CON MEAT EDITION in Chicago, Illinois, USA. @@ -50,10 +50,17 @@ The venue has enough sleeping space to lodge everyone who expressed interest in - all day October 12th - the morning of October 13th (feel free to leave this day!) -The total cost to book this venue was **$8,637**. I've paid for it out of pocket and would love if townies could help chip in for the cost. As of right now (`2024-08-31`) I have received **$0** of chip in and will update this as I get donations. +The total cost to book this venue was **$8,637**. I've paid for it out of pocket and would love if townies could help chip in for the cost. As of right now (`2024-10-08`) I have received **$3,919** of chip in and will update this as I get donations. If you want to chip in: + +- paypal: `nateksmith@pm.me` +- venmo: `@vilmibm` To learn more about the venue you can visit their website: https://www.loft606.com/ +### PARKING + +There are 3 parking spaces provided by the venue; two of these have been claimed. If you will need parking reach out to me (or mention in your RSVP) and we'll work something out. + ### FOOD I'll arrange food throughout the event. diff --git a/cmd/towncon/md/submit.md b/cmd/towncon/md/submit.md index 730b7ad..a8893ad 100644 --- a/cmd/towncon/md/submit.md +++ b/cmd/towncon/md/submit.md @@ -16,6 +16,6 @@ _every_ townie is encouraged to submit something (or multiple things) to town co **The whole purpose of this event is to reflect and celebrate the town's vibrant and idiosyncratic community.** No work is too small. -**The DEADLINE to submit is October 6th, 2024.** I am downright excited to talk to you about ideas and offer suggestions! Please reach out to `vilmibm` via email or come chat about it in `town chat`. +**The DEADLINE to submit is October 999999999th, 2024.** I am downright excited to talk to you about ideas and offer suggestions! Please reach out to `vilmibm` via email or come chat about it in `town chat`. It's okay to submit something you haven't finished or even started -- I'll confirm right before the event that you still want your work shown. diff --git a/towncon.html b/towncon.html index a4c4e14..e0028b3 100644 --- a/towncon.html +++ b/towncon.html @@ -44,6 +44,7 @@ +