-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/bicstone/portfolio into dev…
…/adopt-material-you
- Loading branch information
Showing
38 changed files
with
734 additions
and
438 deletions.
There are no files selected for viewing
Submodule content
updated
from 5df0cb to 2bcdab
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import isPropValid from "@emotion/is-prop-valid"; | ||
import styled from "@emotion/styled"; | ||
|
||
export type SpacerProps = | ||
| { | ||
x: number; | ||
y?: null; | ||
} | ||
| { | ||
x?: null; | ||
y: number; | ||
}; | ||
|
||
export const SpacerBase = styled("span", { | ||
shouldForwardProp: (prop) => | ||
isPropValid(prop) && prop !== "x" && prop !== "y", | ||
})<SpacerProps>(({ x, y, theme }) => { | ||
const width = x ?? 1; | ||
const height = y ?? 1; | ||
return { | ||
display: "block", | ||
visibility: "hidden", | ||
width: theme.spacing(width), | ||
minWidth: theme.spacing(width), | ||
height: theme.spacing(height), | ||
minHeight: theme.spacing(height), | ||
}; | ||
}); | ||
|
||
export const Spacer = ( | ||
props: SpacerProps & React.HTMLAttributes<HTMLSpanElement> | ||
): JSX.Element => { | ||
return <SpacerBase {...props} aria-hidden="true" />; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
import { LogoBase } from "./LogoBase"; | ||
|
||
import logo from "@/content/logos/CsmIcon.png"; | ||
|
||
export const CsmIcon = styled(LogoBase)(({ theme }) => ({ | ||
backgroundImage: `url(${logo})`, | ||
width: theme.spacing(12), | ||
height: theme.spacing(12), | ||
})); |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
import { LogoBase } from "./LogoBase"; | ||
|
||
import logo from "@/content/logos/FindyLogo.svg"; | ||
|
||
export const FindyLogo = styled(LogoBase)({ | ||
backgroundImage: `url(${logo})`, | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
import { LogoBase } from "./LogoBase"; | ||
|
||
import logo from "@/content/logos/LaprasLogo.svg"; | ||
|
||
export const LaprasLogo = styled(LogoBase)({ | ||
backgroundImage: `url(${logo})`, | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
import { LogoBase } from "./LogoBase"; | ||
|
||
import logo from "@/content/logos/RissIcon.png"; | ||
|
||
export const RissIcon = styled(LogoBase)(({ theme }) => ({ | ||
backgroundImage: `url(${logo})`, | ||
width: theme.spacing(12), | ||
height: theme.spacing(12), | ||
})); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import styled from "@emotion/styled"; | ||
import Card, { type CardProps } from "@mui/material/Card"; | ||
import CardActionArea from "@mui/material/CardActionArea"; | ||
import visuallyHidden from "@mui/utils/visuallyHidden"; | ||
|
||
import { ExternalLink } from "@/components/ExternalLink"; | ||
import { CsmIcon } from "@/components/logos/CsmIcon"; | ||
|
||
const StyledCard = styled(Card)({ | ||
paddingBottom: "100%", | ||
position: "relative", | ||
}) as typeof Card; | ||
|
||
const StyledCardActionArea = styled(CardActionArea)(({ theme }) => ({ | ||
padding: theme.spacing(2), | ||
|
||
position: "absolute", | ||
bottom: 0, | ||
left: 0, | ||
right: 0, | ||
top: 0, | ||
|
||
display: "flex", | ||
width: "100%", | ||
height: "100%", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
})) as typeof CardActionArea; | ||
|
||
export const BioCsmCard = (props: CardProps): JSX.Element => { | ||
return ( | ||
<StyledCard {...props} title="認証情報の表示" component="article"> | ||
<StyledCardActionArea | ||
href="https://certification.scrumalliance.org/accounts/1448098-takanori-oishi/certifications/1691057-csm" | ||
rel="external noopener" | ||
title="認証情報の表示" | ||
> | ||
<ExternalLink> | ||
<CsmIcon aria-hidden="true" /> | ||
</ExternalLink> | ||
<span css={{ ...visuallyHidden }}>Certified ScrumMaster®</span> | ||
<span css={{ ...visuallyHidden }}> | ||
Certified ScrumMaster® is a certification mark of Scrum Alliance, Inc. | ||
Any unauthorized use is strictly prohibited. | ||
</span> | ||
</StyledCardActionArea> | ||
</StyledCard> | ||
); | ||
}; |
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
Oops, something went wrong.