Skip to content

Commit

Permalink
feat(web-service): delete tailwind and use scss
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorien Grönwald committed Oct 31, 2023
1 parent 1b9eac0 commit d864fdf
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 889 deletions.
864 changes: 23 additions & 841 deletions src/web-service/frontend/package-lock.json

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/web-service/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"sass": "^1.69.5",
"svelte": "^4.0.5",
"tailwindcss": "^3.3.5",
"vite": "^4.4.5"
}
}
6 changes: 0 additions & 6 deletions src/web-service/frontend/postcss.config.js

This file was deleted.

14 changes: 11 additions & 3 deletions src/web-service/frontend/src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<script>
<script >
console.log('hallo');
</script>

<main>
<p class="text-green-dark">Test</p>
</main>
<p class="headline">Test</p>
</main>

<style lang="scss">
@import "./styles/fonts";
.headline {
color: red;
}
</style>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 0 additions & 4 deletions src/web-service/frontend/src/css/styles.css

This file was deleted.

1 change: 0 additions & 1 deletion src/web-service/frontend/src/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import './css/styles.css'
import App from './App.svelte'

const app = new App({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
/* Load fonts */
@font-face{
font-family: 'Manrope';
src: url('/src/web-service/frontend/public/fonts/Manrope-Regular.ttf') format('ttf');
src: url('./assets/fonts/Manrope-Regular.ttf') format('ttf');
font-weight: normal;
font-style: normal;
font-display: swap;
}

@font-face{
font-family: 'Manrope';
src: url('/src/web-service/frontend/public/fonts/Manrope-Medium.ttf') format('ttf');
src: url('./assets/fonts/Manrope-Medium.ttf') format('ttf');
font-weight: 500;
font-style: normal;
font-display: swap;
}

@font-face{
font-family: 'Manrope';
src: url('/src/web-service/frontend/public/fonts/Manrope-SemiBold.ttf') format('ttf');
src: url('./assets/fonts/Manrope-SemiBold.ttf') format('ttf');
font-weight: 600;
font-style: normal;
font-display: swap;
}

@font-face{
font-family: 'Manrope';
src: url('/src/web-service/frontend/public/fonts/Manrope-Bold.ttf') format('ttf');
src: url('./assets/fonts/Manrope-Bold.ttf') format('ttf');
font-weight: bold;
font-style: normal;
font-display: swap;
Expand Down
26 changes: 0 additions & 26 deletions src/web-service/frontend/tailwind.config.js

This file was deleted.

3 changes: 2 additions & 1 deletion src/web-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func indexHandler(tmpl *template.Template) http.HandlerFunc {

func getFilesOutManifestJson() (string, string) {
data := map[string]struct {
CSS []string `json:"css"`
CSS []string `json:"styles"`
File string `json:"file"`
IsEntry bool `json:"isEntry"`
Src string `json:"src"`
Expand All @@ -52,6 +52,7 @@ func main() {
r.GET("/static/assets/main.js", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "frontend/public/"+jsFile)
})

r.GET("/static/assets/main.css", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "frontend/public/"+cssFile)
})
Expand Down

0 comments on commit d864fdf

Please sign in to comment.