Updates
This commit is contained in:
parent
9da90ca153
commit
ba50d886b6
@ -27,6 +27,7 @@ export default function AdminHero({ title, ctas, description }: Props) {
|
|||||||
<Breadcrumbs
|
<Breadcrumbs
|
||||||
pageUrl={pageProps.pageUrl || undefined}
|
pageUrl={pageProps.pageUrl || undefined}
|
||||||
skipHome
|
skipHome
|
||||||
|
backButton
|
||||||
/>
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
<Row>{ctas}</Row>
|
<Row>{ctas}</Row>
|
||||||
|
|||||||
34
src/components/pages/admin/services/(partials)/service.tsx
Normal file
34
src/components/pages/admin/services/(partials)/service.tsx
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
import { AppContext } from "@/src/pages/_app";
|
||||||
|
import { ParsedDeploymentServiceConfig } from "@/src/types";
|
||||||
|
import ArrowedLink from "@/twui/components/layout/ArrowedLink";
|
||||||
|
import H2 from "@/twui/components/layout/H2";
|
||||||
|
import Row from "@/twui/components/layout/Row";
|
||||||
|
import Stack from "@/twui/components/layout/Stack";
|
||||||
|
import { useContext } from "react";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
service: ParsedDeploymentServiceConfig;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function DeploymentService({ service }: Props) {
|
||||||
|
const { pageProps } = useContext(AppContext);
|
||||||
|
const { deployment } = pageProps;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Stack className="grid-cell">
|
||||||
|
<Stack className="grid-cell-content">
|
||||||
|
<Row className="w-full justify-between">
|
||||||
|
<H2>{service.service_name}</H2>
|
||||||
|
<ArrowedLink
|
||||||
|
link={{
|
||||||
|
url: `/admin/services/${service.service_name}`,
|
||||||
|
title: `View`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
<code>{service.service_name}</code>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
|
);
|
||||||
|
}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
import { AppContext } from "@/src/pages/_app";
|
import { AppContext } from "@/src/pages/_app";
|
||||||
import Row from "@/twui/components/layout/Row";
|
|
||||||
import Stack from "@/twui/components/layout/Stack";
|
import Stack from "@/twui/components/layout/Stack";
|
||||||
import { useContext } from "react";
|
import { useContext } from "react";
|
||||||
|
import DeploymentService from "../(partials)/service";
|
||||||
|
|
||||||
export default function DeploymentServices() {
|
export default function DeploymentServices() {
|
||||||
const { pageProps } = useContext(AppContext);
|
const { pageProps } = useContext(AppContext);
|
||||||
@ -10,12 +10,10 @@ export default function DeploymentServices() {
|
|||||||
const services = deployment?.services;
|
const services = deployment?.services;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack className="w-full grid-cell col-span-1">
|
<Stack className="w-full nested-grid-frame xl:grid-cols-2">
|
||||||
<Row className="grid-cell-content">
|
{services?.map((service, index) => {
|
||||||
{services?.map((service, index) => {
|
return <DeploymentService key={index} service={service} />;
|
||||||
return <code key={index}>{service.service_name}</code>;
|
})}
|
||||||
})}
|
|
||||||
</Row>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,6 +33,7 @@
|
|||||||
@apply bg-background-light dark:bg-background-dark;
|
@apply bg-background-light dark:bg-background-dark;
|
||||||
/* @apply bg-foreground-light/10 dark:bg-foreground-dark/10; */
|
/* @apply bg-foreground-light/10 dark:bg-foreground-dark/10; */
|
||||||
@apply grid p-0! h-full relative;
|
@apply grid p-0! h-full relative;
|
||||||
|
@apply gap-px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nested-grid-frame::after {
|
.nested-grid-frame::after {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user