Skip to content

Commit

Permalink
improve website design
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrossh committed May 3, 2024
1 parent 773dcda commit 17cca97
Show file tree
Hide file tree
Showing 14 changed files with 5,159 additions and 4,689 deletions.
9,192 changes: 4,826 additions & 4,366 deletions website/package-lock.json

Large diffs are not rendered by default.

72 changes: 37 additions & 35 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
{
"name": "website",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0",
"@types/eslint": "^8.56.0",
"@unocss/extractor-svelte": "^0.59.4",
"@unocss/preset-typography": "^0.59.4",
"@unocss/transformer-directives": "^0.59.4",
"@unocss/transformer-variant-group": "^0.59.4",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"typescript": "^5.0.0",
"vite": "^5.0.3"
},
"type": "module",
"dependencies": {
"@unocss/reset": "^0.59.4",
"unocss": "^0.59.4"
}
"name": "website",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.0.0",
"@tailwindcss/typography": "^0.5.13",
"@types/eslint": "^8.56.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"flowbite": "^2.3.0",
"flowbite-svelte": "^0.46.1",
"flowbite-svelte-icons": "^1.6.0",
"postcss": "^8.4.38",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"tailwindcss": "^3.4.3",
"typescript": "^5.0.0",
"vite": "^5.0.3"
},
"type": "module",
"dependencies": {
"preline": "^2.1.0"
}
}
6 changes: 6 additions & 0 deletions website/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
3 changes: 3 additions & 0 deletions website/src/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
13 changes: 5 additions & 8 deletions website/src/app.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" class="min-h-full h-full">
<html lang="en" class="w-full h-full">

<head>
<meta charset="utf-8" />
Expand All @@ -8,14 +8,11 @@
%sveltekit.head%
</head>

<body data-sveltekit-preload-data="hover"
class="font-sans leading-normal tracking-normal text-gray-900 bg-white flex h-full">
<div style="display: contents">
<div class="max-w-[50rem] flex flex-col mx-auto size-full">
%sveltekit.body%
</div>
</div>
<body data-sveltekit-preload-data="hover" class="w-full h-full">
<div class="w-full h-full" style="display: contents">
%sveltekit.body%
</div>
<script src="./node_modules/preline/dist/preline.js"></script>
</body>

</html>
18 changes: 18 additions & 0 deletions website/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script>
import { afterNavigate } from '$app/navigation';
import '../app.css';
afterNavigate(() => {
window.HSStaticMethods.autoInit();
});
</script>

<div class="prose mx-auto">
<slot />
</div>

<style lang="postcss">
:global(html) {
background-color: #482929;
}
</style>
Loading

0 comments on commit 17cca97

Please sign in to comment.