Skip to content

Instantly share code, notes, and snippets.

@demarchenac
Last active August 29, 2022 07:05
Show Gist options
  • Save demarchenac/d36ab5becc363bdfe212e3d3ae986b0a to your computer and use it in GitHub Desktop.
Save demarchenac/d36ab5becc363bdfe212e3d3ae986b0a to your computer and use it in GitHub Desktop.
Vite + React base setup
:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
h3, p {
margin: 0;
}
form {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 8px;
margin: 0px auto;
border: 1px solid #fff;
border-radius: 8px;
padding: 8px;
width: 200px;
}
form label {
cursor: pointer;
}
form input {
width: calc(100% - 8px);
}
form button {
align-self: flex-end;
cursor: pointer;
}
form span{
color: #ef4444;
font-size: 0.8em;
text-align: left;
}
ul{
padding: 0px;
}
li {
list-style-type: none;
}
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.card {
padding: 2em;
}
.item {
cursor: pointer;
}
.done {
text-decoration: line-through;
font-style: italic;
}
import "./App.css";
export default function App() {
return (
<div className="App">
<h1>Lista de Pendientes</h1>
<span>Pendientes: 03.</span>
<ul className="card">
<li>Ver la sesi&oacute;n #06</li>
<li>Hacer el componente pr&aacute;ctico</li>
<li>Guardar c&aacute;mbios</li>
</ul>
</div>
);
}
{
"name": "sesion6",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite --host --port 3000",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.1",
"vite": "^3.0.7"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment