Show what's new on launcher
This commit is contained in:
parent
2ad785f65d
commit
56b2331968
4 changed files with 160 additions and 60 deletions
|
|
@ -3,6 +3,7 @@ import {
|
|||
buildWorldshaperStudioUrl,
|
||||
openWorldshaperStudioWindow,
|
||||
} from "./worldshaperStudio/windowing";
|
||||
import { CHANGELOG_SECTIONS, CHANGELOG_SPLASH_VERSION } from "./worldshaperStudio/changelogData";
|
||||
|
||||
type WorldDefaultPayload = {
|
||||
worldId?: string;
|
||||
|
|
@ -224,6 +225,33 @@ function WorldshaperLauncher() {
|
|||
</button>
|
||||
</div>
|
||||
) : null}
|
||||
<section className="launcher-whats-new">
|
||||
<div className="launcher-whats-new-head">
|
||||
<h2 className="launcher-whats-new-title">What's New</h2>
|
||||
<p className="launcher-whats-new-version">{CHANGELOG_SPLASH_VERSION}</p>
|
||||
</div>
|
||||
<div className="launcher-whats-new-list">
|
||||
{CHANGELOG_SECTIONS.map((section) => (
|
||||
<section key={section.title} className="launcher-whats-new-section">
|
||||
<h3 className="launcher-whats-new-section-title">{section.title}</h3>
|
||||
<ul className="launcher-whats-new-bullets">
|
||||
{section.items.map((item, index) => {
|
||||
const key = `${section.title}-${index}`;
|
||||
if (typeof item === "string") {
|
||||
return <li key={key}>{item}</li>;
|
||||
}
|
||||
return (
|
||||
<li key={key}>
|
||||
<div>{item.text}</div>
|
||||
{item.note ? <div className="launcher-whats-new-note">{item.note}</div> : null}
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
</section>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue