-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove template content, add tachyons
- Loading branch information
Showing
7 changed files
with
5 additions
and
133 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
Empty file.
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 |
---|---|---|
@@ -1,25 +1,3 @@ | ||
#app { | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
text-align: center; | ||
} | ||
|
||
.logo { | ||
height: 6em; | ||
padding: 1.5em; | ||
} | ||
.logo:hover { | ||
filter: drop-shadow(0 0 2em #646cffaa); | ||
} | ||
.logo.preact:hover { | ||
filter: drop-shadow(0 0 2em #673ab8aa); | ||
} | ||
|
||
.card { | ||
padding: 2em; | ||
} | ||
|
||
.read-the-docs { | ||
color: #888; | ||
} |
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,43 +1,5 @@ | ||
import { useState } from 'preact/hooks' | ||
import preactLogo from './assets/preact.svg' | ||
import viteLogo from '/vite.svg' | ||
import './app.css' | ||
|
||
export function App() { | ||
const [count, setCount] = useState(0) | ||
|
||
return ( | ||
<> | ||
<div> | ||
<a href="https://vite.dev" target="_blank"> | ||
<img src={viteLogo} class="logo" alt="Vite logo" /> | ||
</a> | ||
<a href="https://preactjs.com" target="_blank"> | ||
<img src={preactLogo} class="logo preact" alt="Preact logo" /> | ||
</a> | ||
</div> | ||
<h1>Vite + Preact</h1> | ||
<div class="card"> | ||
<button onClick={() => setCount((count) => count + 1)}> | ||
count is {count} | ||
</button> | ||
<p> | ||
Edit <code>src/app.jsx</code> and save to test HMR | ||
</p> | ||
</div> | ||
<p> | ||
Check out{' '} | ||
<a | ||
href="https://preactjs.com/guide/v10/getting-started#create-a-vite-powered-preact-app" | ||
target="_blank" | ||
> | ||
create-preact | ||
</a> | ||
, the official Preact + Vite starter | ||
</p> | ||
<p class="read-the-docs"> | ||
Click on the Vite and Preact logos to learn more | ||
</p> | ||
</> | ||
) | ||
return <h1 class="sans-serif f1">Pyla</h1> | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.