This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Showing
25 changed files
with
148 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
|
@@ -4,8 +4,8 @@ dist | |
.output | ||
.vercel | ||
.netlify | ||
netlify | ||
.vinxi | ||
app.config.timestamp_*.js | ||
|
||
# Environment | ||
.env | ||
|
File renamed without changes.
File renamed without changes.
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,26 @@ | ||
{ | ||
"name": "example-basic", | ||
"type": "module", | ||
"scripts": { | ||
"build": "vinxi build", | ||
"dev": "vinxi dev", | ||
"start": "vinxi start", | ||
"version": "vinxi version" | ||
}, | ||
"dependencies": { | ||
"@aws-sdk/client-s3": "^3.670.0", | ||
"@aws-sdk/s3-request-presigner": "^3.670.0", | ||
"@solidjs/meta": "^0.29.4", | ||
"@solidjs/router": "^0.14.8", | ||
"@solidjs/start": "^1.0.8", | ||
"solid-js": "^1.9.1", | ||
"sst": "latest", | ||
"vinxi": "^0.4.3" | ||
}, | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"overrides": { | ||
"nitropack": "npm:nitropack-nightly@latest" | ||
} | ||
} |
File renamed without changes.
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,22 @@ | ||
import { MetaProvider, Title } from "@solidjs/meta"; | ||
import { Router } from "@solidjs/router"; | ||
import { FileRoutes } from "@solidjs/start/router"; | ||
import { Suspense } from "solid-js"; | ||
import "./app.css"; | ||
|
||
export default function App() { | ||
return ( | ||
<Router | ||
root={props => ( | ||
<MetaProvider> | ||
<Title>SolidStart - Basic</Title> | ||
<a href="/">Index</a> | ||
<a href="/about">About</a> | ||
<Suspense>{props.children}</Suspense> | ||
</MetaProvider> | ||
)} | ||
> | ||
<FileRoutes /> | ||
</Router> | ||
); | ||
} |
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,21 @@ | ||
.increment { | ||
font-family: inherit; | ||
font-size: inherit; | ||
padding: 1em 2em; | ||
color: #335d92; | ||
background-color: rgba(68, 107, 158, 0.1); | ||
border-radius: 2em; | ||
border: 2px solid rgba(68, 107, 158, 0); | ||
outline: none; | ||
width: 200px; | ||
font-variant-numeric: tabular-nums; | ||
cursor: pointer; | ||
} | ||
|
||
.increment:focus { | ||
border: 2px solid #335d92; | ||
} | ||
|
||
.increment:active { | ||
background-color: rgba(68, 107, 158, 0.2); | ||
} |
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,11 @@ | ||
import { createSignal } from "solid-js"; | ||
import "./Counter.css"; | ||
|
||
export default function Counter() { | ||
const [count, setCount] = createSignal(0); | ||
return ( | ||
<button class="increment" onClick={() => setCount(count() + 1)} type="button"> | ||
Clicks: {count()} | ||
</button> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,19 @@ | ||
import { Title } from "@solidjs/meta"; | ||
import { HttpStatusCode } from "@solidjs/start"; | ||
|
||
export default function NotFound() { | ||
return ( | ||
<main> | ||
<Title>Not Found</Title> | ||
<HttpStatusCode code={404} /> | ||
<h1>Page Not Found</h1> | ||
<p> | ||
Visit{" "} | ||
<a href="https://start.solidjs.com" target="_blank"> | ||
start.solidjs.com | ||
</a>{" "} | ||
to learn how to build SolidStart apps. | ||
</p> | ||
</main> | ||
); | ||
} |
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 { Title } from "@solidjs/meta"; | ||
|
||
export default function Home() { | ||
return ( | ||
<main> | ||
<Title>About</Title> | ||
<h1>About</h1> | ||
</main> | ||
); | ||
} |
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,17 @@ | ||
/* This file is auto-generated by SST. Do not edit. */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import "sst" | ||
export {} | ||
declare module "sst" { | ||
export interface Resource { | ||
"MyBucket": { | ||
"name": string | ||
"type": "sst.aws.Bucket" | ||
} | ||
"MyWeb": { | ||
"type": "sst.aws.SolidStart" | ||
"url": string | ||
} | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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