Skip to content

Commit

Permalink
feat: add archived banner
Browse files Browse the repository at this point in the history
  • Loading branch information
alldayalone committed Aug 24, 2023
1 parent 8cdc89d commit b6de070
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ body,
max-width: 100vw;
display: flex;
flex: 1;
flex-direction: column;
background-color: $black-one;
}

Expand Down
14 changes: 9 additions & 5 deletions src/components/Layout/Page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ import styles from './styles.module.scss';

export function Page({ footer = false }: { footer?: boolean }) {
return (
<div className={styles.pageContainer}>
<Header />
<Outlet />
{footer && <Footer />}
</div>
<>
<div className={styles.warningBanner}>The project is archived and offered as is. Use at your own risk.</div>
<div className={styles.pageContainer}>

<Header />
<Outlet />
{footer && <Footer />}
</div>
</>
);
}
6 changes: 6 additions & 0 deletions src/components/Layout/Page/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@
padding-inline: calc(50vw - 710px);
}
}

.warningBanner {
background-color: #8d4466cc;
text-align: center;
padding: 16px 20px;
}

0 comments on commit b6de070

Please sign in to comment.