Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing navigation to Legal pages and fixing lerna dep warning #20

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions clients/core/src/LandingPage/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { useNavigate } from 'react-router-dom'
import packageJSON from '../../../package.json'

export const Footer = (): JSX.Element => {
const version = packageJSON.version
const navigate = useNavigate()

return (
<footer className='w-full mt-16 py-6 px-4 sm:px-6 lg:px-8 border-t border-gray-200'>
Expand All @@ -19,20 +21,20 @@ export const Footer = (): JSX.Element => {
v{version}
</a>
<a
href='/about'
className='text-gray-500 hover:text-gray-700 transition-colors underline'
onClick={() => navigate('/about')}
className='text-gray-500 hover:text-gray-700 transition-colors underline cursor-pointer'
>
About
</a>
<a
href='/imprint'
className='text-gray-500 hover:text-gray-700 transition-colors underline'
onClick={() => navigate('/imprint')}
className='text-gray-500 hover:text-gray-700 transition-colors underline cursor-pointer'
>
Imprint
</a>
<a
href='/privacy'
className='text-gray-500 hover:text-gray-700 transition-colors underline'
onClick={() => navigate('/privacy')}
className='text-gray-500 hover:text-gray-700 transition-colors underline cursor-pointer'
>
Privacy Policy
</a>
Expand Down
6 changes: 6 additions & 0 deletions clients/core/src/LegalPages/Imprint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ import { Section } from './components/Section'
import { Button } from '@/components/ui/button'
import { ArrowLeft } from 'lucide-react'
import { useNavigate } from 'react-router-dom'
import { useEffect } from 'react'

export default function ImprintPage() {
const navigate = useNavigate()

useEffect(() => {
window.scrollTo(0, 0)
}, [])

return (
<div className='container mx-auto py-8 px-4'>
<Card className='w-full max-w-4xl mx-auto'>
Expand Down
6 changes: 6 additions & 0 deletions clients/core/src/LegalPages/Privacy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ import { Section } from './components/Section'
import { Button } from '@/components/ui/button'
import { ArrowLeft } from 'lucide-react'
import { useNavigate } from 'react-router-dom'
import { useEffect } from 'react'

export default function PrivacyPage() {
const navigate = useNavigate()

useEffect(() => {
window.scrollTo(0, 0)
}, [])

return (
<div className='container mx-auto py-8 px-4'>
<Card className='w-full max-w-4xl mx-auto'>
Expand Down
3 changes: 1 addition & 2 deletions clients/lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
"core",
"template_component",
"shared_library"
],
"useWorkspaces": true
]
}
Loading