Skip to content

Commit

Permalink
Always show the project background
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-c committed Jun 24, 2016
1 parent ce41c46 commit 7bac232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions app/pages/project/index.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,11 @@ ProjectPage = React.createClass

logClick = @context?.geordi?.makeHandler? 'project-menu'

if @state.background?
backgroundStyle = backgroundImage: "url('#{@state.background.src}')"

<div className="project-page">
{if @state.background?
<div className="project-background" style={backgroundImage: "url('#{@state.background.src}')"}></div>}
<div className="project-background" style={backgroundStyle}></div>

<nav className="project-nav tabbed-content-tabs">
{if @props.project.redirect
Expand Down
3 changes: 0 additions & 3 deletions css/project-page.styl
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@
top: 0
z-index: -1

&:not([style*="background-image"])
background-stripes: rgba(black, 0) rgba(white, 0.1) 10%

&::after
background: radial-gradient(rgba(black, 0.2), rgba(black, 0.8))
content: ""
Expand Down

0 comments on commit 7bac232

Please sign in to comment.