Skip to content
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
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" />-->
<link rel="icon" type="image/png" href="/so-tileviewer.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simons Observatory Map Viewer</title>
</head>
Expand Down
Binary file added public/so-tileviewer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/ColorMapSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export function ColorMapSlider(props: ColorMapSlideProps) {
<>
{cmapImage && (
<img
className="histo-img"
src={cmapImage}
style={{
width: `${cmapWidth}%`,
Expand Down
7 changes: 4 additions & 3 deletions src/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ export function Login({

if (isAuthenticated === null) return null;

const linkText = isAuthenticated ? 'Log out' : 'Log in';
const linkText = isAuthenticated ? 'Log Out' : 'Log In';
const href = isAuthenticated ? LOGOUT_URL : LOGIN_URL;

return (
<div className="login-container">
<button className="map-btn login-btn">
<a href={href}>{linkText}</a>
</div>
<img className="login-icon" src="/so-tileviewer.png" />
</button>
);
}
2 changes: 1 addition & 1 deletion src/components/styles/color-map-controls.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ select {
display: none;
}

img {
.histo-img {
position: absolute;
height: 60px;
bottom: 30px;
Expand Down
19 changes: 14 additions & 5 deletions src/components/styles/login.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
.login-container {
.login-btn {
position: absolute;
right: 11px;
top: 50px;
top: 9px;
right: 55px;
z-index: 999;
column-gap: 0.25em;
padding: 2px 5px !important;
}

.login-container > a,
.login-container > a:visited {
.login-btn > a,
.login-btn > a:visited {
text-decoration: none;
font-size: 0.9em;
color: black;
}

.login-btn > img {
height: 1.25em;
width: 1.25em;
}