-
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 pull request #8 from shunkakinoki/feat/ini-github-fetcher
feat/ini github fetcher
- Loading branch information
Showing
15 changed files
with
168 additions
and
12 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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
[ -n "$CI" ] && exit 0 | ||
|
||
exec </dev/tty && yarn git-cz --hook | ||
exit 0 |
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,39 @@ | ||
import clsx from "clsx"; | ||
|
||
import { SwitchButton } from "@/common/Button"; | ||
import { SectionText } from "@/common/Text"; | ||
import CoreCard from "@/components/Core/CoreCard"; | ||
import { Airplane, Scale, Variable } from "@/icons"; | ||
|
||
interface Props { | ||
isPartial?: boolean; | ||
} | ||
|
||
export default function Core({ isPartial = false }: Props): JSX.Element { | ||
return ( | ||
<section key="Core" className={clsx("w-full mb-2", isPartial && "mt-6")}> | ||
<div className="px-3 md:px-0"> | ||
<SectionText isPartial={isPartial}>Core</SectionText> | ||
</div> | ||
<dl className="overflow-hidden bg-gray-200 lg:grid sm:gap-0.5 lg:grid-cols-3"> | ||
<CoreCard color="blue" name="Cause" href="/cause"> | ||
<Variable /> | ||
</CoreCard> | ||
<CoreCard color="indigo" name="Mission" href="/mission"> | ||
<Airplane /> | ||
</CoreCard> | ||
<CoreCard color="purple" name="Values" href="/values"> | ||
<Scale /> | ||
</CoreCard> | ||
</dl> | ||
<div className="w-full pt-3 my-3 text-center leading-5"> | ||
<div className="flex justify-center w-full"> | ||
<SwitchButton | ||
href={isPartial ? "/about" : "/#core"} | ||
type={isPartial ? "right" : "left"} | ||
/> | ||
</div> | ||
</div> | ||
</section> | ||
); | ||
} |
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,64 @@ | ||
import clsx from "clsx"; | ||
import Link from "next/link"; | ||
|
||
interface Props { | ||
children: JSX.Element; | ||
color: | ||
| "blue" | ||
| "gray" | ||
| "green" | ||
| "indigo" | ||
| "pink" | ||
| "purple" | ||
| "red" | ||
| "yellow"; | ||
name: string; | ||
hidden?: boolean; | ||
href: string; | ||
} | ||
|
||
export default function CoreCard({ | ||
children, | ||
color, | ||
name, | ||
hidden = false, | ||
href, | ||
}: Props): JSX.Element { | ||
return ( | ||
<div | ||
className={clsx( | ||
"flex flex-col group relative p-6 bg-white hover:bg-gray-50 dark:bg-black dark:hover:bg-gray-900 sm:rounded-tr-none focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-500", | ||
hidden && "block sm:hidden md:block" | ||
)} | ||
> | ||
<div className="flex justify-center w-full"> | ||
<div className="flex items-center justify-center w-12 h-12 text-white rounded-md"> | ||
<span | ||
className={clsx( | ||
"inline-flex p-3 rounded-lg ring-4 ring-white dark:ring-black", | ||
color === "blue" && | ||
"text-blue-50 bg-blue-500 dark:text-blue-900 dark:bg-blue-300", | ||
color === "indigo" && | ||
"text-indigo-50 bg-indigo-500 dark:text-indigo-900 dark:bg-indigo-300", | ||
color === "purple" && | ||
"text-purple-50 bg-purple-500 dark:text-purple-900 dark:bg-purple-3000" | ||
)} | ||
> | ||
{children} | ||
</span> | ||
</div> | ||
</div> | ||
<div className="mt-5"> | ||
<div className="text-lg font-medium text-center text-black dark:text-gray-300"> | ||
<Link href={href}> | ||
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} | ||
<a className="focus:outline-none"> | ||
<span className="absolute inset-0" aria-hidden="true" /> | ||
{name} | ||
</a> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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 @@ | ||
export { default } from "./CoreCard"; |
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 @@ | ||
export { default } from "./Core"; |
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,12 @@ | ||
export default function Airplane(): JSX.Element { | ||
return ( | ||
<svg | ||
className="w-6 h-6" | ||
fill="currentColor" | ||
viewBox="0 0 20 20" | ||
aria-hidden="true" | ||
> | ||
<path d="M10.894 2.553a1 1 0 00-1.788 0l-7 14a1 1 0 001.169 1.409l5-1.429A1 1 0 009 15.571V11a1 1 0 112 0v4.571a1 1 0 00.725.962l5 1.428a1 1 0 001.17-1.408l-7-14z" /> | ||
</svg> | ||
); | ||
} |
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,16 @@ | ||
export default function Scale(): JSX.Element { | ||
return ( | ||
<svg | ||
className="w-6 h-6" | ||
fill="currentColor" | ||
viewBox="0 0 20 20" | ||
aria-hidden="true" | ||
> | ||
<path | ||
fillRule="evenodd" | ||
d="M10 2a1 1 0 011 1v1.323l3.954 1.582 1.599-.8a1 1 0 01.894 1.79l-1.233.616 1.738 5.42a1 1 0 01-.285 1.05A3.989 3.989 0 0115 15a3.989 3.989 0 01-2.667-1.019 1 1 0 01-.285-1.05l1.715-5.349L11 6.477V16h2a1 1 0 110 2H7a1 1 0 110-2h2V6.477L6.237 7.582l1.715 5.349a1 1 0 01-.285 1.05A3.989 3.989 0 015 15a3.989 3.989 0 01-2.667-1.019 1 1 0 01-.285-1.05l1.738-5.42-1.233-.617a1 1 0 01.894-1.788l1.599.799L9 4.323V3a1 1 0 011-1zm-5 8.274l-.818 2.552c.25.112.526.174.818.174.292 0 .569-.062.818-.174L5 10.274zm10 0l-.818 2.552c.25.112.526.174.818.174.292 0 .569-.062.818-.174L15 10.274z" | ||
clipRule="evenodd" | ||
/> | ||
</svg> | ||
); | ||
} |
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,16 @@ | ||
export default function Variable(): JSX.Element { | ||
return ( | ||
<svg | ||
className="w-6 h-6" | ||
fill="currentColor" | ||
viewBox="0 0 20 20" | ||
aria-hidden="true" | ||
> | ||
<path | ||
fillRule="evenodd" | ||
d="M4.649 3.084A1 1 0 015.163 4.4 13.95 13.95 0 004 10c0 1.993.416 3.886 1.164 5.6a1 1 0 01-1.832.8A15.95 15.95 0 012 10c0-2.274.475-4.44 1.332-6.4a1 1 0 011.317-.516zM12.96 7a3 3 0 00-2.342 1.126l-.328.41-.111-.279A2 2 0 008.323 7H8a1 1 0 000 2h.323l.532 1.33-1.035 1.295a1 1 0 01-.781.375H7a1 1 0 100 2h.039a3 3 0 002.342-1.126l.328-.41.111.279A2 2 0 0011.677 14H12a1 1 0 100-2h-.323l-.532-1.33 1.035-1.295A1 1 0 0112.961 9H13a1 1 0 100-2h-.039zm1.874-2.6a1 1 0 011.833-.8A15.95 15.95 0 0118 10c0 2.274-.475 4.44-1.332 6.4a1 1 0 11-1.832-.8A13.949 13.949 0 0016 10c0-1.993-.416-3.886-1.165-5.6z" | ||
clipRule="evenodd" | ||
/> | ||
</svg> | ||
); | ||
} |
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
5f7705c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: