Skip to content

Commit a265f77

Browse files
committed
color code added on tiles
1 parent 8d40f8a commit a265f77

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/components/gradients/gradients.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@
5757
margin: 10px;
5858
}
5959

60+
.hexCodes {
61+
color: white;
62+
font-size: .88em;
63+
position: absolute;
64+
top: 50%;
65+
transform: translateY(-50%);
66+
margin: 0 auto;
67+
width: 100%;
68+
}
69+
6070
@keyframes animate {
6171
0% {
6272
background-position: 0%;

src/components/gradients/gradients.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ export default class Gradients extends React.Component {
6464
<span>&#10005;</span>
6565
</Button>
6666
}
67+
<div className="hexCodes">
68+
<span>#{hexGenerator(value.color1).HEX} &#8658; #{hexGenerator(value.color2).HEX}</span>
69+
</div>
6770
<Button variant="info" className="modify-gradient">
6871
<Link to={{ pathname: '/modify', state: { color1: value.color1, color2: value.color2 } }} className="modify-link">
6972
View / Modify

0 commit comments

Comments
 (0)