Skip to content

Commit

Permalink
Merge pull request #47 from ScilifelabDataCentre/build_fix
Browse files Browse the repository at this point in the history
Commented out unused code
  • Loading branch information
SevLG authored May 21, 2024
2 parents 809baa6 + 260b885 commit 168e0c0
Showing 1 changed file with 46 additions and 43 deletions.
89 changes: 46 additions & 43 deletions pmp-frontend-app/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,56 +1,59 @@
import { ReactElement } from 'react';
import CardComponent from "../components/CardComponent";
// import CardComponent from "../components/CardComponent";
import ImageCarouselAlternativeComponent from "../components/ImageCarouselAlternativeComponent";
import { BODY_CLASSES, BUTTON_TYPE_ONE, H_1} from '../constants';
import { ICardConfig, ICardContent } from '../interfaces/types';
import { BODY_CLASSES,
// BUTTON_TYPE_ONE,
// H_1
} from '../constants';
// import { ICardConfig, ICardContent } from '../interfaces/types';
import { TrackPageViewIfEnabled } from '../util/cookiesHandling';

export default function HomePage(): ReactElement {
TrackPageViewIfEnabled();

var cardTitleClasses: string = "text-center text-base-100-content text-xl font-semibold";
var cardTextClasses: string = "text-center";
// var cardTitleClasses: string = "text-center text-base-100-content text-xl font-semibold";
// var cardTextClasses: string = "text-center";

var cardConfig: { [id: string] : ICardConfig; } = {
'whiteCard': {
cardClasses: "w-[40rem] bg-base-100 text-base-100-content bg-opacity-95 shadow-xl border-2 border-base-100",
titleClasses: cardTitleClasses,
subTitleClasses: "",
textClasses: cardTextClasses,
imgClasses: "",
buttonClasses: "",
buttonPlacement: "",
},
'blackCard': {
cardClasses: "bg-neutral bg-opacity-95 rounded-[10px] shadow border-2",
titleClasses: cardTitleClasses,
subTitleClasses: "",
textClasses: cardTextClasses,
imgClasses: "",
buttonClasses: BUTTON_TYPE_ONE,
buttonPlacement: "justify-center",
}
};
// var cardConfig: { [id: string] : ICardConfig; } = {
// 'whiteCard': {
// cardClasses: "w-[40rem] bg-base-100 text-base-100-content bg-opacity-95 shadow-xl border-2 border-base-100",
// titleClasses: cardTitleClasses,
// subTitleClasses: "",
// textClasses: cardTextClasses,
// imgClasses: "",
// buttonClasses: "",
// buttonPlacement: "",
// },
// 'blackCard': {
// cardClasses: "bg-neutral bg-opacity-95 rounded-[10px] shadow border-2",
// titleClasses: cardTitleClasses,
// subTitleClasses: "",
// textClasses: cardTextClasses,
// imgClasses: "",
// buttonClasses: BUTTON_TYPE_ONE,
// buttonPlacement: "justify-center",
// }
// };

var cardContent: { [id: string] : ICardContent } = {
'whiteCard1': {
title: "",
subTitle: "",
text: "In development",
buttonText: "",
imageSrc: "",
imageAlt: "",
},
'blackCard1': {
title: "Data sources",
subTitle: "",
text: "In development",
buttonText: "Sign In",
imageSrc: "",
imageAlt: "",
},
// var cardContent: { [id: string] : ICardContent } = {
// 'whiteCard1': {
// title: "",
// subTitle: "",
// text: "In development",
// buttonText: "",
// imageSrc: "",
// imageAlt: "",
// },
// 'blackCard1': {
// title: "Data sources",
// subTitle: "",
// text: "In development",
// buttonText: "Sign In",
// imageSrc: "",
// imageAlt: "",
// },

};
// };

return (
<div>
Expand Down

0 comments on commit 168e0c0

Please sign in to comment.