Skip to content

Commit

Permalink
Add about page
Browse files Browse the repository at this point in the history
  • Loading branch information
patdx committed Jan 6, 2025
1 parent 03d8010 commit 8e7794a
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
- like +10s -10s
- or a dial
- or tapping text in the transcript view
- fix darkmode
- the number inputs seem to have white text in white bg in dark mode
6 changes: 6 additions & 0 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ const EditFilesPage = () => {
}}
</For>
</List>

<Block className="px-4 mt-4 text-center">
<RouterLink to="/about" className="text-sm text-blue-600">
About this app
</RouterLink>
</Block>
</>
)
}
56 changes: 56 additions & 0 deletions app/routes/about.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import {
Block,
Navbar,
NavbarBackLink,
Page,
List,
ListItem,
} from 'konsta/react'
import type { Route } from './+types/_index'
import { useNavigate } from 'react-router'

export function meta({}: Route.MetaArgs) {
return [{ title: 'About - Subtitle App' }]
}

export default function About({}: Route.ComponentProps) {
let navigate = useNavigate()

return (
<Page>
<Navbar
title="About"
large
transparent
centerTitle
left={<NavbarBackLink text="Back" onClick={() => navigate(-1)} />}
/>
<Block className="px-4">
<p className="text-sm text-gray-600">
Subtitle App by{' '}
<a href="https://github.com/patdx" target="_blank" rel="noreferrer">
patdx
</a>
.
</p>
</Block>

<List strongIos outlineIos>
<ListItem
link
title="Visit patdx on GitHub"
href="https://github.com/patdx"
target="_blank"
rel="noreferrer"
/>
<ListItem
link
title="View the Subtitle App repository"
href="https://github.com/patdx/subtitle-app"
target="_blank"
rel="noreferrer"
/>
</List>
</Page>
)
}

0 comments on commit 8e7794a

Please sign in to comment.