dynamic sections and more services added
This commit is contained in:
@@ -6,168 +6,90 @@ import Link from "@mui/material/Link";
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Paper from "@mui/material/Paper";
|
||||
|
||||
|
||||
export function meta() {
|
||||
return [
|
||||
{title: "Material UI - React Router example in TypeScript"},
|
||||
{
|
||||
name: "description",
|
||||
content:
|
||||
"Welcome to Material UI - React Router example in TypeScript!",
|
||||
},
|
||||
];
|
||||
return [
|
||||
{ title: "Aetoskia Hideout" },
|
||||
{
|
||||
name: "description",
|
||||
content: "Welcome to Aetoskia's Hideout!",
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
const services = {
|
||||
media: [
|
||||
{
|
||||
name: "Jellyseerr",
|
||||
url: "http://jellyseerr.aetoskia.com",
|
||||
desc: "Request movies & TV shows",
|
||||
},
|
||||
// {
|
||||
// name: "Ombi",
|
||||
// url: "http://ombi.aetoskia.com",
|
||||
// desc: "Request movies & TV shows",
|
||||
// },
|
||||
{
|
||||
name: "Sonarr",
|
||||
url: "http://sonarr.aetoskia.com",
|
||||
desc: "TV series management",
|
||||
},
|
||||
{
|
||||
name: "Radarr",
|
||||
url: "http://radarr.aetoskia.com",
|
||||
desc: "Movie management",
|
||||
},
|
||||
// {
|
||||
// name: "Prowlarr",
|
||||
// url: "http://prowlarr.aetoskia.com",
|
||||
// desc: "Indexer management",
|
||||
// },
|
||||
{
|
||||
name: "qBit",
|
||||
url: "http://qbit.aetoskia.com",
|
||||
desc: "Download client & torrent manager",
|
||||
external: true,
|
||||
},
|
||||
],
|
||||
core: [
|
||||
{
|
||||
name: "Gitea",
|
||||
url: "http://gitea.aetoskia.com",
|
||||
desc: "Hosted on Core Server",
|
||||
external: true,
|
||||
},
|
||||
],
|
||||
media: [
|
||||
{ name: "Jellyseerr", url: "http://jellyseerr.aetoskia.com", desc: "Summon films and series from the digital void.", external: true },
|
||||
{ name: "Sonarr", url: "http://sonarr.aetoskia.com", desc: "Keep the endless chronicles of TV under iron control.", external: true },
|
||||
{ name: "Radarr", url: "http://radarr.aetoskia.com", desc: "Command the legions of cinema, enforce cinematic order.", external: true },
|
||||
{ name: "qBit", url: "http://qbit.aetoskia.com", desc: "Torrent war engine, fetching data across the nether realms.", external: true },
|
||||
],
|
||||
codebase: [
|
||||
{ name: "Gitea", url: "http://gitea.aetoskia.com", desc: "Forge and safeguard code like a sacred relic.", external: true },
|
||||
{ name: "DCR", url: "http://dcr.aetoskia.com", desc: "Monitor core constructs of the digital empire.", external: true },
|
||||
{ name: "Drone", url: "http://drone.aetoskia.com", desc: "Automaton architect, building pipelines of perfection.", external: true },
|
||||
],
|
||||
monitoring: [
|
||||
{ name: "Portainer", url: "http://portainer.aetoskia.com", desc: "Oversee the fleet of containers with unyielding vigilance.", external: true },
|
||||
],
|
||||
};
|
||||
|
||||
export default function Home() {
|
||||
// @ts-ignore
|
||||
return (
|
||||
<Container maxWidth="lg">
|
||||
<Box
|
||||
sx={{
|
||||
minHeight: "120vh",
|
||||
backgroundImage: "url('/extended_sigil.png')",
|
||||
backgroundSize: "cover",
|
||||
backgroundRepeat: "no-repeat",
|
||||
backgroundPosition: "center",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
}}
|
||||
>
|
||||
{/* Spacer pushes bottom part down */}
|
||||
<Box sx={{flex: 1}}/>
|
||||
return (
|
||||
<Container maxWidth="lg">
|
||||
<Box
|
||||
sx={{
|
||||
minHeight: "120vh",
|
||||
backgroundImage: "url('/extended_sigil.png')",
|
||||
backgroundSize: "cover",
|
||||
backgroundRepeat: "no-repeat",
|
||||
backgroundPosition: "center",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
}}
|
||||
>
|
||||
<Box sx={{ flex: 1 }} />
|
||||
|
||||
{/* Bottom dashboard: only 50% height of viewport */}
|
||||
<Box
|
||||
sx={{
|
||||
height: "60vh", // 50% of viewport height
|
||||
overflowY: "auto", // scroll if content overflows
|
||||
p: 2,
|
||||
}}
|
||||
<Box sx={{ height: "60vh", overflowY: "auto", p: 2 }}>
|
||||
<Container
|
||||
maxWidth="lg"
|
||||
sx={{ bgcolor: "#1a1a1a", borderRadius: 3, p: 3, boxShadow: 6 }}
|
||||
>
|
||||
{Object.entries(services).map(([sectionName, serviceList]) => (
|
||||
<React.Fragment key={sectionName}>
|
||||
<Typography
|
||||
variant="h5"
|
||||
align="center"
|
||||
sx={{ color: "warning.main", mt: 4, mb: 2 }}
|
||||
>
|
||||
<Container
|
||||
maxWidth="lg"
|
||||
sx={{
|
||||
bgcolor: "#1a1a1a", // dark background
|
||||
borderRadius: 3,
|
||||
p: 3,
|
||||
boxShadow: 6,
|
||||
}}
|
||||
{sectionName.charAt(0).toUpperCase() + sectionName.slice(1)} Services
|
||||
</Typography>
|
||||
<Grid container spacing={3} justifyContent="center">
|
||||
{serviceList.map((s) => (
|
||||
<Paper
|
||||
key={s.name}
|
||||
elevation={3}
|
||||
sx={{ p: 2, textAlign: "center", bgcolor: "#2d2d2d", borderRadius: 2 }}
|
||||
>
|
||||
<Typography
|
||||
variant="h5"
|
||||
align="center"
|
||||
sx={{color: "warning.main", mt: 4, mb: 2}}
|
||||
>
|
||||
Core Services
|
||||
</Typography>
|
||||
<Grid container spacing={3} justifyContent="center">
|
||||
{services.core.map((s) => (
|
||||
<Paper
|
||||
elevation={3}
|
||||
sx={{
|
||||
p: 2,
|
||||
textAlign: "center",
|
||||
bgcolor: "#2d2d2d",
|
||||
borderRadius: 2,
|
||||
}}
|
||||
>
|
||||
<Link
|
||||
href={s.url}
|
||||
target={s.external ? "_blank" : undefined}
|
||||
rel="noopener"
|
||||
underline="none"
|
||||
sx={{fontSize: 18, fontWeight: "bold", color: "success.main"}}
|
||||
>
|
||||
{s.name}
|
||||
</Link>
|
||||
<Typography variant="body2" sx={{mt: 1, color: "#ccc"}}>
|
||||
{s.desc}
|
||||
</Typography>
|
||||
</Paper>
|
||||
))}
|
||||
</Grid>
|
||||
|
||||
<Typography
|
||||
variant="h5"
|
||||
align="center"
|
||||
sx={{color: "warning.main", mt: 4, mb: 2}}
|
||||
>
|
||||
Media Services
|
||||
</Typography>
|
||||
<Grid container spacing={3} justifyContent="center">
|
||||
{services.media.map((s) => (
|
||||
<Paper
|
||||
elevation={3}
|
||||
sx={{
|
||||
p: 2,
|
||||
textAlign: "center",
|
||||
bgcolor: "#2d2d2d",
|
||||
borderRadius: 2,
|
||||
}}
|
||||
>
|
||||
<Link
|
||||
href={s.url}
|
||||
target={s.external ? "_blank" : undefined}
|
||||
rel="noopener"
|
||||
underline="none"
|
||||
sx={{fontSize: 18, fontWeight: "bold", color: "success.main"}}
|
||||
>
|
||||
{s.name}
|
||||
</Link>
|
||||
<Typography variant="body2" sx={{mt: 1, color: "#ccc"}}>
|
||||
{s.desc}
|
||||
</Typography>
|
||||
</Paper>
|
||||
))}
|
||||
</Grid>
|
||||
</Container>
|
||||
</Box>
|
||||
</Box>
|
||||
</Container>
|
||||
|
||||
);
|
||||
<Link
|
||||
href={s.url}
|
||||
target={s.external ? "_blank" : undefined}
|
||||
rel="noopener"
|
||||
underline="none"
|
||||
sx={{ fontSize: 18, fontWeight: "bold", color: "success.main" }}
|
||||
>
|
||||
{s.name}
|
||||
</Link>
|
||||
<Typography variant="body2" sx={{ mt: 1, color: "#ccc" }}>
|
||||
{s.desc}
|
||||
</Typography>
|
||||
</Paper>
|
||||
))}
|
||||
</Grid>
|
||||
</React.Fragment>
|
||||
))}
|
||||
</Container>
|
||||
</Box>
|
||||
</Box>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user