Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#58 Restore the Home page implementation(Homeページの実装を戻す) #60

Merged
merged 57 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
4843728
:lipstick: ui: update globals.scss
Bear29ers Feb 18, 2024
67e5355
:lipstick: ui: update layout
Bear29ers Feb 19, 2024
fa0ea22
:bento: asst: replace favicon
Bear29ers Feb 19, 2024
6ba775d
:sparkles: feat: create an Intro component
Bear29ers Feb 19, 2024
bb7065f
:bento: asst: add assets files
Bear29ers Feb 19, 2024
1cb228d
:sparkles: feat: restore the Intro component
Bear29ers Feb 19, 2024
362586c
:wrench: conf: update alias setting for storybook error
Bear29ers Feb 19, 2024
ebf8327
:sparkles: feat: implement the Intro component
Bear29ers Feb 19, 2024
1212ce5
:package: dpup: move @testing-library/jsdom to dependencies
Bear29ers Feb 19, 2024
6ba83d8
:wrench: conf: update eslintrc
Bear29ers Feb 19, 2024
b90ba15
:white_check_mark: test: create the Intro component test
Bear29ers Feb 19, 2024
9d27980
:construction_worker: ci: enabled workflow
Bear29ers Feb 19, 2024
b69f0cb
:white_check_mark: test: fix the Intro story file
Bear29ers Feb 19, 2024
5a6bcbf
:wrench: conf: update .stories.tsx template
Bear29ers Feb 19, 2024
39f4c41
:sparkles: feat: generate a Bear component
Bear29ers Feb 19, 2024
56d91ab
:sparkles: feat: implement the Bear component
Bear29ers Feb 19, 2024
a48d32c
:lipstick: ui: fix tailwindcss
Bear29ers Feb 19, 2024
e24d189
:lipstick: ui: bear is moved when isClicked is true
Bear29ers Feb 20, 2024
855dc86
:dizzy: anm: complete the bear animation
Bear29ers Feb 21, 2024
9941895
:white_check_mark: test: complete the Bear component story
Bear29ers Feb 21, 2024
1df0405
:construction: wip: writing the Bear component test
Bear29ers Feb 21, 2024
a986732
:white_check_mark: test: complete the Bear component test
Bear29ers Feb 21, 2024
9f66738
:sparkles: feat: create a SocialIcons component
Bear29ers Feb 22, 2024
6b1d141
:construction: wip: updating the SocialIcon component
Bear29ers Feb 22, 2024
e3d98de
:sparkles: feat: create a FacebookIcon component
Bear29ers Feb 22, 2024
3bacee6
:truck: mv: rename prettierrc
Bear29ers Feb 22, 2024
b596c65
:art: fmt: formatting
Bear29ers Feb 22, 2024
67daf6e
:wrench: conf: update markuplintrc
Bear29ers Feb 22, 2024
df7ce77
:sparkles: feat: implement FacebookIcon
Bear29ers Feb 22, 2024
ef98300
:white_check_mark: test: FacebookIcon story
Bear29ers Feb 22, 2024
bad8c67
:white_check_mark: test: FacebookIcon test
Bear29ers Feb 22, 2024
8c8c14f
:wrench: conf: update test template file
Bear29ers Feb 22, 2024
37d8165
:sparkles: feat: create a GithubIcon component
Bear29ers Feb 22, 2024
506fff3
:sparkles: feat: implement the GithubIcon
Bear29ers Feb 22, 2024
44a9509
:white_check_mark: test: complete the GithubIcon story
Bear29ers Feb 22, 2024
9eb1ea9
:wrench: conf: update eslintrc
Bear29ers Feb 23, 2024
9ee311b
:arrow_up: upg: upgrade storybook
Bear29ers Feb 23, 2024
095a285
:white_check_mark: test: complete GithubIcon test
Bear29ers Feb 23, 2024
f636fb2
:adhesive_bandage: ish: fix test descriptions
Bear29ers Feb 23, 2024
d4bf71e
:sparkles: feat: create an InstagramIcon by template
Bear29ers Feb 23, 2024
bc02c47
:sparkles: feat: create the InstagramIcon
Bear29ers Feb 23, 2024
795e646
:white_check_mark: test: complete the InstagramIcon story
Bear29ers Feb 23, 2024
dba9082
:white_check_mark: test: complete the InstagramIcon test
Bear29ers Feb 23, 2024
7fb3221
:sparkles: feat: create a ThreadsIcon component by template
Bear29ers Feb 23, 2024
263f5c1
:sparkles: feat: create the ThreadsIcon
Bear29ers Feb 23, 2024
d0bd97c
:white_check_mark: test: complete the ThreadsIcon story
Bear29ers Feb 23, 2024
c360d48
:white_check_mark: test: complete the complete the ThreadsIcon test
Bear29ers Feb 23, 2024
e3bee6a
:sparkles: feat: implement the SocialIcon component
Bear29ers Feb 23, 2024
11fe30a
:white_check_mark: test: complete the SocialIcons story
Bear29ers Feb 23, 2024
213fe68
:white_check_mark: test: complete the SocialIcons test
Bear29ers Feb 23, 2024
c9e2f10
:lipstick: ui: fix z-index class
Bear29ers Feb 23, 2024
7adf458
:sparkles: feat: create a PageNavigation component by template
Bear29ers Feb 23, 2024
7508628
:recycle: refa: re-position the SocialIcons
Bear29ers Feb 23, 2024
0311792
:sparkles: feat: create the PageNavigation
Bear29ers Feb 23, 2024
19e7ddd
:adhesive_bandage: ish: update social media links and position
Bear29ers Feb 23, 2024
c7eda4a
:white_check_mark: test: complete the PageNavigation story
Bear29ers Feb 23, 2024
58f6fd0
:white_check_mark: test: complete the PageNavigation test
Bear29ers Feb 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# config
*.cjs
tailwind.config.ts
jest.setup.js

# build
Expand Down
23 changes: 18 additions & 5 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const config = {
'plugin:jest/style',
'plugin:testing-library/react',
'plugin:jest-dom/recommended',
'plugin:testing-library/react',
'plugin:react/recommended',
'plugin:storybook/recommended',
'prettier',
Expand All @@ -33,7 +34,16 @@ const config = {
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['import', 'unused-imports', 'jsx-a11y', 'tailwindcss', '@typescript-eslint', 'jest', 'jest-dom'],
plugins: [
'import',
'unused-imports',
'jsx-a11y',
'tailwindcss',
'@typescript-eslint',
'jest',
'jest-dom',
'testing-library',
],
rules: {
/* eslint */
'no-unused-vars': 'off',
Expand Down Expand Up @@ -109,10 +119,10 @@ const config = {
'import/order': [
'error',
{
groups: ['builtin', 'external', 'parent', 'sibling', 'index', 'object', 'type'],
pathGroupsExcludedImportTypes: ['builtin'],
'groups': ['builtin', 'external', 'parent', 'sibling', 'index', 'object', 'type'],
'pathGroupsExcludedImportTypes': ['builtin'],
'newlines-between': 'always',
pathGroups: [
'pathGroups': [
{
pattern: '{react,react-dom/**,react-router-dom}',
group: 'builtin',
Expand Down Expand Up @@ -164,7 +174,7 @@ const config = {
position: 'before',
},
],
alphabetize: {
'alphabetize': {
order: 'asc',
},
},
Expand All @@ -186,6 +196,9 @@ const config = {
},
],
'jest/require-top-level-describe': ['error'],
/* testing-library */
'testing-library/no-render-in-lifecycle': 'off',
'testing-library/no-node-access': 'off',
},
};

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ module.exports = {
'**/*.{js,jsx,ts,tsx}': [buildEslintCommand, 'eslint --fix'],
'**/*.{js,jsx,ts,tsx,json}': 'prettier --write',
'**/*.{html,jsx,tsx}': 'markuplint --fix',
'**/*.{css,scss,sass}': 'stylelint --fix',
'**/*.{spec,test}.{js,jsx,ts,tsx}': 'jest -- --coverage',
};
12 changes: 11 additions & 1 deletion .markuplintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@
},
"specs": {
".[jt]sx$": "@markuplint/react-spec"
}
},
"rules": {
"ineffective-attr": false,
"no-hard-code-id": false,
"attr-duplication": false,
"invalid-attr": {
"options": {
"allowAttrs": ["transform", "gradientTransform"]
}
}
},
}
12 changes: 10 additions & 2 deletions .prettier.cjs → .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,22 @@ const config = {
printWidth: 120,
tabWidth: 2,
semi: true,
singleQuote: true,
jsxSingleQuote: false,
singleQuote: true,
bracketSameLine: true,
trailingComma: 'es5',
quoteProps: 'consistent',
bracketSpacing: true,
arrowParens: 'always',
plugins: [require('prettier-plugin-tailwindcss')],
plugins: ['prettier-plugin-tailwindcss'],
overrides: [
{
files: ['**/*.css', '**/*.scss', '**/*.html'],
options: {
singleQuote: false,
},
},
],
};

module.exports = config;
3 changes: 3 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const config: StorybookConfig = {
'@storybook/addon-essentials',
'@storybook/addon-onboarding',
'@storybook/addon-interactions',
'@storybook/addon-controls',
],
framework: {
name: '@storybook/nextjs',
Expand All @@ -16,11 +17,13 @@ const config: StorybookConfig = {
docs: {
autodocs: 'tag',
},
staticDirs: ['../public'],
webpackFinal: async (config) => {
config.resolve = config.resolve || {};
config.resolve.alias = {
...config.resolve?.alias,
'@': path.resolve(__dirname, '../src'),
'~': path.resolve(__dirname, '../public'),
};
return config;
},
Expand Down
2 changes: 1 addition & 1 deletion _templates/component/new/component.stories.tsx.ejs.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export default meta;

type Story = StoryObj<typeof <%= h.changeCase.pascal(component_name) %>>;

export const Standard: Story = {
export const Default: Story = {
render: () => <<%= h.changeCase.pascal(component_name) %> />,
};
1 change: 1 addition & 0 deletions _templates/component/new/component.test.tsx.ejs.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ to: <%= path %><%= h.changeCase.pascal(component_name) %>/<%= h.changeCase.pasca
---

import { render } from '@testing-library/react';
import '@testing-library/jest-dom';

import <%= h.changeCase.pascal(component_name) %> from './<%= h.changeCase.pascal(component_name) %>';

Expand Down
Loading
Loading