diff --git a/src/App.scss b/src/App.scss index 4224b62..3a34a61 100644 --- a/src/App.scss +++ b/src/App.scss @@ -26,6 +26,7 @@ a { .yellow { color: $color-yellow; } .green { color: $quality-2; } +.subtle { color: $quality-0; } .tight { margin-bottom: 0; @@ -35,6 +36,8 @@ a { } } + + .App { min-height: 100vh; } @@ -46,7 +49,7 @@ main { } .container { - max-width: 900px; + max-width: 1000px; margin: 0 auto; padding: 0 1em; } diff --git a/src/components/Calculator.scss b/src/components/Calculator.scss index cd34d52..e913853 100644 --- a/src/components/Calculator.scss +++ b/src/components/Calculator.scss @@ -1,7 +1,14 @@ .calculator { &__points { + padding: 1em; color: white; - text-align: center; + text-align: right; + border-radius: 5px; + background: #222; + + span { + margin-left: 2em; + } } } diff --git a/src/components/Calculator.tsx b/src/components/Calculator.tsx index 93423f0..11b80a4 100644 --- a/src/components/Calculator.tsx +++ b/src/components/Calculator.tsx @@ -55,7 +55,10 @@ export class Calculator extends React.PureComponent {
- Points: {availablePoints} + {availablePoints < 51 && + Required level: {60 - availablePoints} + } + Talent points: {availablePoints}

Quick links

diff --git a/src/components/TalentTree.scss b/src/components/TalentTree.scss index 26e4e25..9167531 100644 --- a/src/components/TalentTree.scss +++ b/src/components/TalentTree.scss @@ -3,6 +3,7 @@ .trees { display: flex; justify-content: center; + margin-bottom: 1em; } .tree { @@ -10,7 +11,6 @@ min-width: 300px; color: white; margin-right: 1em; - background-color: #111; .talent { position: absolute; @@ -48,14 +48,23 @@ top: 1em; right: .5em; cursor: pointer; - color: lighten(red, 20%) + color: lighten(red, 20%); + animation: fadeIn .2s ease-in-out; + transform: scale(1); + + &:hover { + color: lighten(red, 30%); + transform: scale(1.1); + } } &__body { position: relative; height: 520px; border: 1px solid black; + background-color: #222; background-size: cover; background-position: center; + border-radius: 5px; } } \ No newline at end of file diff --git a/src/components/TalentTree.tsx b/src/components/TalentTree.tsx index e8020ae..42af1aa 100644 --- a/src/components/TalentTree.tsx +++ b/src/components/TalentTree.tsx @@ -7,6 +7,7 @@ import { talentsBySpec, specNames, talentsById } from '../data/talents' import { Arrow } from './Arrow' import { resetSpec } from '../store/calculator/actions' import { connect } from 'react-redux'; +import { Controller, Tooltip, Trigger } from './Tooltip' interface Props { specId: number @@ -38,7 +39,12 @@ export const TalentTree: React.FC = ({ specId, knownTalents, availablePoi

{specNames[specId]} ({pointsInSpec})

{pointsInSpec > 0 && -
x
+ + +
x
+
+ Reset spec +
}