Skip to content

Commit

Permalink
fix: Improvements to the release notes formatting and navigation. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderson1993 committed Jan 4, 2023
1 parent f7a763e commit 7c7b059
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 11 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Credits.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
.all-credits {
animation: scroll-up var(--credits-duration, 3s) linear infinite;
}
.all-credits:hover {
/*.all-credits:hover {
animation-play-state: paused;
}
}*/

@keyframes scroll-up {
to {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Starmap/SystemMarker/SystemLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const SystemLabel: React.FC<{
const textTexture = React.useMemo(() => {
let texture = new TextTexture({
color,
fontFamily: 'Electrolize, "Gill Sans", sans-serif',
fontFamily: 'Electrolize, "Outfit", sans-serif',
fontSize: 128,
alignment: "right",
text: name,
Expand Down
1 change: 1 addition & 0 deletions client/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import ReactDOM from "react-dom/client";
import "./theme.css";
import App from "./App";
import {initializeTabId} from "@thorium/tab-id";
import "@fontsource/outfit";

initializeTabId();

Expand Down
11 changes: 8 additions & 3 deletions client/src/pages/Releases/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import {FaArrowLeft} from "react-icons/fa";
import {Link} from "react-router-dom";
// Uses a Vite plugin to load the actual data
import releaseNotes from "./release-notes.json";

const Releases = () => {
return (
<div className="overflow-y-auto h-full">
<div className="prose lg:prose-xl max-w-prose mx-auto mt-8 ">
<Link to="/">Go Back</Link>
<h1>Release Notes</h1>
<div className="prose lg:prose-base relative max-w-prose mx-auto mt-8 ">
<Link
to="/"
className="fixed block left-4 no-underline z-10 sm:bg-black/70 sm:py-1 sm:px-2 rounded-full sm:hover:bg-white/10"
>
<FaArrowLeft className="inline -mt-1" /> Go Back
</Link>
<div className="p-8 rounded-box md:mt-16 mb-16 backdrop-filter backdrop-blur backdrop-brightness-50 backdrop-contrast-125 prose-h1:text-xl">
<div dangerouslySetInnerHTML={{__html: releaseNotes.data}} />
</div>
Expand Down
4 changes: 2 additions & 2 deletions client/src/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ body {
}

body {
font-family: "Gill Sans", system-ui, -apple-system, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
.alert {
@apply relative flex items-center justify-between p-4 rounded-box bg-neutral text-neutral-content bg-opacity-50;
Expand Down
17 changes: 14 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
"access": "restricted"
},
"dependencies": {
"@fontsource/outfit": "^4.5.10",
"react": "^18.2.0"
}
}

0 comments on commit 7c7b059

Please sign in to comment.