File tree 5 files changed +20
-15
lines changed 5 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,28 @@ import React from 'react'
3
3
import ReactDOM from 'react-dom/client'
4
4
import { RouterProvider , createBrowserRouter } from 'react-router-dom'
5
5
import './index.css'
6
- import DocsView from './views/DocsView'
7
- import HowToView from './views/HowToView'
8
- import TechView from './views/TechView'
6
+ import DocsPage from './pages/DocsPage'
7
+ import HeroPage from './pages/HeroPage'
8
+ import HowToPage from './pages/HowToPage'
9
+ import TechPage from './pages/TechPage'
9
10
10
11
const router = createBrowserRouter ( [
11
12
{
12
13
path : '/' ,
13
- element : < HowToView /> ,
14
- errorElement : < HowToView /> ,
14
+ element : < HowToPage /> ,
15
+ errorElement : < HowToPage /> ,
15
16
} ,
16
17
{
17
18
path : '/docs' ,
18
- element : < DocsView /> ,
19
+ element : < DocsPage /> ,
19
20
} ,
20
21
{
21
22
path : '/tech' ,
22
- element : < TechView /> ,
23
+ element : < TechPage /> ,
24
+ } ,
25
+ {
26
+ path : '/hero' ,
27
+ element : < HeroPage /> ,
23
28
} ,
24
29
] )
25
30
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { WandSparkles } from 'lucide-react'
2
2
import Docs from '../docs/Docs'
3
3
import Page from '../layouts/Page'
4
4
5
- const DocsView = ( ) => {
5
+ const DocsPage = ( ) => {
6
6
return (
7
7
< Page >
8
8
< div className = "hidden gap-4 rounded-lg border border-amber-400 bg-amber-50 p-4 text-sm no-animations:flex dark:border-amber-600 dark:bg-stone-700/30" >
@@ -18,4 +18,4 @@ const DocsView = () => {
18
18
)
19
19
}
20
20
21
- export default DocsView
21
+ export default DocsPage
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Page from '../layouts/Page.tsx'
2
2
import HeroAnim from '../partials/HeroAnim.tsx'
3
3
import Nav from '../partials/Nav.tsx'
4
4
5
- const HomePage = ( ) => {
5
+ const HeroPage = ( ) => {
6
6
return (
7
7
< >
8
8
< Nav />
@@ -12,4 +12,4 @@ const HomePage = () => {
12
12
)
13
13
}
14
14
15
- export default HomePage
15
+ export default HeroPage
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import Installation from '../partials/Installation'
8
8
import MainTitle from '../partials/MainTitle'
9
9
import { keyframes101 , keyframes102 , keyframes103 } from '../utils/demoExamples'
10
10
11
- const HowToView = ( ) => {
11
+ const HowToPage = ( ) => {
12
12
return (
13
13
< Page >
14
14
< MainTitle />
@@ -40,4 +40,4 @@ const HowToView = () => {
40
40
)
41
41
}
42
42
43
- export default HowToView
43
+ export default HowToPage
Original file line number Diff line number Diff line change 1
1
import Page from '../layouts/Page.tsx'
2
2
import Animations from '../partials/Animations.tsx'
3
3
4
- function TechView ( ) {
4
+ function TechPage ( ) {
5
5
return (
6
6
< Page >
7
7
< Animations />
8
8
</ Page >
9
9
)
10
10
}
11
11
12
- export default TechView
12
+ export default TechPage
You can’t perform that action at this time.
0 commit comments