-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from berlin/staging
Feat : info banner for meetup
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { FC, useState } from 'react' | ||
import { Button } from '@components/Button' | ||
import { Cross } from '@components/Icons' | ||
|
||
export const Banner: FC = () => { | ||
const [showBanner, setShowBanner] = useState(true) | ||
|
||
return showBanner ? ( | ||
<div className="bg-blue text-white"> | ||
<button | ||
onClick={() => setShowBanner(false)} | ||
className="p-2 font-medium text-brand cursor-pointer absolute right-0" | ||
> | ||
<Cross color1={'white'} /> | ||
</button> | ||
<div className="px-4 sm:px-0 container m-auto py-6 flex gap-4 items-end flex-wrap sm:flex-nowrap"> | ||
<p className="grow"> | ||
<b>Liebe Developer, </b> | ||
am 23.11.22 um 19 Uhr findet im CityLAB Berlin das nächste Developer | ||
Meetup statt. | ||
<br /> | ||
Du bist herzlich willkommen, uns über die Schulter zu schauen und | ||
selbst aktiv mitzumachen. Wir freuen uns auf euch! | ||
</p> | ||
<span className="shrink-0 self-center"> | ||
<Button | ||
href={'https://citylab-berlin.org/de/events/developer-meetup-3/'} | ||
> | ||
Mehr Erfahren | ||
</Button> | ||
</span> | ||
</div> | ||
</div> | ||
) : null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ const colors = Object.assign( | |
'900': '#111827', | ||
}, | ||
brand: '#c41b31', | ||
blue: '#324FA3', | ||
}, | ||
palette | ||
) | ||
|
d166a2b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
haushaltsdaten – ./
haushaltsdaten-technologiestiftung1.vercel.app
haushaltsdaten.vercel.app
haushaltsdaten.odis-berlin.de
haushaltsdaten-git-main-technologiestiftung1.vercel.app