Skip to content

Commit 2a93171

Browse files
author
Adam Plesnik
committed
Move and rename pages, add HeroPage to test hero anim
1 parent 80c3e02 commit 2a93171

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

docs/src/main.tsx

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,28 @@ import React from 'react'
33
import ReactDOM from 'react-dom/client'
44
import { RouterProvider, createBrowserRouter } from 'react-router-dom'
55
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'
910

1011
const router = createBrowserRouter([
1112
{
1213
path: '/',
13-
element: <HowToView />,
14-
errorElement: <HowToView />,
14+
element: <HowToPage />,
15+
errorElement: <HowToPage />,
1516
},
1617
{
1718
path: '/docs',
18-
element: <DocsView />,
19+
element: <DocsPage />,
1920
},
2021
{
2122
path: '/tech',
22-
element: <TechView />,
23+
element: <TechPage />,
24+
},
25+
{
26+
path: '/hero',
27+
element: <HeroPage />,
2328
},
2429
])
2530

docs/src/views/DocsView.tsx renamed to docs/src/pages/DocsPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { WandSparkles } from 'lucide-react'
22
import Docs from '../docs/Docs'
33
import Page from '../layouts/Page'
44

5-
const DocsView = () => {
5+
const DocsPage = () => {
66
return (
77
<Page>
88
<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 = () => {
1818
)
1919
}
2020

21-
export default DocsView
21+
export default DocsPage

docs/src/pages/HomePage.tsx renamed to docs/src/pages/HeroPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Page from '../layouts/Page.tsx'
22
import HeroAnim from '../partials/HeroAnim.tsx'
33
import Nav from '../partials/Nav.tsx'
44

5-
const HomePage = () => {
5+
const HeroPage = () => {
66
return (
77
<>
88
<Nav />
@@ -12,4 +12,4 @@ const HomePage = () => {
1212
)
1313
}
1414

15-
export default HomePage
15+
export default HeroPage

docs/src/views/HowToView.tsx renamed to docs/src/pages/HowToPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Installation from '../partials/Installation'
88
import MainTitle from '../partials/MainTitle'
99
import { keyframes101, keyframes102, keyframes103 } from '../utils/demoExamples'
1010

11-
const HowToView = () => {
11+
const HowToPage = () => {
1212
return (
1313
<Page>
1414
<MainTitle />
@@ -40,4 +40,4 @@ const HowToView = () => {
4040
)
4141
}
4242

43-
export default HowToView
43+
export default HowToPage
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import Page from '../layouts/Page.tsx'
22
import Animations from '../partials/Animations.tsx'
33

4-
function TechView() {
4+
function TechPage() {
55
return (
66
<Page>
77
<Animations />
88
</Page>
99
)
1010
}
1111

12-
export default TechView
12+
export default TechPage

0 commit comments

Comments
 (0)