Skip to content

Commit

Permalink
spa example with assets
Browse files Browse the repository at this point in the history
  • Loading branch information
nksaraf committed Dec 27, 2023
1 parent 9274a65 commit efc56d5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 10 additions & 1 deletion examples/solid/spa/basic/app/client.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/// <reference types="vinxi/types/client" />
import { render } from "solid-js/web";

import Logo from "./logo.png";
import "./style.css";

render(() => <div>Hello World</div>, document.getElementById("root")!);
render(
() => (
<div>
Hello World
<img src={Logo} />
</div>
),
document.getElementById("root")!,
);
Binary file added examples/solid/spa/basic/app/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions examples/solid/spa/basic/app/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@tailwind components;
@tailwind utilities;

html {
@apply bg-red-100;
}

* {
color: red;
}
color: red;
}

0 comments on commit efc56d5

Please sign in to comment.