Skip to content

Commit

Permalink
Add a vignette effect and remove link backgrounds
Browse files Browse the repository at this point in the history
- Links now fade in smoother (opacity jump fixed)
- Links don’t have a background, instead, the main image now has a
vignette using box-shadow
  • Loading branch information
sanjaypojo committed May 2, 2016
1 parent 615018d commit 6b3513e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ var Background = React.createClass({
display: "flex",
alignItems: "center",
justifyContent: "center",
boxShadow: "inset 0px 0px 85px rgba(0,0,0,.5)"
}
};
return (
Expand Down
1 change: 1 addition & 0 deletions app/background.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ var Background = React.createClass({
display: "flex",
alignItems: "center",
justifyContent: "center",
boxShadow: "inset 0px 0px 85px rgba(0,0,0,.5)"
}
};
return (
Expand Down
4 changes: 1 addition & 3 deletions app/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ var Link = React.createClass({
render: function() {
var style = {
textDecoration: "none",
color: "#ccc",
opacity: "0.8",
color: "rgba(200,200,200,0.8)",
padding: "5px",
backgroundImage: "radial-gradient(closest-side at 50% 50% , rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%)",
WebkitAnimation: "fadein 1s"
}
return (
Expand Down
4 changes: 1 addition & 3 deletions app/link.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ var Link = React.createClass({
render: function() {
var style = {
textDecoration: "none",
color: "#ccc",
opacity: "0.8",
color: "rgba(200,200,200,0.8)",
padding: "5px",
backgroundImage: "radial-gradient(closest-side at 50% 50% , rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%)",
WebkitAnimation: "fadein 1s"
}
return (
Expand Down

0 comments on commit 6b3513e

Please sign in to comment.