diff --git a/src/hmnurl/urls.go b/src/hmnurl/urls.go index a1fae055..25492a97 100644 --- a/src/hmnurl/urls.go +++ b/src/hmnurl/urls.go @@ -105,6 +105,13 @@ func BuildJamFeed2022() string { return Url("/jam/2022/feed", nil) } +var RegexTimeMachine = regexp.MustCompile("^/time-machine$") + +func BuildTimeMachine() string { + defer CatchPanic() + return Url("/time-machine", nil) +} + // QUESTION(ben): Can we change these routes? var RegexLoginAction = regexp.MustCompile("^/login$") diff --git a/src/templates/src/layouts/landing_page.html b/src/templates/src/layouts/landing_page.html new file mode 100644 index 00000000..c83f92cb --- /dev/null +++ b/src/templates/src/layouts/landing_page.html @@ -0,0 +1,178 @@ +{{/* + This is a copy-paste from base.html because we want to preserve the unique + style of landing pages if we change base.html in the future. +*/}} + + + + + + + + + + {{ if .CanonicalLink }}{{ end }} + {{ range .OpenGraphItems }} + {{ if .Property }} + + {{ else }} + + {{ end }} + {{ end }} + {{ if .Title }} + {{ .Title }} | Handmade Network + {{ else }} + Handmade Network + {{ end }} + + + + + + + + + + + + + + + +
+
+ {{ template "header.html" . }} +
+ +
+ {{ block "content" . }}{{ end }} +
+ +
+ {{ template "footer.html" . }} +
+
+ + + diff --git a/src/templates/src/time-machine.html b/src/templates/src/time-machine.html new file mode 100644 index 00000000..ba05fd68 --- /dev/null +++ b/src/templates/src/time-machine.html @@ -0,0 +1,108 @@ +{{ template "landing_page.html" . }} {{ define "content" }} + +
+
+

Time Machine

+
+
Overview
+
+

+ This summer, we’re digging out old devices and seeing what they were + actually like to use. +

+

+ Our phones today are far more powerful than our desktop computers from + decades ago. But those old computers worked just fine! The Time + Machine project is a chance to revisit those old devices and see what + they were actually like to use. +

+

+ As our hardware has improved, how has the user experience changed? + Which parts have stayed the same? Which parts have gotten worse? + There’s only one way to find out. +

+
+
+ +
+
How To Participate
+
+
    +
  1. +

    + Take video of yourself using an older device. Any + personal device from any time period is great. We’re particularly + interested in the history of day-to-day devices like personal + computers, and mobile phones. +

    +
  2. +
  3. +

    + Upload the video somewhere. Upload to Google + Drive, Dropbox, or even YouTube - anywhere we can download it + from. +

    +
  4. +
  5. +

    + Send us the video link + extra info. Tell us + about this device, when you got it, what specs it has, and + anything else you think is interesting. We’ll get the video posted + here on the website for everyone to see. +

    +
  6. +
+

+ At the end of the summer, we’ll compile all the submissions into a + final report. +

+
+
+ +
+
Example Submission
+
+
+
+ +
+
+

Description

+

+ This is the iPod Touch I got when I was 13. It was my first major + tech purchase and an early device in the iOS lineup. When I + purchased this I think it was running iOS 3; at this point it has + iOS 5. I was pleased to see that the battery still holds a charge + quite well, and it consistently runs at about 30 to 60 frames per + second. +

+

+ In the video you can see several built-in apps. Media playback + still works great, and scrubbing around in songs is instantaneous. + App switching works well. The calculator launches instantly (as + you would hope). I was shocked to see that the old Google Maps app + still works - apparently they have kept their old tile-based map + servers online. It even gave me public transit directions. +

+

+ Overall, I would say this device feels only a hair slower than my + current iPhone. +

+

Device Info

+

iPod Touch 3rd gen, model MC008LL

+
    +
  • Release year: 2009

  • +
  • Processor: 600MHz Samsung S5L8922, single-core

  • +
  • Memory: 256MB LPDDR2 @ 200 MHz

  • +
  • Operating system: iOS 5

  • +
+
+
+
+
+
+
+{{ end }} diff --git a/src/website/routes.go b/src/website/routes.go index ff3d3369..6149284b 100644 --- a/src/website/routes.go +++ b/src/website/routes.go @@ -67,6 +67,8 @@ func NewWebsiteRoutes(conn *pgxpool.Pool) http.Handler { hmnOnly.GET(hmnurl.RegexJamFeed2023_Visibility, JamFeed2023_Visibility) hmnOnly.GET(hmnurl.RegexJamRecap2023_Visibility, JamRecap2023_Visibility) + hmnOnly.GET(hmnurl.RegexTimeMachine, TimeMachine) + hmnOnly.GET(hmnurl.RegexStaffRolesIndex, StaffRolesIndex) hmnOnly.GET(hmnurl.RegexStaffRole, StaffRole) diff --git a/src/website/staticpages.go b/src/website/staticpages.go index 8262547f..6a0a5b3f 100644 --- a/src/website/staticpages.go +++ b/src/website/staticpages.go @@ -87,3 +87,9 @@ func Conferences(c *RequestContext) ResponseData { res.MustWriteTemplate("conferences.html", getBaseDataAutocrumb(c, "Conferences"), c.Perf) return res } + +func TimeMachine(c *RequestContext) ResponseData { + var res ResponseData + res.MustWriteTemplate("time-machine.html", getBaseDataAutocrumb(c, "Time Machine"), c.Perf) + return res +}