-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update button text size, refactor card header
- Loading branch information
1 parent
71f6efb
commit 498bfbd
Showing
3 changed files
with
60 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters