Skip to content

Commit 5968d88

Browse files
committed
style: setup vite
1 parent 387d53d commit 5968d88

File tree

8 files changed

+72
-76
lines changed

8 files changed

+72
-76
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

public/jwc-dark.svg

-8
This file was deleted.

public/jwc.svg

-8
This file was deleted.

public/vite.svg

-1
This file was deleted.

src/App.css

+59
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,62 @@
1+
:root {
2+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3+
font-size: 16px;
4+
line-height: 24px;
5+
font-weight: 400;
6+
7+
color-scheme: light dark;
8+
color: rgba(255, 255, 255, 0.87);
9+
background-color: #242424;
10+
11+
font-synthesis: none;
12+
text-rendering: optimizeLegibility;
13+
-webkit-font-smoothing: antialiased;
14+
-moz-osx-font-smoothing: grayscale;
15+
-webkit-text-size-adjust: 100%;
16+
}
17+
18+
a {
19+
font-weight: 500;
20+
color: #646cff;
21+
text-decoration: inherit;
22+
}
23+
a:hover {
24+
color: #535bf2;
25+
}
26+
27+
body {
28+
margin: 0;
29+
/* display: flex; */
30+
/* place-items: center; */
31+
min-width: 320px;
32+
min-height: 100vh;
33+
}
34+
35+
h1 {
36+
font-size: 3.2em;
37+
line-height: 1.1;
38+
}
39+
40+
@media (prefers-color-scheme: light) {
41+
:root {
42+
color: #213547;
43+
background-color: #ffffff;
44+
}
45+
a:hover {
46+
color: #747bff;
47+
}
48+
button {
49+
background-color: #f9f9f9;
50+
}
51+
}
52+
53+
#root {
54+
max-width: 1280px;
55+
margin: 0 auto;
56+
padding: 2rem;
57+
text-align: center;
58+
}
59+
160
:host {
261
max-width: 1280px;
362
margin: 0 auto;

src/App.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Component, Fragment, JwcComponent, Prop, h } from 'jwcjs'
22
import md5 from 'md5'
3-
43
import styles from './App.css?inline'
54

65
@Component({

src/index.css

-58
This file was deleted.

vite.config.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from 'vite'
2+
export default defineConfig({
3+
build: {
4+
rollupOptions: {
5+
treeshake: true,
6+
output: {
7+
entryFileNames: 'mog-comments.js',
8+
format: 'es',
9+
},
10+
},
11+
},
12+
})

0 commit comments

Comments
 (0)