Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/app/(main)/websites/WebsitesPage.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.page {
width: 100%;
min-height: 100%;
background: linear-gradient(165deg, #0a48bd 0%, #1470f0 50%, #56a8ff 100%);
}

/* Header sits directly on the blue background, so invert its colors */
.header [class*="Heading_heading"] {
color: #fff !important;
}

.header > * {
border-color: rgb(255 255 255 / 30%) !important;
}

.header [class*="Button_variant-primary"] {
color: #0a48bd !important;
background: #fff !important;
border-color: #fff !important;
}

.panel {
border-color: rgb(255 255 255 / 50%) !important;
box-shadow: 0 18px 40px rgb(6 40 105 / 25%);
}
25 changes: 15 additions & 10 deletions src/app/(main)/websites/WebsitesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,26 @@ import { Panel } from '@/components/common/Panel';
import { useMessages, useNavigation } from '@/components/hooks';
import { WebsiteAddButton } from './WebsiteAddButton';
import { WebsitesDataTable } from './WebsitesDataTable';
import styles from './WebsitesPage.module.css';

export function WebsitesPage() {
const { teamId } = useNavigation();
const { formatMessage, labels } = useMessages();

return (
<PageBody>
<Column gap="6" margin="2">
<PageHeader title={formatMessage(labels.websites)}>
<WebsiteAddButton teamId={teamId} />
</PageHeader>
<Panel>
<WebsitesDataTable teamId={teamId} />
</Panel>
</Column>
</PageBody>
<div className={styles.page}>
<PageBody>
<Column gap="6" margin="2">
<div className={styles.header}>
<PageHeader title={formatMessage(labels.websites)}>
<WebsiteAddButton teamId={teamId} />
</PageHeader>
</div>
<Panel className={styles.panel}>
<WebsitesDataTable teamId={teamId} />
</Panel>
</Column>
</PageBody>
</div>
);
}