-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds type definitions and style varibales
- Loading branch information
Showing
21 changed files
with
139 additions
and
85 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Next.js: debug server-side", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "npm run dev" | ||
}, | ||
{ | ||
"name": "Next.js: debug client-side", | ||
"type": "chrome", | ||
"request": "launch", | ||
"url": "http://localhost:3000" | ||
}, | ||
{ | ||
"name": "Next.js: debug full stack", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"command": "npm run dev", | ||
"serverReadyAction": { | ||
"pattern": "- Local:.+(https?://.+)", | ||
"uriFormat": "%s", | ||
"action": "debugWithChrome" | ||
} | ||
} | ||
] | ||
} |
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 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
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,22 +1,30 @@ | ||
import Image from "next/image"; | ||
import styles from "./styles.module.sass"; | ||
import CustomCard from "@components/atoms/CustomCard"; | ||
import Link from "next/link"; | ||
import { Card, Flex } from "antd"; | ||
|
||
function IconCard({ text, iconPath, iconSize, url }: any) { | ||
function IconCard({ text, iconPath, iconSize, url }: Props) { | ||
return ( | ||
<a href={url} target={"_blank"} > | ||
<CustomCard> | ||
<Image | ||
src={iconPath} | ||
alt={iconPath} | ||
width={iconSize} | ||
height={iconSize} | ||
/> | ||
<label className={styles.icon_card_text}>{text}</label> | ||
</CustomCard> | ||
<a href={url} target={"_blank"}> | ||
<Card style={{ width: 120, margin: 10 }}> | ||
<Flex vertical={true} align="center"> | ||
<Image | ||
src={iconPath} | ||
alt={iconPath} | ||
width={iconSize} | ||
height={iconSize} | ||
/> | ||
<label className={styles.icon_card_text}>{text}</label> | ||
</Flex> | ||
</Card> | ||
</a> | ||
) | ||
} | ||
|
||
type Props = { | ||
text: string, | ||
iconPath: string, | ||
iconSize: number, | ||
url: string | ||
} | ||
|
||
export default IconCard; |
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,5 +1,8 @@ | ||
@import "@styles/variables.module.sass" | ||
|
||
.icon_card_text | ||
font-size: 13px | ||
margin-top: 12px | ||
font-weight: 500 | ||
color: #000 // TODO :: Use variables | ||
cursor: pointer | ||
color: $font-color-dark |
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
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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
'use client'; | ||
|
||
import React from "react"; | ||
import { SessionProvider } from "next-auth/react"; | ||
import { Session } from "next-auth"; | ||
|
||
const AuthSessionProvider = ({ children, session }: any) => ( | ||
const AuthSessionProvider = ({ children, session }: Props) => ( | ||
<SessionProvider session={session}> | ||
{children} | ||
</SessionProvider> | ||
) | ||
|
||
type Props = { | ||
children: React.ReactNode, | ||
session: Session | null | ||
} | ||
|
||
export default AuthSessionProvider; |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@import "@styles/variables.module.sass" | ||
|
||
body | ||
background: $primary-surface-color |
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,15 @@ | ||
// ------ Colors ------ | ||
$primary-surface-color: #F9F9F9 | ||
$secondary-surface-color: #FFF | ||
$primary-color: #292929 | ||
$font-color-light: #FFF | ||
$font-color-dark: #292929 | ||
$border-color: #e4e4e4a0 | ||
$github-primary-color: #292929 | ||
|
||
// ------ Sizes ------ | ||
$border-radius: 0.3rem | ||
|
||
// ------ Exports ------ | ||
:export | ||
primaryColor: $primary-color |
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,18 @@ | ||
/** | ||
* | ||
* Define all global types in this file. | ||
* | ||
*/ | ||
|
||
type User = { | ||
email: string; | ||
image: string; | ||
username: string; | ||
}; | ||
|
||
type Todo = { | ||
_id: string; | ||
todoTitle: string; | ||
todoDescription: string; | ||
creator: User; | ||
}; |