Skip to content

Commit a9ce68f

Browse files
committed
add learn more button for WorkflowDetailCard; adjust color theme on DatasetPage and DatabasePage; refs #50 #51
1 parent cce55d2 commit a9ce68f

File tree

3 files changed

+241
-172
lines changed

3 files changed

+241
-172
lines changed

src/components/WorkflowDetailCard.tsx

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { Typography, Card, CardContent, Box, CardMedia } from "@mui/material";
1+
import {
2+
Typography,
3+
Card,
4+
CardContent,
5+
Box,
6+
Button,
7+
CardMedia,
8+
} from "@mui/material";
29
import { Colors } from "design/theme";
310
import React from "react";
411

@@ -48,9 +55,9 @@ const WorkflowDetailCard: React.FC<WorkflowDetailCardProps> = ({ type }) => {
4855
{/* <CardMedia
4956
component="img"
5057
height="160"
51-
image={`${process.env.PUBLIC_URL}/img/section4_data_portals.png`}
58+
image={`${process.env.PUBLIC_URL}/img/section1_logo_contained.png`}
5259
alt="Data Portals"
53-
sx={{ objectFit: "contain", backgroundColor: Colors.purpleGrey }}
60+
sx={{ objectFit: "contain", backgroundColor: Colors.black }}
5461
/> */}
5562

5663
<Box sx={{ width: "100%", backgroundColor, px: 2, py: 1 }}>
@@ -63,12 +70,32 @@ const WorkflowDetailCard: React.FC<WorkflowDetailCardProps> = ({ type }) => {
6370
{title}
6471
</Typography>
6572
</Box>
66-
{/* Title and content */}
73+
74+
{/* content */}
6775
<CardContent>
6876
<Typography variant="body2" color="text.secondary">
6977
{description}
7078
</Typography>
7179
</CardContent>
80+
<Box sx={{ display: "flex", justifyContent: "flex-end" }}>
81+
<Button
82+
variant="text"
83+
href="https://neurojson.org/wiki/index.cgi?wiki#code"
84+
target="_blank"
85+
rel="noopener noreferrer"
86+
sx={{
87+
color: Colors.purple,
88+
fontSize: "small",
89+
mr: 2,
90+
"&:hover": {
91+
backgroundColor: "transparent",
92+
textDecoration: "underline",
93+
},
94+
}}
95+
>
96+
Learn More
97+
</Button>
98+
</Box>
7299
</Card>
73100
);
74101
};

src/pages/DatabasePage.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,26 @@ const DatabasePage: React.FC = () => {
6767
return (
6868
<Button
6969
key={db.id}
70-
variant="contained"
70+
variant="outlined"
7171
sx={{
7272
padding: 3,
7373
textTransform: "none",
7474
fontWeight: 600,
75-
backgroundColor: Colors.primary.main,
76-
color: Colors.white,
75+
backgroundColor: "transparent",
76+
border: `1px solid ${Colors.lightGray}`,
77+
color: Colors.lightGray,
7778
borderRadius: 2,
7879
transition: "all 0.3s ease",
7980
height: "100px",
8081
display: "flex",
8182
flexDirection: "column",
8283
justifyContent: "center",
8384
"&:hover": {
84-
backgroundColor: Colors.primary.dark,
85+
backgroundColor: Colors.green,
86+
color: Colors.darkPurple,
8587
transform: "translateY(-2px)",
8688
boxShadow: 3,
89+
border: `1px solid ${Colors.green}`,
8790
},
8891
}}
8992
onClick={() => navigate(`/databases/${db.id}`)}

0 commit comments

Comments
 (0)