-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Theming and add basic Component lib #37
base: main
Are you sure you want to change the base?
Conversation
11f6a67
to
9f68490
Compare
export function HomeButton() { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<Button onClick={() => navigate("/")}> | ||
<FaHome /> | ||
</Button> | ||
); | ||
} |
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.
Why remove the home button?
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.
I am currently experimenting with the Navbar and couldn't find space for it (It also didn't fit the theme). I will put it back sometime later.
function ResetMapViewButton() { | ||
const map = useMap(); | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<div className="leaflet-top leaflet-center"> | ||
<div className="leaflet-control leaflet-bar"> | ||
<Button onClick={() => map.setView(CENTER, DEFAULT_ZOOM)}> | ||
{t("ResetMapView")} | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
} |
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.
Why? I find it pretty useful.
Will add modify the navbar in another PR
Closes #30, #32
Theming
Component lib (
lila
)(Color picker)