From e55f2452dd20c2d3eaf212f0bbb82a4d9b960a84 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Tue, 7 Mar 2023 22:47:19 +0100 Subject: [PATCH] chore: Some fixes and removed old stuff --- frontend/index.html | 2 +- frontend/src/pages.jsx | 8 +++++--- frontend/styles/main.scss | 17 ++++++++--------- go.mod | 7 +++++-- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 0f33d50..7712b53 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -5,7 +5,7 @@ - Notes + Go & ViteJS Template diff --git a/frontend/src/pages.jsx b/frontend/src/pages.jsx index 7ea8a11..6882897 100644 --- a/frontend/src/pages.jsx +++ b/frontend/src/pages.jsx @@ -1,3 +1,5 @@ -import { Masonry } from './components/Masonry.jsx' - -export const PageHomepage = ({}) =>
+export const PageHomepage = ({}) => ( +
+

Homepage

+
+) diff --git a/frontend/styles/main.scss b/frontend/styles/main.scss index 8c18839..e9eec92 100644 --- a/frontend/styles/main.scss +++ b/frontend/styles/main.scss @@ -1,19 +1,18 @@ -// Reset - *, *::before, *::after { + // Good practice box-sizing: border-box; + + // For body and headings as typography should be done by hand anyway margin: 0; - font: inherit; + // For controls + font-family: inherit; appearance: none; } -input, -button { - background: unset; - border: unset; - border-radius: 0; - outline: none; +html, +body { + display: contents; } diff --git a/go.mod b/go.mod index 9f3e23e..2d7a149 100644 --- a/go.mod +++ b/go.mod @@ -2,9 +2,13 @@ module aziis98.com/template-go-vitejs go 1.19 +require ( + github.com/gofiber/fiber/v2 v2.42.0 + golang.org/x/sync v0.1.0 +) + require ( github.com/andybalholm/brotli v1.0.4 // indirect - github.com/gofiber/fiber/v2 v2.42.0 // indirect github.com/google/uuid v1.3.0 // indirect github.com/klauspost/compress v1.15.9 // indirect github.com/mattn/go-colorable v0.1.13 // indirect @@ -18,6 +22,5 @@ require ( github.com/valyala/bytebufferpool v1.0.0 // indirect github.com/valyala/fasthttp v1.44.0 // indirect github.com/valyala/tcplisten v1.0.0 // indirect - golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab // indirect )