Skip to content

Commit

Permalink
update button text size, refactor card header
Browse files Browse the repository at this point in the history
  • Loading branch information
celinalou92 committed Jul 12, 2024
1 parent 71f6efb commit 498bfbd
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 47 deletions.
93 changes: 48 additions & 45 deletions app/components/Buttons/Buttons.tsx
Original file line number Diff line number Diff line change
@@ -1,47 +1,50 @@
import { Project } from "@/types/Project"
import { Button } from "@mui/material"
import { Project } from "@/types/Project";
import { Button } from "@mui/material";

export const getButtons = (project: Project) => {
{
return project.name != "Amanda Lynn Photography" ? (
<>
<Button
variant="outlined"
href={project.links[0]}
color="secondary"
target="_blank"
rel="noreferrer"
sx={{
padding: ".5rem 1rem"
}}
>
See Github
</Button>
<Button
target="_blank"
rel="noreferrer"
variant="outlined"
sx={{
padding: ".5rem 1rem"
}}
href={project.links[1]}
color="secondary">
See Live Site
</Button>
</>
) : (
<Button
target="_blank"
rel="noreferrer"
variant="outlined"
href={project.links[0]}
color="secondary"
sx={{
padding: ".5rem 1rem"
}}
>
See Demo on Vimeo
</Button>
)
}
}
{
return project.name != "Amanda Lynn Photography" ? (
<>
<Button
variant="outlined"
href={project.links[0]}
color="secondary"
target="_blank"
rel="noreferrer"
sx={{
padding: ".5rem 1rem",
fontSize: ".75rem",
}}
>
See Github
</Button>
<Button
target="_blank"
rel="noreferrer"
variant="outlined"
sx={{
padding: ".5rem 1rem",
fontSize: ".75rem",
}}
href={project.links[1]}
color="secondary"
>
See Live Site
</Button>
</>
) : (
<Button
target="_blank"
rel="noreferrer"
variant="outlined"
href={project.links[0]}
color="secondary"
sx={{
padding: ".5rem 1rem",
}}
>
See Demo on Vimeo
</Button>
);
}
};
2 changes: 1 addition & 1 deletion app/components/StyledCard/StyledCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function StyledCard({
>
<Stack rowGap={3}>
<Stack sx={{ borderBottom: "1px solid #ff79725c" }}>
<Typography width={"100%"} gutterBottom variant="h5">
<Typography textTransform={"uppercase"} width={"100%"} gutterBottom variant="body1">
{contentHeader}
</Typography>
</Stack>
Expand Down
12 changes: 11 additions & 1 deletion app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ a:hover {
color: #fff;
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}

.outer {
padding-left: 55%;
Expand Down Expand Up @@ -144,7 +154,7 @@ a:hover {
/* Tablet and Smaller Desktop */
@media (max-width: 900px) {
.outer{
padding: 10% 10%;
padding: 20% 10%;
}

.asideContainer {
Expand Down

0 comments on commit 498bfbd

Please sign in to comment.