Skip to content
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

Add github and docs links to Explorer nav #180

Merged
merged 4 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions site/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
.DS_Store

# Editor directories and files
.vscode/*
Expand Down
4 changes: 4 additions & 0 deletions site/src/CustomControls.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
color: black;
margin: 4px;
outline: none;

.title {
padding: 2px 0;
}
}

div.bug-nub {
Expand Down
2 changes: 1 addition & 1 deletion site/src/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import PropTypes from "prop-types";
import "./CustomControls.css";
import ThemeSelector from "./ThemeSelector";
import BugIcon from "./icons/icon-bug.svg?react";
import Navigator from "./Navigator";
import Navigator from "./navigator/Navigator";
import { layers } from "./Layers";
import ThemeTypeLayer from "./ThemeTypeLayer";

Expand Down
226 changes: 0 additions & 226 deletions site/src/Navigator.jsx

This file was deleted.

19 changes: 15 additions & 4 deletions site/src/StartupBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ div.startup-box-light {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 450px;
height: 200px;
width: 80%;
max-width: 450px;
background: white;
border-radius: 15px;
}
Expand All @@ -15,7 +15,6 @@ div.startup-box-dark {
left: 50%;
transform: translate(-50%, -50%);
width: 450px;
height: 200px;
background: black;
border-radius: 15px;
color: whitesmoke;
Expand Down Expand Up @@ -49,6 +48,12 @@ button.skip:hover {
background: var(--ifm-color-info-darkest);
}

.tool-intro {
margin-left: 20px;
margin-top: 20px;
margin-right: 20px;
}

p.tour-intro {
margin-left: 20px;
margin-top: 20px;
Expand All @@ -57,7 +62,8 @@ p.tour-intro {
}

div.perma-skip {
margin-top: 20px;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 20px;
}

Expand All @@ -68,3 +74,8 @@ p.dark-startup {
p.light-startup {
color: #213547;
}

.tour-buttons {
display: flex;
justify-content: center;
}
24 changes: 17 additions & 7 deletions site/src/StartupBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,29 @@ function StartupBox({
}`}
>
<Box>
<p
className={`tool-intro ${
mode === "theme-dark" ? "dark-startup" : "light-startup"
}`}
>
<strong>Overture Maps Explorer</strong> is a tool for inspecting
and downloading Overture data.
</p>
<p
className={`tour-intro ${
mode === "theme-dark" ? "dark-startup" : "light-startup"
}`}
>
First time here? Take the tour to get familiar with our features!
New here? Take the tour to get started!
</p>
<button className="button start" onClick={startTour}>
Begin
</button>
<button className="button skip" onClick={handleSkip}>
Skip
</button>
<div className="tour-buttons">
<button className="button start" onClick={startTour}>
Begin
</button>
<button className="button skip" onClick={handleSkip}>
Skip
</button>
</div>
<div className="perma-skip">
<FormControlLabel
control={
Expand Down
1 change: 1 addition & 0 deletions site/src/inspector_panel/InspectorPanel.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.inspector-panel {
width: 90%;
max-width: 370px;
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion site/src/inspector_panel/InspectorPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function InspectorPanel({
return (
<div className="inspector-panel">
<div className="panel-header">
<h4>Inspector Panel</h4>
<h4 className="title">Inspector Panel</h4>
<button className="close-panel-button" onClick={() => setEntity({})}>
<CloseIcon className="close-panel-icon" />
</button>
Expand Down
25 changes: 25 additions & 0 deletions site/src/nav/GithubButton.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.github-link {
width: 32px;
height: 32px;
padding: 6px !important; /* override default padding for infima links */
margin-right: 4px;
border-radius: 50%;
transition: background var(--ifm-transition-fast);
}

.github-link:hover {
background: var(--ifm-color-emphasis-200);
}

.github-link:before {
content: "";
height: 100%;
display: block;
background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjMWMxZTIxIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04IDBDMy41OCAwIDAgMy41OCAwIDhjMCAzLjU0IDIuMjkgNi41MyA1LjQ3IDcuNTkuNC4wNy41NS0uMTcuNTUtLjM4IDAtLjE5LS4wMS0uODItLjAxLTEuNDktMi4wMS4zNy0yLjUzLS40OS0yLjY5LS45NC0uMDktLjIzLS40OC0uOTQtLjgyLTEuMTMtLjI4LS4xNS0uNjgtLjUyLS4wMS0uNTMuNjMtLjAxIDEuMDguNTggMS4yMy44Mi43MiAxLjIxIDEuODcuODcgMi4zMy42Ni4wNy0uNTIuMjgtLjg3LjUxLTEuMDctMS43OC0uMi0zLjY0LS44OS0zLjY0LTMuOTUgMC0uODcuMzEtMS41OS44Mi0yLjE1LS4wOC0uMi0uMzYtMS4wMi4wOC0yLjEyIDAgMCAuNjctLjIxIDIuMi44Mi42NC0uMTggMS4zMi0uMjcgMi0uMjcuNjggMCAxLjM2LjA5IDIgLjI3IDEuNTMtMS4wNCAyLjItLjgyIDIuMi0uODIuNDQgMS4xLjE2IDEuOTIuMDggMi4xMi41MS41Ni44MiAxLjI3LjgyIDIuMTUgMCAzLjA3LTEuODcgMy43NS0zLjY1IDMuOTUuMjkuMjUuNTQuNzMuNTQgMS40OCAwIDEuMDctLjAxIDEuOTMtLjAxIDIuMiAwIC4yMS4xNS40Ni41NS4zOEE4LjAxMyA4LjAxMyAwIDAwMTYgOGMwLTQuNDItMy41OC04LTgtOHoiLz48L3N2Zz4=")
0 0 / contain;
}

[data-theme="dark"] .github-link:before {
background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjZTNlM2UzIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04IDBDMy41OCAwIDAgMy41OCAwIDhjMCAzLjU0IDIuMjkgNi41MyA1LjQ3IDcuNTkuNC4wNy41NS0uMTcuNTUtLjM4IDAtLjE5LS4wMS0uODItLjAxLTEuNDktMi4wMS4zNy0yLjUzLS40OS0yLjY5LS45NC0uMDktLjIzLS40OC0uOTQtLjgyLTEuMTMtLjI4LS4xNS0uNjgtLjUyLS4wMS0uNTMuNjMtLjAxIDEuMDguNTggMS4yMy44Mi43MiAxLjIxIDEuODcuODcgMi4zMy42Ni4wNy0uNTIuMjgtLjg3LjUxLTEuMDctMS43OC0uMi0zLjY0LS44OS0zLjY0LTMuOTUgMC0uODcuMzEtMS41OS44Mi0yLjE1LS4wOC0uMi0uMzYtMS4wMi4wOC0yLjEyIDAgMCAuNjctLjIxIDIuMi44Mi42NC0uMTggMS4zMi0uMjcgMi0uMjcuNjggMCAxLjM2LjA5IDIgLjI3IDEuNTMtMS4wNCAyLjItLjgyIDIuMi0uODIuNDQgMS4xLjE2IDEuOTIuMDggMi4xMi41MS41Ni44MiAxLjI3LjgyIDIuMTUgMCAzLjA3LTEuODcgMy43NS0zLjY1IDMuOTUuMjkuMjUuNTQuNzMuNTQgMS40OCAwIDEuMDctLjAxIDEuOTMtLjAxIDIuMiAwIC4yMS4xNS40Ni41NS4zOEE4LjAxMyA4LjAxMyAwIDAwMTYgOGMwLTQuNDItMy41OC04LTgtOHoiLz48L3N2Zz4=")
0 0 / contain;
}
13 changes: 13 additions & 0 deletions site/src/nav/GithubButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import "./GithubButton.css";

export default function GithubButton() {
return (
<a
href="https://github.com/OvertureMaps/io-site"
target="_blank"
rel="noopener noreferrer"
className="navbar__item github-link"
aria-label="GitHub repository"
></a>
);
}
Loading
Loading