mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
feat: clean up base tuono example
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
# TODO: Basic Tuono app
|
# Tuono starter
|
||||||
|
|
||||||
|
This is the starter tuono project. To download it run in your terminal:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ tuono new [NAME]
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "tuono",
|
"name": "tuono",
|
||||||
|
"description": "The react/rust fullstack framework",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"react-dom": "18.3.1",
|
"react-dom": "18.3.1",
|
||||||
"tuono": "workspace:*"
|
"tuono": "link:../../packages/tuono"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^18.3.3",
|
"@types/react": "^18.3.3",
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
export default function Button(): JSX.Element {
|
|
||||||
return <button>Button</button>
|
|
||||||
}
|
|
||||||
@@ -3,10 +3,7 @@ import type { ReactNode } from 'react'
|
|||||||
interface RootRouteProps {
|
interface RootRouteProps {
|
||||||
children: ReactNode
|
children: ReactNode
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function RootRoute({ children }: RootRouteProps): JSX.Element {
|
export default function RootRoute({ children }: RootRouteProps): JSX.Element {
|
||||||
return (
|
return <main className="main">{children}</main>
|
||||||
<>
|
|
||||||
<main className="main">{children}</main>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import type { TuonoProps } from 'tuono'
|
import type { TuonoProps } from 'tuono'
|
||||||
|
|
||||||
type IndexProps = {
|
interface IndexProps {
|
||||||
subtitle: string
|
subtitle: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function IndexPage({
|
export default function IndexPage({
|
||||||
data,
|
data,
|
||||||
isLoading,
|
isLoading,
|
||||||
@@ -32,7 +33,12 @@ export default function IndexPage({
|
|||||||
</div>
|
</div>
|
||||||
<div className="subtitle-wrap">
|
<div className="subtitle-wrap">
|
||||||
<p className="subtitle">{data?.subtitle}</p>
|
<p className="subtitle">{data?.subtitle}</p>
|
||||||
<a href="https://github.com/Valerioageno/tuono" target="_blank">
|
<a
|
||||||
|
href="https://github.com/Valerioageno/tuono"
|
||||||
|
target="_blank"
|
||||||
|
className="button"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
Github
|
Github
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -51,12 +51,32 @@ main {
|
|||||||
z-index: 0;
|
z-index: 0;
|
||||||
letter-spacing: -2px;
|
letter-spacing: -2px;
|
||||||
margin-left: -8px;
|
margin-left: -8px;
|
||||||
|
user-select: none;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title span {
|
.title span {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
width: 140px;
|
||||||
|
height: 30px;
|
||||||
|
border: solid 3px black;
|
||||||
|
border-radius: 10px;
|
||||||
|
color: black;
|
||||||
|
text-decoration: none;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
transition: 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:hover {
|
||||||
|
color: white;
|
||||||
|
background: black;
|
||||||
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
margin-left: 240px;
|
margin-left: 240px;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
Reference in New Issue
Block a user