Added remaining automatic light and dark mode

This commit is contained in:
Jarrod Norwell 2024-09-26 03:38:11 +08:00
parent 483952c1b4
commit 9b1f24fc18
2 changed files with 26 additions and 19 deletions

View File

@ -122,8 +122,10 @@ export default function NewHome() {
);
});
const date = new Date();
return (
<MantineProvider theme={theme}>
<MantineProvider theme={theme} forceColorScheme={date.getHours() >= 7 && date.getHours() <= 19 ? "light" : "dark"}>
<Flex align={'center'} justify={'center'} h={'100vh'} px={'md'} w={'100vw'}>
<Stack>
<Anchor href='https://twitter.com/antique_codes' ta={'center'} target='_blank'>

View File

@ -1,24 +1,29 @@
import { Container, Space, Text, Title } from "@mantine/core";
import { Container, MantineProvider, Space, Text, Title } from "@mantine/core";
import classes from './PrivacyPolicyMarkdown.module.css';
import { theme } from "../../theme";
export function PrivacyPolicyMarkdown() {
const date = new Date();
return (
<Container className={classes.wrapper}>
<Title order={1}>
Privacy Policy
</Title>
<Space h={'xl'} />
<Text>
Folium and its developer take your privacy very seriously. Beyond the information Apple provides to developers that you can decide to provide, it uses no third-party analytics or advertising frameworks.
</Text>
<Space h={'md'} />
<Text>
Folium does have cores that save logs on-device and these can optionally be provided for better assistance in Discord, Reddit, etc. Information within these logs can be but is not limited to device specifications.
</Text>
<Space h={'xl'} />
<Text c={'dimmed'}>
© 2024 Jarrod Norwell. All Right Reserved.
</Text>
</Container>
<MantineProvider theme={theme} forceColorScheme={date.getHours() >= 7 && date.getHours() <= 19 ? "light" : "dark"}>
<Container className={classes.wrapper}>
<Title order={1}>
Privacy Policy
</Title>
<Space h={'xl'} />
<Text>
Folium and its developer take your privacy very seriously. Beyond the information Apple provides to developers that you can decide to provide, it uses no third-party analytics or advertising frameworks.
</Text>
<Space h={'md'} />
<Text>
Folium does have cores that save logs on-device and these can optionally be provided for better assistance in Discord, Reddit, etc. Information within these logs can be but is not limited to device specifications.
</Text>
<Space h={'xl'} />
<Text c={'dimmed'}>
© 2024 Jarrod Norwell. All Right Reserved.
</Text>
</Container>
</MantineProvider>
)
}