Skip to content

Commit

Permalink
Add XP boost icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jagodarybacka committed Dec 7, 2023
1 parent ddaa492 commit da07b6c
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 7 deletions.
61 changes: 61 additions & 0 deletions src/shared/assets/icons/xp-boost.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 18 additions & 7 deletions src/shared/components/RealmPanel/RealmPanelCountdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
useDappSelector,
} from "redux-state"
import { getNextSelectedWeekDay, getTimeRemaining } from "shared/utils"
import xpBoostIcon from "shared/assets/icons/xp-boost.svg"
import Icon from "../Icon"

export default function RealmPanelCountdown() {
const seasonWeek = useDappSelector(selectSeasonWeek)
Expand All @@ -19,14 +21,23 @@ export default function RealmPanelCountdown() {

return (
<>
<div className="countdown">
<div className="week">
Week {seasonWeek}{" "}
<span style={{ fontSize: 16, color: "var(--secondary-s1-50)" }}>
/ {seasonDuration}
</span>
<div className="countdown row">
<Icon
type="image"
src={xpBoostIcon}
width="125px"
height="64px"
style={{ marginTop: "10px" }}
/>
<div className="column">
<div className="week">
Week {seasonWeek}{" "}
<span style={{ fontSize: 16, color: "var(--secondary-s1-50)" }}>
/ {seasonDuration}
</span>
</div>
<div className="time_remaining">{timeRemaining}</div>
</div>
<div className="time_remaining">{timeRemaining}</div>
</div>
<style jsx>{`
.countdown {
Expand Down

0 comments on commit da07b6c

Please sign in to comment.