Skip to content

Commit

Permalink
Add new announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
sho-87 committed Mar 14, 2020
1 parent 3185489 commit fbe223b
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 45 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rok-talents",
"title": "RoK Talents",
"version": "1.2.2",
"version": "1.3.0",
"dataVersion": 1,
"description": "Rise of Kingdoms talent builder",
"homepage": "https://roktalents.com",
Expand Down
Binary file added public/screenshots/artemisia_ramesses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/screenshots/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 28 additions & 43 deletions src/Announcement.js
Original file line number Diff line number Diff line change
@@ -1,76 +1,61 @@
import React from 'react';
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { bugs } from '../package.json';
import './styles/Announcement.css';

function Announcement() {
return (
<>
<h1>{`New release: v1.2.0`}</h1>
<h1>{`New release: v1.3.0`}</h1>

<h2>New Features</h2>
<div>
Thanks to a partnership with{' '}
<a href="https://rok.guide" target="_blank" rel="noopener noreferrer">
rok.guide
</a>
, each commander now has a guide. Clicking on the guide icon next to the
commander name now takes you to the guide for that commander:
</div>
<img
src={`${process.env.PUBLIC_URL}/screenshots/guide.png`}
className="announce-img"
alt="guide"
></img>

<hr className="announce-hr" />

<div>
You can now embed talent builds directly into other websites. If you run
your own website or blog, your talent build can be directly embedded
into your site using an iframe.
I have received many requests for this feature and it is finally here:
screenshots!
<br />
<br />
Click the Screenshot button in the top navigation bar to take a
screenshot of your current talent build. Whatever you see in the middle talent
tree window will be what gets saved.
<br />
The embedded talent build will be view-only (i.e. talent points cannot
be changed). You can find the embed code in the Share menu:
<br />
Don't settle for those blurry in-game screenshots anymore!
</div>
<img
src={`${process.env.PUBLIC_URL}/screenshots/embed.png`}
className="announce-img"
src={`${process.env.PUBLIC_URL}/screenshots/screenshot.png`}
className="announce-img announce-img-border"
alt="guide"
></img>

<hr className="announce-hr" />

<div>
You can now submit bug reports directly to{' '}
<a href={bugs.url} target="_blank" rel="noopener noreferrer">
GitHub
</a>
. Please file your bug reports and feature requests there - I'll monitor
the issues as often as I can!
<br />
<br />
You can find the Submit link on the Info page
{<FontAwesomeIcon icon={faInfoCircle} className="modal-icon" />}:
Two new legendary commanders have been added: Artemisia I and Ramesses
II. This includes full talent trees as well as commander guides.
</div>
<img
src={`${process.env.PUBLIC_URL}/screenshots/reportbug.png`}
src={`${process.env.PUBLIC_URL}/screenshots/artemisia_ramesses.png`}
className="announce-img"
alt="report bug"
alt="guide"
></img>

<h2>Other Changes</h2>
<ul>
<li>Added Cleopatra to the commander list</li>
<li>Added a share button for Weibo</li>
<li>Removed the commander background image from the info panel</li>
<li>
Created a new icon and logo for the website
</li>
<li>
Commander image sizes have been reduced, so the commander list should
load faster. Image quality has not been reduced.
</li>
</ul>

<h2>Bug Fixes</h2>
<ul>
<li>Fixed resolution of images and site logo</li>
<li>
Fixed a bug where new users would always see the announcement window.
</li>
<li>
Fixed some talent description typos.
</li>
</ul>
</>
);
Expand Down
8 changes: 7 additions & 1 deletion src/GuidedTour.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class GuidedTour extends Component {
disableBeacon: true
},
{
content: 'Check the number of points you have left to spend',
content: 'View guides for the selected commander and check the number of points you have left to spend',
target: '#summary-panel',
placement: 'auto'
},
Expand All @@ -38,6 +38,12 @@ class GuidedTour extends Component {
target: '#button-reset',
placement: 'auto'
},
{
content:
'Save a screenshot of your current talent build. No need to settle for those blurry in-game screenshots anymore!',
target: '#button-screenshot',
placement: 'auto'
},
{
content:
'Talent builds can be shared with a link. Click this to get your shareable link, or simply copy your current URL',
Expand Down
3 changes: 3 additions & 0 deletions src/styles/Announcement.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
margin-right: auto;
margin-top: 10px;
margin-bottom: 15px;
}

.announce-img-border {
border: 1px solid rgba(0, 0, 0, 1);
}

Expand Down

0 comments on commit fbe223b

Please sign in to comment.