Skip to content

Commit

Permalink
correction bug image
Browse files Browse the repository at this point in the history
  • Loading branch information
NingetsuSama committed May 31, 2024
1 parent 3bd5950 commit a7ac047
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.homepage-container {
width: 100vw;
height: 100vh;
background-image: url('/background.png');
background-image: url('/TogetherAgainstCancer/background.png');
background-color: #dac4bd;
background-size: cover;
background-position: center;
Expand Down
4 changes: 3 additions & 1 deletion src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export default function Page() {
// The current cancer that is displayed
const [currentCancer, setCurrentCancer] = useState(null);

const isProd = process.env.NODE_ENV === 'production';

return (
<>
<div className="homepage-container" >
Expand All @@ -79,7 +81,7 @@ export default function Page() {
</div>
<h1 className="page-title">Static Visualizations</h1>
<div className="staticpage-container" >
<img className="staticpage-img" src="/wordcloud.png" alt="" height="500" width="900" />
<img className="staticpage-img" src={(isProd ? "/TogetherAgainstCancer" : "") + "/wordcloud.png"} alt="" height="500" width="900" />
<div className="container-sm" width="5">
<p className="staticpage-text" style={{fontFamily: "Cinzel Decorative"}}>This wordcloud gives an insight on the proportion of each type of cancer. The bigger the name of the cancer, the most frequent it is. We highly recommand (as none experts) a cancer screening for the most frequent cancers as it can sometimes be too late when it is detected without the screening.</p>
</div>
Expand Down

0 comments on commit a7ac047

Please sign in to comment.