File tree Expand file tree Collapse file tree 5 files changed +155
-6
lines changed
Expand file tree Collapse file tree 5 files changed +155
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function App() {
99
1010 return (
1111 < div className = "min-w-full min-h-screen flex flex-col" >
12- < header className = "w-full bg-black text-white mb-10" >
12+ < header className = "w-full bg-black text-white mb-10 fixed top-0 left-0 " >
1313 < nav className = "max-w-md container mx-auto py-4 flex flex-row gap-8 justify-between" >
1414 < h1 className = "font-extrabold" >
1515 < Link href = "https://github.com/g4rcez/brouther" > Brouther</ Link >
@@ -45,7 +45,7 @@ function App() {
4545 </ ul >
4646 </ nav >
4747 </ header >
48- < div className = "w-full container max-w-lg mx-auto px-4 md:px-0" >
48+ < div className = "w-full container max-w-lg mx-auto mt-20 px-4 md:px-0" >
4949 < main className = "page" >
5050 < Outlet />
5151 </ main >
Original file line number Diff line number Diff line change 44
55html , body , # root {
66 @apply min-w-full min-h-screen;
7- }
7+ }
Original file line number Diff line number Diff line change @@ -4,12 +4,15 @@ import App from "./App";
44import { Brouther } from "../../src" ;
55import { router } from "./routes" ;
66import "./index.css" ;
7+ import { Scroll } from "../../src/brouther/scroll" ;
78
89ReactDOM . createRoot ( document . getElementById ( "root" ) as HTMLElement ) . render (
910 < React . StrictMode >
1011 < React . Suspense fallback = { < div > Loading...</ div > } >
1112 < Brouther ErrorElement = { < p > Error</ p > } config = { router . config } >
12- < App />
13+ < Scroll behavior = "smooth" >
14+ < App />
15+ </ Scroll >
1316 </ Brouther >
1417 </ React . Suspense >
1518 </ React . StrictMode >
You can’t perform that action at this time.
0 commit comments