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
1 parent
10e6f6d
commit b7f5509
Showing
19 changed files
with
107 additions
and
107 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,9 +1,9 @@ | ||
{ | ||
"arrowParens": "always", | ||
"semi": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"endOfLine": "lf", | ||
"singleQuote": false, | ||
"printWidth": 80 | ||
"arrowParens": "always", | ||
"semi": true, | ||
"tabWidth": 2, | ||
"trailingComma": "all", | ||
"endOfLine": "lf", | ||
"singleQuote": true, | ||
"printWidth": 80 | ||
} |
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,18 +1,18 @@ | ||
import React from "react"; | ||
import Button from "./Button"; | ||
import React from 'react'; | ||
import Button from './Button'; | ||
|
||
export default { | ||
title: "Button", | ||
title: 'Button', | ||
Component: Button, | ||
}; | ||
|
||
const Template = (args) => <Button {...args} />; | ||
|
||
export const Primary = Template.bind({}); | ||
Primary.args = { | ||
children: "Primary", | ||
children: 'Primary', | ||
}; | ||
export const Secondary = Template.bind({}); | ||
Secondary.args = { | ||
children: "Secondary", | ||
children: 'Secondary', | ||
}; |
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,15 +1,15 @@ | ||
import { render, screen } from "@testing-library/react"; | ||
import Button from "./Button"; | ||
import { render, screen } from '@testing-library/react'; | ||
import Button from './Button'; | ||
|
||
describe("Test Button component", () => { | ||
it("renders the component", () => { | ||
describe('Test Button component', () => { | ||
it('renders the component', () => { | ||
render(<Button>Test data</Button>); | ||
const button = screen.getByRole("button"); | ||
const button = screen.getByRole('button'); | ||
expect(button).toBeInTheDocument(); | ||
}); | ||
it("renders the correct child data", () => { | ||
it('renders the correct child data', () => { | ||
render(<Button>Test data</Button>); | ||
const button = screen.getByRole("button"); | ||
const button = screen.getByRole('button'); | ||
expect(button).toHaveTextContent(/test data/i); | ||
}); | ||
}); |
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,5 +1,5 @@ | ||
describe("homepage", () => { | ||
it("it loads", () => { | ||
cy.visit("/"); | ||
describe('homepage', () => { | ||
it('it loads', () => { | ||
cy.visit('/'); | ||
}); | ||
}); |
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,14 +1,14 @@ | ||
const nextJest = require("next/jest"); | ||
const nextJest = require('next/jest'); | ||
|
||
const createJestConfig = nextJest({ | ||
dir: "./", | ||
dir: './', | ||
}); | ||
|
||
/** @type {import('jest').Config} */ | ||
const customJestConfig = { | ||
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"], | ||
moduleDirectories: ["node_modules", "<rootDir>/"], | ||
testEnvironment: "jest-environment-jsdom", | ||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'], | ||
moduleDirectories: ['node_modules', '<rootDir>/'], | ||
testEnvironment: 'jest-environment-jsdom', | ||
}; | ||
|
||
module.exports = createJestConfig(customJestConfig); |
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 +1 @@ | ||
import "@testing-library/jest-dom/extend-expect"; | ||
import '@testing-library/jest-dom/extend-expect'; |
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,5 +1,5 @@ | ||
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction | ||
|
||
export default function handler(req, res) { | ||
res.status(200).json({ name: "John Doe" }); | ||
res.status(200).json({ name: 'John Doe' }); | ||
} |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ module.exports = { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}; |
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,4 +1,4 @@ | ||
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); | ||
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
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,92 +1,92 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: [ | ||
"./pages/**/*.{js,ts,jsx,tsx}", | ||
"./components/**/*.{js,ts,jsx,tsx}", | ||
'./pages/**/*.{js,ts,jsx,tsx}', | ||
'./components/**/*.{js,ts,jsx,tsx}', | ||
], | ||
theme: { | ||
extend: { | ||
screens: { | ||
sm: "375px", | ||
sm: '375px', | ||
}, | ||
fontFamily: { | ||
primary: ["Poppins", "sans-serif"], | ||
primary: ['Poppins', 'sans-serif'], | ||
}, | ||
margin: { | ||
primary: "16px", | ||
primary: '16px', | ||
}, | ||
width: { | ||
xxs: "35px", | ||
xs: "54px", | ||
sm: "115px", | ||
lg: "164px", | ||
xl: "165px", | ||
"2xl": "294px", | ||
"3xl": "312px", | ||
"4xl": "343px", | ||
"5xl": "375px", | ||
xxs: '35px', | ||
xs: '54px', | ||
sm: '115px', | ||
lg: '164px', | ||
xl: '165px', | ||
'2xl': '294px', | ||
'3xl': '312px', | ||
'4xl': '343px', | ||
'5xl': '375px', | ||
}, | ||
height: { | ||
xxs: "35px", | ||
xs: "48px", | ||
sm: "54px", | ||
lg: "116px", | ||
xl: "120px", | ||
"2xl": "1214px", | ||
"3xl": "135px", | ||
"4xl": "160px", | ||
"5xl": "282px", | ||
"6xl": "308px", | ||
xxs: '35px', | ||
xs: '48px', | ||
sm: '54px', | ||
lg: '116px', | ||
xl: '120px', | ||
'2xl': '1214px', | ||
'3xl': '135px', | ||
'4xl': '160px', | ||
'5xl': '282px', | ||
'6xl': '308px', | ||
}, | ||
fontSize: { | ||
sm: "11px", | ||
md: "13px", | ||
lg: "14px", | ||
xl: "15px", | ||
"2xl": "29px", | ||
sm: '11px', | ||
md: '13px', | ||
lg: '14px', | ||
xl: '15px', | ||
'2xl': '29px', | ||
}, | ||
lineHeight: { | ||
xxs: "16.5px", | ||
xs: "18px", | ||
sm: "21px", | ||
lg: "22.5px", | ||
xl: "24px", | ||
"2xl": "30px", | ||
"3xl": "43.5px", | ||
xxs: '16.5px', | ||
xs: '18px', | ||
sm: '21px', | ||
lg: '22.5px', | ||
xl: '24px', | ||
'2xl': '30px', | ||
'3xl': '43.5px', | ||
}, | ||
borderRadius: { | ||
xxs: "7px", | ||
xs: "8px", | ||
sm: "9px", | ||
lg: "12px", | ||
xl: "20px", | ||
xxs: '7px', | ||
xs: '8px', | ||
sm: '9px', | ||
lg: '12px', | ||
xl: '20px', | ||
}, | ||
colors: { | ||
green: { | ||
primary: "rgba(135, 221, 57, 1)", | ||
secondary: "rgba(94, 196, 1, 1)", | ||
primary: 'rgba(135, 221, 57, 1)', | ||
secondary: 'rgba(94, 196, 1, 1)', | ||
}, | ||
red: { | ||
primary: "rgba(255, 85, 82, 1)", | ||
secondary: "rgba(255, 85, 82, 0.72)", | ||
primary: 'rgba(255, 85, 82, 1)', | ||
secondary: 'rgba(255, 85, 82, 0.72)', | ||
}, | ||
orange: { | ||
light: "rgba(243, 122, 32, 1)", | ||
light: 'rgba(243, 122, 32, 1)', | ||
}, | ||
gray: { | ||
light: "rgba(240, 241, 242, 1)", | ||
darkish: "rgba(55, 71, 79, 0.72)", | ||
light: 'rgba(240, 241, 242, 1)', | ||
darkish: 'rgba(55, 71, 79, 0.72)', | ||
}, | ||
light: { | ||
regular: "rgba(252, 252, 252, 0.6)", | ||
off: "rgba(54, 179, 126, 0.14)", | ||
regular: 'rgba(252, 252, 252, 0.6)', | ||
off: 'rgba(54, 179, 126, 0.14)', | ||
}, | ||
silver: { light: "rgba(196, 196, 196, 1)" }, | ||
flashWhite: "rgba(243, 244, 244, 1)", | ||
charcoal: "rgba(55, 71, 79, 1)", | ||
blackOlive: "rgba(62, 62, 62, 1)", | ||
silver: { light: 'rgba(196, 196, 196, 1)' }, | ||
flashWhite: 'rgba(243, 244, 244, 1)', | ||
charcoal: 'rgba(55, 71, 79, 1)', | ||
blackOlive: 'rgba(62, 62, 62, 1)', | ||
}, | ||
}, | ||
}, | ||
plugins: [require("@tailwindcss/typography")], | ||
} | ||
plugins: [require('@tailwindcss/typography')], | ||
}; |