Skip to content

Commit

Permalink
redesign the home page to look better and load faster
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Dec 20, 2023
1 parent c7303d3 commit b3ddd07
Show file tree
Hide file tree
Showing 17 changed files with 431 additions and 196 deletions.
Binary file modified docs/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/backport/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h2 style="font-size: medium">Java</h2>
<p style="font-style: italic">
Java is used by over 10 million developers and running on 56 billion devices globally!
</p>
<img src="/assets/skyclient-linux.png" style="width: 100%" />
<img src="/assets/skyclient-java.png" style="width: 100%" />
<ul>
<li>Made by @koxx12-dev</li>
<li>Made with Java</li>
Expand Down
462 changes: 267 additions & 195 deletions docs/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"preview": "vite preview"
},
"devDependencies": {
"html-minifier-terser": "^7.2.0",
"mustache": "^4.2.0",
"postcss": "^8.4.32",
"prettier": "^3.1.1",
Expand Down
128 changes: 128 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified public/assets/Skyclient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/Skyclient.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/competitor-badlion.png
Binary file not shown.
Binary file removed public/assets/competitor-feather.png
Binary file not shown.
Binary file removed public/assets/competitor-lunar.png
Binary file not shown.
Binary file removed public/assets/competitor-vanilla.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/skyclient-mart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/skyclient-windows-beta.png
Binary file not shown.
Binary file modified public/assets/skyclient-windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,27 @@ export default {
"main-2": "#56a644",
"main-1": "#42823f",
"main-0": "#336037",
primary: "rgb(152 213 164)",
"on-primary": "rgb(0 57 26)",
"primary-container": "rgb(22 81 44)",
"on-primary-container": "rgb(179 241 191)",
background: "rgb(16 21 16)",
"on-background": "rgb(223 228 220)",
"surface-container-low": "rgb(24 29 24)",
"surface-container-high": "rgb(38 43 38)",
},
fontFamily: {
sans: ["Inter", "Roboto", "system-ui", "sans-serif"],
},
},
borderRadius: {
none: "0",
1: "0.25rem",
2: "0.5rem",
4: "1rem",
6: "1.5rem",
8: "2rem",
full: "99rem",
},
},
plugins: [],
Expand Down
13 changes: 13 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from "vite";
import { resolve } from "path";
import { minify } from "html-minifier-terser";

export default defineConfig({
appType: "mpa",
Expand All @@ -15,4 +16,16 @@ export default defineConfig({
},
},
},
plugins: [
{
name: "minify-html",
transformIndexHtml: {
handler(html, ctx) {
return minify(html, {
collapseWhitespace: true,
});
},
},
},
],
});

0 comments on commit b3ddd07

Please sign in to comment.