finish examples

This commit is contained in:
Rene Haas
2022-11-12 11:33:07 +01:00
parent 350c65e854
commit ec91edfe8c
48 changed files with 1069 additions and 15304 deletions
-20
View File
@@ -1,28 +1,8 @@
.App {
text-align: center;
}
.logo {
animation: logo-spin infinite 20s linear;
height: 40vmin;
pointer-events: none;
}
.header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.link {
color: #b318f0;
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
+6 -17
View File
@@ -5,23 +5,12 @@ import logo from './logo.svg';
const App: Component = () => {
return (
<div class={styles.App}>
<header class={styles.header}>
<img src={logo} class={styles.logo} alt="logo" />
<p>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<OverlayScrollbarsComponent element="span" />
<a
class={styles.link}
href="https://github.com/solidjs/solid"
target="_blank"
rel="noopener noreferrer"
>
Learn Solid
</a>
</header>
</div>
<OverlayScrollbarsComponent
style={{ width: '222px', height: '222px' }}
options={{ scrollbars: { theme: 'os-theme-light' } }}
>
<img src={logo} class={styles.logo} alt="logo" width="333" height="333" />
</OverlayScrollbarsComponent>
);
};
+12 -5
View File
@@ -1,13 +1,20 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
+1
View File
@@ -1,4 +1,5 @@
/* @refresh reload */
import 'overlayscrollbars/overlayscrollbars.css';
import { render } from 'solid-js/web';
import './index.css';