Add notes section to 1.2.0 update

This commit is contained in:
Justin Edmund 2023-08-23 17:51:33 -07:00
parent 4efe489153
commit 7b50278cbb
2 changed files with 16 additions and 0 deletions

View file

@ -3,6 +3,8 @@ import { useTranslation } from 'next-i18next'
import classNames from 'classnames' import classNames from 'classnames'
import ContentUpdate from '~components/about/ContentUpdate' import ContentUpdate from '~components/about/ContentUpdate'
import LinkItem from '../LinkItem'
import DiscordIcon from '~public/icons/discord.svg'
import styles from './index.module.scss' import styles from './index.module.scss'
@ -79,6 +81,19 @@ const UpdatesPage = () => {
<div className={styles.contents}> <div className={styles.contents}>
<section> <section>
<h2>{updates('labels.features')}</h2> <h2>{updates('labels.features')}</h2>
<div className={styles.foreword}>
{updates('versions.1.2.0.notes')
.split('\n')
.map((item) => (
<p>{item}</p>
))}
<LinkItem
className="discord constrained update"
title="granblue-tools"
link="https://discord.gg/qyZ5hGdPC8"
icon={<DiscordIcon />}
/>
</div>
<ul className={styles.features}> <ul className={styles.features}>
{[...Array(versionUpdates['1.2.0'].updates)].map((e, i) => ( {[...Array(versionUpdates['1.2.0'].updates)].map((e, i) => (
<li key={`1.2.0-update-${i}`}> <li key={`1.2.0-update-${i}`}>

View file

@ -20,6 +20,7 @@
}, },
"versions": { "versions": {
"1.2.0": { "1.2.0": {
"notes": "I'm very bad at writing actual release notes, so this is a consolidation of the bigger features released in the last six months. Don't worry: there's some new stuff here too!\nThe next features (in no particular order) will be: private teams, a way to define roles and substitutions for characters, a collection tracker and hopefully making progress on guides. That's a lot, but I'll chip away at it bit by bit.\nAs always, if you have any feedback, feel free to reach out in the granblue-tools Discord. Thanks for using granblue.team!",
"features": [ "features": [
{ {
"title": "New party navigation", "title": "New party navigation",