generated from kurone-kito/vpm-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fef0ae7
commit 351849e
Showing
11 changed files
with
150 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer components { | ||
.article-container { | ||
@apply mx-auto p-6 lg:px-0 lg:py-6 lg:container; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,32 @@ | ||
import { Router } from '@solidjs/router'; | ||
import { FileRoutes } from '@solidjs/start/router'; | ||
import type { Component } from 'solid-js'; | ||
import { Suspense } from 'solid-js'; | ||
import './app.css'; | ||
|
||
const App: Component = () => <>Hello,world!</>; | ||
const App: Component = () => ( | ||
<div> | ||
<ul class="flex gap-2"> | ||
<li> | ||
<a href=".">Index</a> | ||
</li> | ||
<li> | ||
<a href="docs">Docs</a> | ||
</li> | ||
<li> | ||
<a href="explore">Explore</a> | ||
</li> | ||
<li> | ||
<a href="pricing">Pricing</a> | ||
</li> | ||
</ul> | ||
<Router | ||
base={import.meta.env.SERVER_BASE_URL} | ||
root={(props) => <Suspense>{props.children}</Suspense>} | ||
> | ||
<FileRoutes /> | ||
</Router> | ||
</div> | ||
); | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { Component } from 'solid-js'; | ||
|
||
/** | ||
* The documents page. | ||
* @returns The component. | ||
*/ | ||
const Docs: Component = () => ( | ||
<main class="article-container"> | ||
<h1>Docs page</h1> | ||
<p>TODO: Add the content here.</p> | ||
</main> | ||
); | ||
|
||
export default Docs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { Component } from 'solid-js'; | ||
|
||
/** | ||
* The explore page. | ||
* @returns The component. | ||
*/ | ||
const Explore: Component = () => ( | ||
<main class="article-container"> | ||
<h1>Explore page</h1> | ||
<p>TODO: Add the content here.</p> | ||
</main> | ||
); | ||
|
||
export default Explore; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { Component, JSX } from 'solid-js'; | ||
|
||
const Index: Component = (): JSX.Element => ( | ||
<main class="article-container"> | ||
<h1>Top page</h1> | ||
<p>TODO: Add the content here.</p> | ||
</main> | ||
); | ||
|
||
export default Index; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { Component } from 'solid-js'; | ||
|
||
/** | ||
* The explore page. | ||
* @returns The component. | ||
*/ | ||
const Pricing: Component = () => ( | ||
<main class="article-container"> | ||
<h1>Pricing page</h1> | ||
<p>TODO: Add the content here.</p> | ||
</main> | ||
); | ||
|
||
export default Pricing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
export default { content: ['./src/**/*.{html,js,jsx,ts,tsx}'] }; | ||
export default { | ||
content: ['./src/**/*.{html,js,jsx,ts,tsx}'], | ||
darkMode: 'class', | ||
theme: { | ||
extend: { | ||
fontFamily: { | ||
sans: [ | ||
'Helvetica Neue', | ||
'Arial', | ||
'Hiragino Sans', | ||
'BIZ UDPGothic', | ||
'Yu Gothic', | ||
'YuGothic', | ||
'Meiryo', | ||
'sans-serif', | ||
], | ||
}, | ||
}, | ||
}, | ||
}; |