Skip to content

Commit

Permalink
feat(web-server): add configurations and fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorien Grönwald committed Oct 29, 2023
1 parent 70cc2eb commit 4de136c
Show file tree
Hide file tree
Showing 13 changed files with 69 additions and 17 deletions.
12 changes: 12 additions & 0 deletions src/web-service/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Price Whisper</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/js/main.js"></script>
</body>
</html>
Binary file added src/web-service/public/fonts/Manrope-Bold.ttf
Binary file not shown.
Binary file added src/web-service/public/fonts/Manrope-Medium.ttf
Binary file not shown.
Binary file added src/web-service/public/fonts/Manrope-Regular.ttf
Binary file not shown.
Binary file added src/web-service/public/fonts/Manrope-SemiBold.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/web-service/src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<main>
<p>Test</p>
<p class="font-manrope text-green-dark">Test</p>
</main>
1 change: 0 additions & 1 deletion src/web-service/src/assets/svelte.svg

This file was deleted.

32 changes: 32 additions & 0 deletions src/web-service/src/css/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* Load fonts */
@font-face{
font-family: 'Manrope';
src: url('/src/web-service/public/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/public/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/public/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/public/fonts/Manrope-Bold.ttf') format('ttf');
font-weight: bold;
font-style: normal;
font-display: swap;
}
4 changes: 4 additions & 0 deletions src/web-service/src/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@import "tailwindcss/base";
@import "fonts.css";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
3 changes: 0 additions & 3 deletions src/web-service/src/index.css

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './index.css'
import App from './App.svelte'
import '../css/styles.css'
import App from '../App.svelte'

const app = new App({
target: document.getElementById('app'),
Expand Down
10 changes: 0 additions & 10 deletions src/web-service/src/lib/Counter.svelte

This file was deleted.

18 changes: 18 additions & 0 deletions src/web-service/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@ export default {
"./src/**/*.svelte",
],
theme: {
colors: {
'grey': {
'light': '#F4F4F9',
'middle': '#8F8F8F',
'dark': '#262626',
},
'blue': {
'light': '#BFDAD9',
'dark': '#305F5D',
},
'green': {
'light': '#70AA67',
'dark': '#317050',
},
fontFamily: {
manrope: ['Manrope', 'sans-serif'],
},
},
extend: {},
},
plugins: [],
Expand Down

0 comments on commit 4de136c

Please sign in to comment.