Skip to content

Commit

Permalink
Cleanup create-react-app, add Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
chartgerink committed Oct 9, 2024
1 parent 0fb8d14 commit 46528ec
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 68 deletions.
38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

18 changes: 3 additions & 15 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import Grid from './Grid';

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p className='bg-red-500'>
Edit <code>src/App.tsx</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>

</header>
<Grid first={<div>Column/Row 1</div>} second={<div>Column/Row 2</div>} />
</div>
);
}
Expand Down
12 changes: 12 additions & 0 deletions src/Grid.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';

const ResponsiveGrid = ({first, second}: any) => {
return (
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 min-h-screen">
<div className="bg-blue-500 p-4">{first}</div>
<div className="bg-green-500 p-4">{second}</div>
</div>
);
}

export default ResponsiveGrid;
14 changes: 0 additions & 14 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
margin: 0;
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;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.

0 comments on commit 46528ec

Please sign in to comment.