Skip to content

Commit

Permalink
feat(homepage-legacy): deprecation banner
Browse files Browse the repository at this point in the history
  • Loading branch information
serjilyashenko committed Oct 26, 2024
1 parent 0a6a8bd commit 156b3b0
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/homepage-legacy/public/bicycle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions apps/homepage-legacy/public/detour-arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions apps/homepage-legacy/public/walk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions apps/homepage-legacy/src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { simplePie, simpleDoughnut } from "simple-pie";
import { SimplePie, SimpleDoughnut } from "react-simple-pie";
import { NetworkUseCase } from "./NetworkUseCase.tsx";
import { DeprecationBanner } from "./DeprecationBanner.tsx";
import "./App.css";

function getRandomPieDataUri() {
Expand All @@ -19,6 +20,7 @@ function getRandomPieDataUri() {
export function App(): JSX.Element {
return (
<main className="app">
<DeprecationBanner />
<article>
<h2 className="title">
Network Graph Demo
Expand Down
41 changes: 41 additions & 0 deletions apps/homepage-legacy/src/components/DeprecationBanner.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.banner__wrapper {
display: flex;
justify-content: center;
}

.banner {
background-color: #E36F2C;
border-radius: 28px;
font-size: 28px;
padding: 8px;
position: relative;
margin-bottom: 20px;
}

.banner h3 {
margin: 0;
}

.banner a {
white-space: nowrap;
}

.banner a:after {
position: absolute;
content: '';
inset: 0;
}

.banner__inner {
border-radius: 24px;
border: 8px solid black;
padding: 8px 16px 16px;
text-align: center;
}

.icon_container {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
}
36 changes: 36 additions & 0 deletions apps/homepage-legacy/src/components/DeprecationBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import style from "./DeprecationBanner.module.css";

export function DeprecationBanner() {
return (
<div className={style.banner__wrapper}>
<section className={style.banner}>
<div className={style.banner__inner}>
<div className={style.icon_container}>
<img alt="bicycle" src="/bicycle.svg" height="80px" width="80px" />
<img
alt="walking person"
src="/walk.svg"
height="60px"
width="60px"
/>
</div>
<h3>DETOUR</h3>
<div>
<img
alt="detour-arrow"
src="/detour-arrow.svg"
height="40px"
width="40px"
/>
</div>
The site is deprecated. Please visit our new site at
<div>
<a href="https://simple-pie.netlify.app">
https://simple-pie.netlify.app
</a>
</div>
</div>
</section>
</div>
);
}

0 comments on commit 156b3b0

Please sign in to comment.