diff --git a/main.go b/main.go index aeab68c..6f2b441 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,6 @@ import ( "github.com/aws/aws-lambda-go/lambda" fiberadaptor "github.com/awslabs/aws-lambda-go-api-proxy/fiber" "github.com/gofiber/fiber/v2" - "github.com/gofiber/fiber/v2/middleware/filesystem" "github.com/gofiber/template/handlebars" "github.com/spf13/viper" ) @@ -45,10 +44,6 @@ func init() { StreamRequestBody: false, }) - app.Use("/static", filesystem.New(filesystem.Config{ - Root: http.FS(static.GetFiles()), - })) - app.Get("/robots.txt", func(c *fiber.Ctx) error { file, _ := static.GetFiles().ReadFile("robots.txt") _, err := c.Write(file) diff --git a/static/css/album.css b/static/css/album.css deleted file mode 100644 index 96d028a..0000000 --- a/static/css/album.css +++ /dev/null @@ -1,32 +0,0 @@ -h1 { - margin: 0; -} - -p { - margin: 0.5em 0; -} - -video, -img { - max-width: 100%; -} - -.pfp { - border-radius: 100%; -} - -.imageMeta__wrapper, -.imageMeta__item, -.imageMeta { - display: flex; - gap: 12px; - align-items: center; -} - -.imageMeta__item { - gap: 4px; -} - -.imageMeta__wrapper { - gap: 2rem; -} \ No newline at end of file diff --git a/static/css/base.css b/static/css/base.css deleted file mode 100644 index 2f0c529..0000000 --- a/static/css/base.css +++ /dev/null @@ -1,51 +0,0 @@ -a { - color: #E0E0E0; - font-weight: 600; - text-decoration: none; -} - -a > h2 { - color: white; -} - -body { - background-color: #212121; - color: white; - font-size: 18px; - font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif; -} - -nav { - display: flex; - align-items: center; -} - -.center { - display: flex; - justify-content: center; -} - -.logo { - filter: invert(1) hue-rotate(180deg); -} - -main { - margin: 0 24vw; -} - -footer { - display: flex; - justify-content: center; - flex-direction: row; - gap: 10px; -} - -@media only screen and (max-width: 812px) { - main { - margin: 0; - } - footer { - flex-direction: column; - text-align: center; - } -} \ No newline at end of file diff --git a/static/css/comments.css b/static/css/comments.css deleted file mode 100644 index 91b16db..0000000 --- a/static/css/comments.css +++ /dev/null @@ -1,68 +0,0 @@ -.comment { - display: flex; - flex-direction: column; - gap: 0.5em; -} - -.comments { - gap: 0.25em; - display: flex; - flex-direction: column; -} - -.replies { - margin-left: 20px; - border-left: 2px #424242 solid; - padding-left: 8px; -} - -#comments__expandBtn { - display: none; -} - -.comments__expandBtn__label { - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - cursor: pointer; - user-select: none; - text-decoration: none; - color: #fff -} - -.comments__expandBtn__icon { - font-size: 24px; -} - -#comments__expandBtn ~ .comments__expandBtn__label > span::after { - content: "expand_more"; -} - -#comments__expandBtn:checked ~ .comments__expandBtn__label > span::after { - content: "expand_less"; -} - -#comments__expandBtn:checked ~ .comments { - display: none; -} - -.comment__media { - display: inline; -} - -.comment__updatedDate { - font-size: 0.8em; -} - -.comment__user { - display: flex; - gap: 6px; - align-items: center; -} - -.comment__user__username { - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; -} \ No newline at end of file diff --git a/static/css/frontpage.css b/static/css/frontpage.css deleted file mode 100644 index a592cd5..0000000 --- a/static/css/frontpage.css +++ /dev/null @@ -1,6 +0,0 @@ -code { - background-color: #424242; - padding: 2px; - border-radius: 4px; - font-size: 0.9em; -} \ No newline at end of file diff --git a/static/css/user.css b/static/css/user.css deleted file mode 100644 index a0207cf..0000000 --- a/static/css/user.css +++ /dev/null @@ -1,63 +0,0 @@ -main { - margin: 0 12vw; -} - -h2, p { - margin: 0; -} - -.userMeta { - padding: 2vw; - border-radius: 12px; -} - -.userMeta__upper { - display: flex; - gap: 10px; - align-items: center; -} - -.userMeta__upper__bio { - margin-top: 1em; -} - -.pfp { - border-radius: 100%; -} - -.posts { - margin-top: 1em; - display: grid; - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); - grid-auto-rows: 1fr; - gap: 1rem; -} - -.post { - border-radius: 12px; - background-color: #3b3b3b; - font-weight: 400; -} - -img, -video:not(:fullscreen) { - object-fit: cover; - aspect-ratio: 1; -} - -.post__title { - margin: 0 6px; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; -} - -.post__meta { - padding: 6px; - display: flex; - gap: 10px; -} - -.post__meta .material-icons-outlined { - font-size: 1rem; -} \ No newline at end of file diff --git a/static/favicon/android-chrome-192x192.png b/static/favicon/android-chrome-192x192.png deleted file mode 100644 index 7340c94..0000000 Binary files a/static/favicon/android-chrome-192x192.png and /dev/null differ diff --git a/static/favicon/android-chrome-512x512.png b/static/favicon/android-chrome-512x512.png deleted file mode 100644 index a3c77d8..0000000 Binary files a/static/favicon/android-chrome-512x512.png and /dev/null differ diff --git a/static/favicon/apple-touch-icon.png b/static/favicon/apple-touch-icon.png deleted file mode 100644 index 3195ccd..0000000 Binary files a/static/favicon/apple-touch-icon.png and /dev/null differ diff --git a/static/favicon/browserconfig.xml b/static/favicon/browserconfig.xml deleted file mode 100644 index 1d22ec6..0000000 --- a/static/favicon/browserconfig.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - #603cba - - - diff --git a/static/favicon/favicon-16x16.png b/static/favicon/favicon-16x16.png deleted file mode 100644 index ed6447d..0000000 Binary files a/static/favicon/favicon-16x16.png and /dev/null differ diff --git a/static/favicon/favicon-32x32.png b/static/favicon/favicon-32x32.png deleted file mode 100644 index a7d9c83..0000000 Binary files a/static/favicon/favicon-32x32.png and /dev/null differ diff --git a/static/favicon/favicon.ico b/static/favicon/favicon.ico deleted file mode 100644 index c8c2981..0000000 Binary files a/static/favicon/favicon.ico and /dev/null differ diff --git a/static/favicon/mstile-144x144.png b/static/favicon/mstile-144x144.png deleted file mode 100644 index 5ced050..0000000 Binary files a/static/favicon/mstile-144x144.png and /dev/null differ diff --git a/static/favicon/mstile-150x150.png b/static/favicon/mstile-150x150.png deleted file mode 100644 index 214c947..0000000 Binary files a/static/favicon/mstile-150x150.png and /dev/null differ diff --git a/static/favicon/mstile-310x150.png b/static/favicon/mstile-310x150.png deleted file mode 100644 index 1ebe0a8..0000000 Binary files a/static/favicon/mstile-310x150.png and /dev/null differ diff --git a/static/favicon/mstile-310x310.png b/static/favicon/mstile-310x310.png deleted file mode 100644 index 8355029..0000000 Binary files a/static/favicon/mstile-310x310.png and /dev/null differ diff --git a/static/favicon/mstile-70x70.png b/static/favicon/mstile-70x70.png deleted file mode 100644 index 0df81a9..0000000 Binary files a/static/favicon/mstile-70x70.png and /dev/null differ diff --git a/static/favicon/safari-pinned-tab.svg b/static/favicon/safari-pinned-tab.svg deleted file mode 100644 index b21e496..0000000 --- a/static/favicon/safari-pinned-tab.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - -Created by potrace 1.14, written by Peter Selinger 2001-2017 - - - - - diff --git a/static/favicon/site.webmanifest b/static/favicon/site.webmanifest deleted file mode 100644 index 78fcc75..0000000 --- a/static/favicon/site.webmanifest +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "", - "short_name": "", - "icons": [ - { - "src": "/static/favicon/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/static/favicon/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" -} diff --git a/static/fonts/Material-Icons-Outlined.css b/static/fonts/Material-Icons-Outlined.css deleted file mode 100644 index f616471..0000000 --- a/static/fonts/Material-Icons-Outlined.css +++ /dev/null @@ -1,22 +0,0 @@ -/* fallback */ -@font-face { - font-family: 'Material Icons Outlined'; - font-style: normal; - font-weight: 400; - src: url(Material-Icons-Outlined.woff2) format('woff2'); -} - -.material-icons-outlined { - font-family: 'Material Icons Outlined'; - font-weight: normal; - font-style: normal; - line-height: 1; - letter-spacing: normal; - text-transform: none; - display: inline-block; - white-space: nowrap; - word-wrap: normal; - direction: ltr; - -moz-font-feature-settings: 'liga'; - -moz-osx-font-smoothing: grayscale; -} diff --git a/static/fonts/Material-Icons-Outlined.woff2 b/static/fonts/Material-Icons-Outlined.woff2 deleted file mode 100644 index f720d32..0000000 Binary files a/static/fonts/Material-Icons-Outlined.woff2 and /dev/null differ diff --git a/static/img/rimgo.svg b/static/img/rimgo.svg deleted file mode 100644 index a161a45..0000000 --- a/static/img/rimgo.svg +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - -