Skip to content

Commit 6b7cfc7

Browse files
committed
rendered navbar hero and footer in playground file
1 parent 7aefaf6 commit 6b7cfc7

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

src/Playground.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
import Hero from './components/hero.jsx';
2+
import Navbar from './components/navbar.jsx';
3+
import Footer from './components/footer.jsx';
4+
15
const Playground = () => {
26
return (
3-
<div className="bg-slate-800 min-h-screen flex justify-center items-center text-white text-7xl">
4-
Playground
7+
<div>
8+
<Navbar />
9+
<Hero />
10+
<Footer />
511
</div>
612
);
713
};

src/main.jsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,12 @@ import './index.css';
44
import App from './App.jsx';
55
import { BrowserRouter, Route, Routes } from 'react-router';
66
import Playground from './Playground.jsx';
7-
import Hero from './components/hero.jsx';
8-
import Navbar from './components/navbar.jsx';
9-
import Footer from './components/footer.jsx';
107

118
createRoot(document.getElementById('root')).render(
129
<StrictMode>
1310
<BrowserRouter>
1411
<Routes>
1512
<Route path="/" element={<App />} />
16-
<Route path="/navbar" element={<Navbar />} />
17-
<Route path="/hero" element={<Hero />} />
18-
<Route path="/footer" element={<Footer />} />
1913
<Route path="/playground" element={<Playground />} />
2014
</Routes>
2115
</BrowserRouter>

tailwind.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
export default {
33
content: ['./index.html', './src/**/*.{js,jsx}'],
44
theme: {
5-
extend: {},
5+
extend: {
6+
boxShadow: {
7+
'inner-white': 'inset 0 2px 4px rgba(255, 255, 255, 0.5)',
8+
},
9+
fontFamily: {
10+
montserrat: ['Montserrat', 'sans-serif'],
11+
robotoMono: ['Roboto Mono', 'monospace'],
12+
},
13+
},
614
},
715
plugins: [],
816
};

0 commit comments

Comments
 (0)