Skip to content

Commit

Permalink
fix(vite-project): update app with demo-ui fixes and imported reset/n…
Browse files Browse the repository at this point in the history
…ormalize styles
  • Loading branch information
waldronmatt committed Oct 8, 2023
1 parent 415e892 commit f45bb89
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 19 deletions.
4 changes: 3 additions & 1 deletion apps/vite-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"@waldronmatt/demo-ui": "^1.1.2",
"@waldronmatt/parity": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"sanitize.css": "^13.0.0",
"the-new-css-reset": "^1.11.0"
},
"devDependencies": {
"@types/react": "^18.2.15",
Expand Down
6 changes: 1 addition & 5 deletions apps/vite-project/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,5 @@
}

.card {
padding: 2em;
}

.read-the-docs {
color: #888;
padding: 1em;
}
10 changes: 5 additions & 5 deletions apps/vite-project/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useState } from 'react';
import reactLogo from './assets/react.svg';
import viteLogo from '/vite.svg';
import '@waldronmatt/demo-ui/styles/global.css';
import { Button } from '@waldronmatt/demo-ui/components/Button/index.js';
import { Link } from '@waldronmatt/demo-ui/components/Link/index.js';
import { addition } from '@waldronmatt/basic-math/addition.js';
import { isEven } from '@waldronmatt/parity/even.js';
import './App.css';
Expand All @@ -14,12 +14,12 @@ function App() {
return (
<>
<div>
<Link href="https://vitejs.dev" target="_blank" rel="noreferrer">
<a href="https://vitejs.dev" target="_blank" rel="noreferrer">
<img src={viteLogo} className="logo" alt="Vite logo" />
</Link>
<Link href="https://react.dev" target="_blank" rel="noreferrer">
</a>
<a href="https://react.dev" target="_blank" rel="noreferrer">
<img src={reactLogo} className="logo react" alt="React logo" />
</Link>
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
Expand Down
8 changes: 0 additions & 8 deletions apps/vite-project/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
Expand Down
2 changes: 2 additions & 0 deletions apps/vite-project/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.js';
import 'the-new-css-reset/css/reset.css';
import 'sanitize.css';
import './index.css';

ReactDOM.createRoot(document.getElementById('root')!).render(
Expand Down

0 comments on commit f45bb89

Please sign in to comment.