Skip to content

Commit 39665b7

Browse files
committed
finalize the files
1 parent 2801994 commit 39665b7

17 files changed

+891
-437
lines changed

.prettierrc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"useTabs": true,
3-
"singleQuote": true,
4-
"trailingComma": "none",
5-
"printWidth": 100,
6-
"plugins": ["prettier-plugin-svelte"],
7-
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
2+
"singleQuote": true,
3+
"trailingComma": "none",
4+
"printWidth": 100,
5+
"plugins": ["prettier-plugin-svelte"],
6+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
87
}

README.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
<!-- <img|title here> -->
2-
31
![image](static/snap.png)
42

5-
<!-- shield.io, 'project built with' -->
3+
![Static Badge](https://img.shields.io/badge/sveltekit-v2%2e0%2e0-f96743) ![Static Badge](https://img.shields.io/badge/tailwindcss-v3%2e4%2e7-38bdf8)
4+
![image](static/snap.png)
65

76
![Static Badge](https://img.shields.io/badge/sveltekit-v2%2e0%2e0-f96743) ![Static Badge](https://img.shields.io/badge/tailwindcss-v3%2e4%2e7-38bdf8)
87

@@ -22,10 +21,11 @@ This guide provides a first-hand experience on building a Svelte project using [
2221
cd project_name
2322
```
2423

25-
**2. Install Tailwind CSS.**
24+
**2. Install Tailwind CSS and sveltekit static adapter.** <small>[reference here](https://kit.svelte.dev/docs/adapter-static)</small>
2625

2726
```bash
2827
# terminal
28+
npm i -D @sveltejs/adapter-static
2929
npm install -D tailwindcss postcss autoprefixer
3030
npx tailwindcss init -p
3131
```
@@ -34,15 +34,15 @@ This guide provides a first-hand experience on building a Svelte project using [
3434

3535
```js
3636
// svelte.config.js
37-
import adapter from '@sveltejs/adapter-auto';
37+
import adapter from '@sveltejs/adapter-static';
3838
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
3939

4040
/** @type {import('@sveltejs/kit').Config} */
4141
const config = {
42-
kit: {
43-
adapter: adapter()
44-
},
45-
preprocess: vitePreprocess()
42+
kit: {
43+
adapter: adapter()
44+
},
45+
preprocess: vitePreprocess()
4646
};
4747

4848
export default config;
@@ -54,11 +54,11 @@ export default config;
5454
// tailwind.config.js
5555
/** @type {import('tailwindcss').Config} */
5656
export default {
57-
content: ['./src/**/*.{html,js,svelte,ts}'],
58-
theme: {
59-
extend: {}
60-
},
61-
plugins: []
57+
content: ['./src/**/*.{html,js,svelte,ts}'],
58+
theme: {
59+
extend: {}
60+
},
61+
plugins: []
6262
};
6363
```
6464

@@ -76,7 +76,7 @@ export default {
7676
```html
7777
<!-- +layout.svelte -->
7878
<script>
79-
import '../app.css';
79+
import '../app.css';
8080
</script>
8181

8282
<slot />
@@ -85,6 +85,8 @@ export default {
8585
**7. Start your build process.**
8686

8787
```bash
88+
# terminal
89+
# terminal
8890
npm run dev
8991
```
9092

@@ -94,9 +96,9 @@ export default {
9496
<h1 class="text-3xl font-bold underline">Hello world!</h1>
9597

9698
<style lang="postcss">
97-
:global(html) {
98-
background-color: theme(colors.gray.100);
99-
}
99+
:global(html) {
100+
background-color: theme(colors.gray.100);
101+
}
100102
</style>
101103
```
102104

@@ -159,9 +161,9 @@ npm install gh-pages --save-dev
159161

160162
```json
161163
{
162-
"scripts": {
163-
"deploy": "npm run build && gh-pages -d build -t true"
164-
}
164+
"scripts": {
165+
"deploy": "npm run build && gh-pages -d build"
166+
}
165167
}
166168
```
167169

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy