Skip to content

Commit

Permalink
feat:link asset previews
Browse files Browse the repository at this point in the history
  • Loading branch information
okorie2 committed Dec 4, 2024
1 parent eb6f741 commit e110d54
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function AssetsList() {
gap: 48px;
`}
>
<div css={style.assetCard}>
<a href="/report/664f406b82350800ca942b92" css={style.assetCard}>
<img
src={ClimateReportImg}
alt="Climate Report"
Expand All @@ -33,8 +33,8 @@ export default function AssetsList() {
/>
<p>Climate data report</p>
<p>Report</p>
</div>
<div css={style.assetCard}>
</a>
<a href="/chart/66031cead6b19700d9e2a8ac" css={style.assetCard}>
<img
src={IATICountryImg}
alt="IATI Country Chart"
Expand All @@ -43,7 +43,7 @@ export default function AssetsList() {
/>
<p>IATI Country Incoming Funds 2024</p>
<p>Chart</p>
</div>
</a>
</div>
<div
css={`
Expand All @@ -52,7 +52,7 @@ export default function AssetsList() {
gap: 40px;
`}
>
<div css={style.assetCard}>
<a href="/chart/66031b319b11a300b870c800" css={style.assetCard}>
<img
src={BudgetChartImg}
alt="Budget Chart"
Expand All @@ -61,12 +61,12 @@ export default function AssetsList() {
/>
<p>Budget Flow</p>
<p>Chart</p>
</div>
</a>
<div>
<InfoCard />
</div>

<div css={style.assetCard}>
<a href="/report/6603b021d6b19700d9e2a8ae" css={style.assetCard}>
<img
src={MalariaReportImg}
alt="Malaria Report"
Expand All @@ -77,7 +77,7 @@ export default function AssetsList() {
Malaria Eradication by 2030: A Challenge that Requires Urgent Action
</p>
<p>Report</p>
</div>
</a>
</div>
<div
css={`
Expand All @@ -86,7 +86,7 @@ export default function AssetsList() {
gap: 40px;
`}
>
<div css={style.assetCard}>
<a href="/report/6603d2cb5c200a009889ea05" css={style.assetCard}>
<img
src={GenderReportImg}
alt="gender Report"
Expand All @@ -95,12 +95,15 @@ export default function AssetsList() {
/>
<p>Gender based violence</p>
<p>Report</p>
</div>
<div css={style.assetCard}>
</a>
<a
href="/dataset/6603136cab07ef3d7c7ff9be/detail?fromHome=true"
css={style.assetCard}
>
<img src={BudgetDataImg} alt="Budget Data" width={384} height={245} />
<p>Budget 2011</p>
<p>Data</p>
</div>
</a>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { css } from "styled-components";

export const style = {
assetCard: css`
text-decoration: none;
> p:nth-of-type(1) {
color: #231d2c;
font-family: "GothamNarrow-Bold", sans-serif;
Expand Down
5 changes: 3 additions & 2 deletions src/app/modules/home-module/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import HomeFooter from "app/modules/home-module/components/Footer";
import AssetsCollection from "./components/AssetCollection";
import Hero from "./components/hero";
import NonAuthUserLibrary from "./components/nonAuthUserLibrary";
import { Box } from "@material-ui/core";

export default function HomeModule() {
useTitle("DX Dataxplorer");
Expand All @@ -25,8 +26,8 @@ export default function HomeModule() {
background-color: #f2f7fd;
`}
>
{!isAuthenticated ? <Hero /> : <></>}
{/* <Box height={40} /> */}
{!isAuthenticated ? <Hero /> : <Box height={40} />}

{!isAuthenticated ? <NonAuthUserLibrary /> : <AssetsCollection />}

<HomeFooter />
Expand Down

0 comments on commit e110d54

Please sign in to comment.