Removed S3

This commit is contained in:
2024-09-08 23:42:36 -06:00
parent c0923aaf2b
commit 2edff6915a
15 changed files with 51 additions and 203 deletions

View File

@ -100,14 +100,9 @@ func Home(c echo.Context) error {
buttons := []lib.ButtonLink{
{
Name: "Resumé",
Href: lib.GeneratePublicURL("Atridad_Lahiji_Resume.pdf"),
Href: "/public/files/Atridad_Lahiji_Resume.pdf",
Internal: false,
},
{
Name: "Testimonials",
Href: "/testimonials",
Internal: true,
},
{
Name: "Posts",
Href: "/posts",

View File

@ -21,7 +21,7 @@ func Talks(c echo.Context) error {
{
Name: "Hypermedia as the engine of application state - an Introduction",
Description: "A talk on building reactive websites using tools like HTMX instead of JSON + JS. Will be presented at the Dev Edmonton Fabruary 2024 JS/Ruby/Python Meetup",
Href: lib.GeneratePublicURL("hypermedia_talk_atridad.pdf"),
Href: "/public/files/hypermedia_talk_atridad.pdf",
Tags: []string{"golang", "htmx", "ssr"},
Date: "February 01, 2024",
},

View File

@ -14,11 +14,6 @@
Talks
</a>
</li>
<li>
<a class="no-underline" href="/testimonials">
Testimonials
</a>
</li>
<li>
<a class="no-underline" href="/tools">
Tools

View File

@ -1,32 +0,0 @@
{{define "title"}}
Atridad Lahiji // Testimonials
{{end}}
{{define "headercontent"}}
Atridad Lahiji // Testimonials
{{end}}
{{define "head"}}
<link rel="stylesheet" href="/public/css/styles.css" />
{{end}}
{{define "main"}}
<h2 class="text-2xl font-extrabold tracking-tight text-white sm:text-[2rem]">
What <a class="link link-secondary"
href="https://steamcommunity.com/app/1230140/reviews/?browsefilter=toprated&snr=1_5_100010_" target="_blank"
rel="noreferrer">People</a> Say About Me
</h2>
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3">
{{range .Images}}
<div>
<img class="object-cover object-center w-full max-w-full rounded-lg" src={{.}} alt="Review of Atri"
loading="lazy" />
</div>
{{end}}
</div>
{{end}}
{{define "foot"}}
{{end}}

View File

@ -1,24 +0,0 @@
package pages
import (
"atri.dad/lib"
"github.com/labstack/echo/v4"
)
type TestimonialsProps struct {
Images []string
}
func Testimonials(c echo.Context) error {
images := lib.GeneratePublicURLsFromDirectory("testimonials/")
props := TestimonialsProps{
Images: images,
}
// Specify the partials used by this page
partials := []string{"header", "navitems"}
// Render the template
return lib.RenderTemplate(c.Response().Writer, "base", partials, props)
}

View File

@ -21,7 +21,7 @@ func Resize(c echo.Context) error {
{
Name: "Hypermedia as the engine of application state - an Introduction",
Description: "A talk on building reactive websites using tools like HTMX instead of JSON + JS. Will be presented at the Dev Edmonton Fabruary 2024 JS/Ruby/Python Meetup",
Href: lib.GeneratePublicURL("hypermedia_talk_atridad.pdf"),
// Href: lib.GeneratePublicURL("hypermedia_talk_atridad.pdf"),
Tags: []string{"golang", "htmx", "ssr"},
Date: "February 01, 2024",
},