-
-
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.
- Loading branch information
Showing
17 changed files
with
162 additions
and
99 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
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,16 @@ | ||
import type { DetailedHTMLProps, HTMLAttributes } from "react"; | ||
|
||
type Props = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>; | ||
|
||
export const Card = (props: Props) => { | ||
const { children, className, ...rest } = props; | ||
|
||
return ( | ||
<div | ||
className={`rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-50 ${className}`} | ||
{...rest} | ||
> | ||
{children} | ||
</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,9 @@ | ||
export const CardArrow = () => { | ||
return ( | ||
<span className="mb-3 font-semibold"> | ||
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none"> | ||
-> | ||
</span> | ||
</span> | ||
); | ||
}; |
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 @@ | ||
import type { DetailedHTMLProps, HTMLAttributes } from "react"; | ||
|
||
type Props = DetailedHTMLProps< | ||
HTMLAttributes<HTMLParagraphElement>, | ||
HTMLParagraphElement | ||
>; | ||
|
||
export const CardContent = (props: Props) => { | ||
const { children, className, ...rest } = props; | ||
|
||
return ( | ||
<div className={`m-0 max-w-[30ch] text-sm ${className}`} {...rest}> | ||
{children} | ||
</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,16 @@ | ||
import type { AnchorHTMLAttributes, DetailedHTMLProps } from "react"; | ||
|
||
type Props = DetailedHTMLProps< | ||
AnchorHTMLAttributes<HTMLAnchorElement>, | ||
HTMLAnchorElement | ||
>; | ||
|
||
export const CardContentLink = (props: Props) => { | ||
const { children, className, ...rest } = props; | ||
|
||
return ( | ||
<a className={`px-5 ${className}`} {...rest}> | ||
<div className="group text-sm font-semibold">{children}</div> | ||
</a> | ||
); | ||
}; |
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 @@ | ||
import type { DetailedHTMLProps, HTMLAttributes } from "react"; | ||
|
||
type Props = DetailedHTMLProps< | ||
HTMLAttributes<HTMLHeadingElement>, | ||
HTMLHeadingElement | ||
>; | ||
|
||
export const CardTitle = (props: Props) => { | ||
const { children, className, ...rest } = props; | ||
|
||
return ( | ||
<span className={`mb-3 text-2xl font-semibold ${className}`} {...rest}> | ||
{children} | ||
</span> | ||
); | ||
}; |
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,13 @@ | ||
import { Card as _Card } from "@/components/Card/Card"; | ||
import { CardTitle } from "@/components/Card/CardTitle"; | ||
import { CardArrow } from "@/components/Card/CardArrow"; | ||
import { CardContent } from "@/components/Card/CardContent"; | ||
import { CardContentLink } from "@/components/Card/CardContentLink"; | ||
|
||
export const Card = Object.assign(_Card, { | ||
Title: CardTitle, | ||
Arrow: CardArrow, | ||
Content: Object.assign(CardContent, { | ||
Link: CardContentLink, | ||
}), | ||
}); |
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,6 @@ | ||
export const HOMEPAGE = "https://metro-now.vercel.app"; | ||
|
||
export const GITHUB = "https://github.com/krystxf/metro-now"; | ||
|
||
export const SWAGGER = "https://api.metronow.dev/"; | ||
export const GRAPHQL = "https://api.metronow.dev/graphql"; |
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,4 @@ | ||
# API | ||
|
||
- [Swagger (REST API)](https://api.metronow.dev/) | ||
- [GraphQL](https://api.metronow.dev/graphql) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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