feat: add sr-only h1 title per-page
This commit is contained in:
parent
50fb9af24f
commit
eccd7b5d96
|
|
@ -198,6 +198,21 @@ export default function ImportExportPage() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<h1
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
width: '1px',
|
||||||
|
height: '1px',
|
||||||
|
padding: 0,
|
||||||
|
margin: '-1px',
|
||||||
|
overflow: 'hidden',
|
||||||
|
clip: 'rect(0,0,0,0)',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
border: 0
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Import/Export
|
||||||
|
</h1>
|
||||||
<Tabs
|
<Tabs
|
||||||
radius="sm"
|
radius="sm"
|
||||||
defaultValue="import"
|
defaultValue="import"
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,21 @@ export default function LoginPage() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box sx={{ maxWidth: 300 }} mx="auto">
|
<Box sx={{ maxWidth: 300 }} mx="auto">
|
||||||
|
<h1
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
width: '1px',
|
||||||
|
height: '1px',
|
||||||
|
padding: 0,
|
||||||
|
margin: '-1px',
|
||||||
|
overflow: 'hidden',
|
||||||
|
clip: 'rect(0,0,0,0)',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
border: 0
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Login
|
||||||
|
</h1>
|
||||||
<Form method="post" noValidate>
|
<Form method="post" noValidate>
|
||||||
<TextInput
|
<TextInput
|
||||||
mb={12}
|
mb={12}
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,21 @@ export default function Projects() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<h1
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
width: '1px',
|
||||||
|
height: '1px',
|
||||||
|
padding: 0,
|
||||||
|
margin: '-1px',
|
||||||
|
overflow: 'hidden',
|
||||||
|
clip: 'rect(0,0,0,0)',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
border: 0
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Projects
|
||||||
|
</h1>
|
||||||
<Paper
|
<Paper
|
||||||
component="fieldset"
|
component="fieldset"
|
||||||
aria-controls="projects"
|
aria-controls="projects"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { Box, Paper } from '@mantine/core';
|
import { Box, Paper, Title } from '@mantine/core';
|
||||||
import { MetaFunction, LoaderArgs, redirect, json } from '@remix-run/node';
|
import { MetaFunction, LoaderArgs, redirect, json } from '@remix-run/node';
|
||||||
import { useLoaderData } from '@remix-run/react';
|
import { useLoaderData } from '@remix-run/react';
|
||||||
import { getTimeEntries } from '~/models/timeEntry.server';
|
import { getTimeEntries } from '~/models/timeEntry.server';
|
||||||
|
|
@ -28,7 +28,21 @@ export default function ReportPage() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h1>Report</h1>
|
<h1
|
||||||
|
style={{
|
||||||
|
position: 'absolute',
|
||||||
|
width: '1px',
|
||||||
|
height: '1px',
|
||||||
|
padding: 0,
|
||||||
|
margin: '-1px',
|
||||||
|
overflow: 'hidden',
|
||||||
|
clip: 'rect(0,0,0,0)',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
border: 0
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Report
|
||||||
|
</h1>
|
||||||
<Paper p="lg" radius="md">
|
<Paper p="lg" radius="md">
|
||||||
Coming soon
|
Coming soon
|
||||||
</Paper>
|
</Paper>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue