Skip to content

Commit

Permalink
milestone1 public
Browse files Browse the repository at this point in the history
  • Loading branch information
NingetsuSama committed May 18, 2024
1 parent e8bca35 commit 1ffa67e
Show file tree
Hide file tree
Showing 43 changed files with 14 additions and 9 deletions.
Binary file added public/graphs/brain/daly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/brain/hbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/brain/time_series.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/brain/vbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/breast/daly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/breast/hbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/breast/time_series.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/breast/vbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/colon/daly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/colon/hbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/colon/time_series.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/colon/vbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/kidney/daly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/kidney/hbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/kidney/time_series.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/kidney/vbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/liver/daly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/liver/hbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/liver/time_series.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/liver/vbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/ovarian/daly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/ovarian/hbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/ovarian/time_series.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/ovarian/vbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/pancreas/daly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/graphs/pancreas/hbar.png
Binary file added public/graphs/pancreas/time_series.png
Binary file added public/graphs/pancreas/vbar.png
Binary file added public/graphs/stomach/daly.png
Binary file added public/graphs/stomach/hbar.png
Binary file added public/graphs/stomach/time_series.png
Binary file added public/graphs/stomach/vbar.png
Binary file added public/graphs/thyroid/daly.png
Binary file added public/graphs/thyroid/hbar.png
Binary file added public/graphs/thyroid/time_series.png
Binary file added public/graphs/thyroid/vbar.png
Binary file added public/graphs/trachea/daly.png
Binary file added public/graphs/trachea/hbar.png
Binary file added public/graphs/trachea/time_series.png
Binary file added public/graphs/trachea/vbar.png
1 change: 0 additions & 1 deletion public/next.svg
Diff not rendered.
1 change: 0 additions & 1 deletion public/vercel.svg
Diff not rendered.
21 changes: 14 additions & 7 deletions src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ import { useEffect, useState } from "react";
function getCancers() {

const cancerList = [
{id: 1, type: "Breast"},
{id: 2, type: "Brain"},
{id: 1, type: "Brain"},
{id: 2, type: "Breast"},
{id: 3, type: "Colon"},
{id: 4, type: "Kidney"},
{id: 5, type: "Liver"},
{id: 6, type: "Ovarian"},
{id: 7, type: "Pancreas"},
{id: 8, type: "Stomach"},
{id: 9, type: "Trachea"},
{id: 10, type: "Thyroid"},
];

return cancerList;
Expand All @@ -24,23 +32,22 @@ function Listing({ cancers, active, setActive }) {
);
}


function Carousel({ currentCancer }) {

return (
<div id="carouselGraphs" className="carousel carousel-fade slide">
<div className="carousel-inner">
<div className="carousel-item ">
<img src={"http://localhost:8000/media/" + (currentCancer.type).toLowerCase() + "/daly.png"} className="d-block w-100" />
<img src={"/graphs/" + (currentCancer.type).toLowerCase() + "/daly.png"} className="d-block w-100" />
</div>
<div className="carousel-item active">
<img src={"http://localhost:8000/media/" + (currentCancer.type).toLowerCase() + "/hbar.png"} className="d-block w-100" />
<img src={"/graphs/" + (currentCancer.type).toLowerCase() + "/hbar.png"} className="d-block w-100" />
</div>
<div className="carousel-item active">
<img src={"http://localhost:8000/media/" + (currentCancer.type).toLowerCase() + "/time_series.png"} className="d-block w-100" />
<img src={"/graphs/" + (currentCancer.type).toLowerCase() + "/time_series.png"} className="d-block w-100" />
</div>
<div className="carousel-item active">
<img src={"http://localhost:8000/media/" + (currentCancer.type).toLowerCase() + "/vbar.png"} className="d-block w-100" />
<img src={"/graphs/" + (currentCancer.type).toLowerCase() + "/vbar.png"} className="d-block w-100" />
</div>
</div>
<button className="carousel-control-prev" type="button" data-bs-target="#carouselGraphs" data-bs-slide="prev">
Expand Down

0 comments on commit 1ffa67e

Please sign in to comment.