Skip to content

Commit

Permalink
Update: Add advertisement
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayao0819 committed Nov 2, 2023
1 parent 888c78d commit f1fd9a6
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions src/popup/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "@/styles/gaming.scss";

import { DetailedHTMLProps } from "react";
import { Collapse } from "react-daisyui";

type HeaderProps = DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;

Expand All @@ -11,10 +12,24 @@ export default function Header(props: HeaderProps) {
<p className="rainbow-text text-2xl">Gaming Gunma University</p>
</div>

<div className="my-4">
<p>荒牧祭で「長谷川とら」で出店します。</p>
<p>「ゲーミング群馬大学入れました」で割引します。</p>
</div>
<Advertisement />
</header>
);
}

function Advertisement() {
return (
<>
<Collapse checkbox icon="arrow" className="my-5 bg-neutral-focus">
<Collapse.Title className="flex text-lg">
<span className="rainbow-text font-serif italic">NEW</span>
<span className="grow text-center">荒牧祭について</span>
</Collapse.Title>
<Collapse.Content>
<p>荒牧祭で「長谷川とら」で出店します。</p>
<p>「ゲーミング群馬大学入れました」で割引します。</p>
</Collapse.Content>
</Collapse>
</>
);
}

0 comments on commit f1fd9a6

Please sign in to comment.