Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
5a5cfed
Initial commit
Quiddlee Oct 24, 2023
fe56cc0
init: start react-components task 🥑
Quiddlee Oct 24, 2023
b8703d4
chore: remove unused config file
Quiddlee Oct 24, 2023
923d4ad
feat: create folder structure
Quiddlee Oct 25, 2023
7f69287
chore: change eslint rule
Quiddlee Oct 25, 2023
12ba362
chore: change default font
Quiddlee Oct 25, 2023
94aa462
feat: add initial design
Quiddlee Oct 25, 2023
3f5db17
feat: add search input ui
Quiddlee Oct 25, 2023
426ed6a
refactor: encapsulate background into separate component
Quiddlee Oct 25, 2023
45062df
feat: add search input interactivity
Quiddlee Oct 25, 2023
90a35cf
chore: adjust eslint rule
Quiddlee Oct 25, 2023
590ddba
feat: implement search feature
Quiddlee Oct 25, 2023
a0c5dfd
refactor: change search interaction ui
Quiddlee Oct 25, 2023
c0833ce
refactor: change background
Quiddlee Oct 26, 2023
f0cc2c0
feat: add product card ui
Quiddlee Oct 26, 2023
be56fc9
fix: layout
Quiddlee Oct 26, 2023
d094bb4
feat: implement getting movie list
Quiddlee Oct 26, 2023
20d774d
chore: disable eslint rule
Quiddlee Oct 26, 2023
49361d9
feat: add fetching movie details
Quiddlee Oct 26, 2023
84679c9
chore: change dev script
Quiddlee Oct 26, 2023
8b4ff55
fix: add movie fallback image
Quiddlee Oct 26, 2023
ff93543
fix: layout issues
Quiddlee Oct 26, 2023
4961280
feat: add total results & ui improvements
Quiddlee Oct 26, 2023
e8741ce
fix: app adaptive
Quiddlee Oct 26, 2023
db87ed4
fix: header adaptive
Quiddlee Oct 27, 2023
c5af741
fix: app adaptive
Quiddlee Oct 27, 2023
2db829b
refactor: rename interfaces
Quiddlee Oct 27, 2023
79e9db0
refactor: change movie card ui
Quiddlee Oct 27, 2023
464be65
feat: add loading state
Quiddlee Oct 27, 2023
b15bad0
feat: add error boundary & not found component
Quiddlee Oct 27, 2023
5ead68c
refactor: change to handle fetch logic in context
Quiddlee Oct 27, 2023
4884194
refactor: change not found animation
Quiddlee Oct 27, 2023
09cf55c
feat: implement to store query in local storage
Quiddlee Oct 27, 2023
ed1be69
refactor: adjust search component
Quiddlee Oct 27, 2023
856586d
feat: add nice movie hover effect
Quiddlee Oct 27, 2023
bfa9110
chore: adjust eslint rule
Quiddlee Oct 27, 2023
0f8525a
feat: add nice not found hover effect
Quiddlee Oct 27, 2023
cdfab7f
refactor: adjust ui
Quiddlee Oct 27, 2023
4e07c64
feat: add logo emoji
Quiddlee Oct 27, 2023
9024fdd
feat: change app title
Quiddlee Oct 27, 2023
1a4448b
feat: minor ui improvements
Quiddlee Oct 27, 2023
89ddcfc
fix: to cut trailing spaces
Quiddlee Oct 27, 2023
4465b01
feat: add springish animation
Quiddlee Oct 27, 2023
322c5ae
refactor: move all loading logic to spinner
Quiddlee Oct 27, 2023
9100d3e
refactor: change hover color
Quiddlee Oct 27, 2023
2d2bdad
feat: ui improvements
Quiddlee Oct 28, 2023
78225dd
Merge branch 'main' of https://github.com/Quiddlee/react-components i…
Quiddlee Oct 28, 2023
594182b
feat: add search icon
Quiddlee Oct 28, 2023
3ecbc85
refactor: change layout to component composition style
Quiddlee Oct 28, 2023
2548eb9
refactor: change fall query to "all"
Quiddlee Oct 28, 2023
66c12dc
feat: add logo animation
Quiddlee Oct 28, 2023
ce11582
refactor: change logo font
Quiddlee Oct 29, 2023
49bfd62
refactor: improve app ui
Quiddlee Oct 29, 2023
33fa8a3
feat: add keys to handle search
Quiddlee Oct 29, 2023
ab0cc5f
feat: blur input by pressing escape
Quiddlee Oct 29, 2023
fb487eb
feat: blur input by pressing escape
Quiddlee Oct 29, 2023
54ea534
refactor: change header paddings
Quiddlee Oct 29, 2023
9b0feab
refactor: encapsulate radial hover in separate function
Quiddlee Oct 29, 2023
7770a52
refactor: add readable types
Quiddlee Oct 29, 2023
500c38c
chore: add custom scroll library
Quiddlee Oct 29, 2023
e452955
feat: add nice scroll bar
Quiddlee Oct 29, 2023
81d5d75
feat: add initial animation
Quiddlee Oct 29, 2023
18a429a
fix: header blur
Quiddlee Oct 29, 2023
3e995d0
refactor: change initial load animation
Quiddlee Oct 29, 2023
23b7ee2
feat: add error boundary fall back ui test
Quiddlee Oct 29, 2023
f835fe7
fix: adaptive issues
Quiddlee Oct 29, 2023
a87deb5
chore: add locomotive scroll
Quiddlee Oct 29, 2023
3a39db1
feat: add smooth scroll
Quiddlee Oct 29, 2023
c2e0f21
refactor: change logo animation timings
Quiddlee Oct 29, 2023
9ec3c24
chore: add base path
Quiddlee Oct 29, 2023
e15911a
refactor: move inline style to render
Quiddlee Oct 30, 2023
62990da
refactor: remove magic string
Quiddlee Oct 30, 2023
e97e9ae
fix: log error information in console
Quiddlee Oct 30, 2023
6e3a50e
refactor: change app component to functional
Quiddlee Oct 30, 2023
e83a91d
refactor: change main layout component to functional
Quiddlee Oct 30, 2023
7964e01
chore: change eslint config to fit function components
Quiddlee Oct 30, 2023
31e0855
refactor: change Search provider to functional components
Quiddlee Oct 30, 2023
883dae9
refactor: change spinner to functional components
Quiddlee Oct 30, 2023
da7bdb0
refactor: change gradient background to functional components
Quiddlee Oct 30, 2023
88627c9
refactor: change header to functional components
Quiddlee Oct 30, 2023
0c18ae5
refactor: change logo to functional components
Quiddlee Oct 30, 2023
f737f49
refactor: change search to functional components
Quiddlee Oct 30, 2023
ab6e9b8
refactor: change button to functional components
Quiddlee Oct 30, 2023
26c25cf
chore: disable unnecessary eslint rules
Quiddlee Oct 30, 2023
1db1e40
refactor: change total results to functional component
Quiddlee Oct 30, 2023
e67b3df
refactor: change main to functional component
Quiddlee Oct 30, 2023
c726d5d
refactor: change movie list to functional component
Quiddlee Oct 30, 2023
798c0bf
refactor: change movie to functional component
Quiddlee Oct 30, 2023
66732ee
refactor: change fallbackUi to functional component
Quiddlee Oct 30, 2023
8c93ea2
refactor: change modal to functional component
Quiddlee Oct 30, 2023
d49f509
fix: eslint errors
Quiddlee Oct 30, 2023
da1cbed
refactor: change not found to functional component
Quiddlee Oct 30, 2023
9f93d36
chore: disable unnecessary eslint rule
Quiddlee Oct 30, 2023
b6ab88a
refactor: change custom scroll
Quiddlee Oct 30, 2023
e676ee0
refactor: abstract useEffects into separate hooks
Quiddlee Oct 31, 2023
c7705f8
refactor: make gradient background more brighter
Quiddlee Oct 31, 2023
2a304d9
refactor: app small adjustments
Quiddlee Oct 31, 2023
29e8f4d
refactor: remove error button
Quiddlee Oct 31, 2023
fbed253
chore: add react router
Quiddlee Oct 31, 2023
3ecbe68
feat: add pagination
Quiddlee Oct 31, 2023
b12f692
feat: change pagination ui
Quiddlee Nov 1, 2023
74cabd5
refactor: pagination button click timing
Quiddlee Nov 1, 2023
dbe99eb
feat: implement scroll to top on list change
Quiddlee Nov 2, 2023
2f1e387
refactor: encapsulate scroll top into separate hook
Quiddlee Nov 2, 2023
96d9cdc
fix: adaptive issues
Quiddlee Nov 2, 2023
01c8192
refactor: minor changes
Quiddlee Nov 2, 2023
a3efa80
refactor: change scroll container
Quiddlee Nov 2, 2023
744bd50
feat: add movie details
Quiddlee Nov 2, 2023
37f8b5c
refactor: encapsulate fetching movie details
Quiddlee Nov 2, 2023
c09c591
refactor: encapsulate radial hover in separate hook
Quiddlee Nov 2, 2023
89f887e
refactor: change use scroll hook api
Quiddlee Nov 2, 2023
b4d53d7
refactor: change to not show pagination on empty list
Quiddlee Nov 2, 2023
b810541
feat: app improvements
Quiddlee Nov 2, 2023
a47228e
refactor: remove unused code
Quiddlee Nov 3, 2023
1352033
fix: not to show 0 minutes
Quiddlee Nov 3, 2023
668ae6e
refactor: encapsulate reactive pagination logic into separate hook
Quiddlee Nov 3, 2023
622fe0b
refactor: rename layout component
Quiddlee Nov 3, 2023
440d02f
refactor: change router to outlet
Quiddlee Nov 3, 2023
428a95f
refactor: remove unused code
Quiddlee Nov 3, 2023
5045313
fix: loading state
Quiddlee Nov 3, 2023
2865ced
refactor: rename loader component
Quiddlee Nov 3, 2023
be2e46f
refactor: remove unused code
Quiddlee Nov 3, 2023
71fd4da
feat: implement title change on movie click
Quiddlee Nov 3, 2023
51ed822
feat: add nice tooltip
Quiddlee Nov 3, 2023
2af1b2a
fix: layout issues
Quiddlee Nov 3, 2023
7b01789
feat: add back button
Quiddlee Nov 3, 2023
922ff15
feat: minor app improvements
Quiddlee Nov 3, 2023
496a44f
feat: improve tooltip
Quiddlee Nov 4, 2023
ddbde57
refactor: change animation timings
Quiddlee Nov 4, 2023
60a6889
feat: add num of items per page tabs
Quiddlee Nov 4, 2023
e382d35
refactor: encapsulate reactive logic in separate hook
Quiddlee Nov 4, 2023
a460458
refactor: minor app improvements
Quiddlee Nov 4, 2023
46bbd16
refactor: encapsulate all the movie details logic into useMovie hook
Quiddlee Nov 4, 2023
eb2903f
feat: improve responsive design
Quiddlee Nov 4, 2023
9f0ff51
fix: scroll issues
Quiddlee Nov 4, 2023
3f670ac
refactor: code clean up
Quiddlee Nov 4, 2023
4a749e8
refactor: encapsulate some logic into separate hooks
Quiddlee Nov 4, 2023
49c7d86
fix: layout issue
Quiddlee Nov 4, 2023
4f50d34
feat: scroll improvements
Quiddlee Nov 5, 2023
728b425
refactor: remove unused code
Quiddlee Nov 5, 2023
8977575
feat: add number of pages indicator
Quiddlee Nov 5, 2023
73421b0
refactor: minor improvements
Quiddlee Nov 5, 2023
d9fccf3
refactor: change browser router to hash
Quiddlee Nov 5, 2023
dc2e67e
fix: loading issues
Quiddlee Nov 5, 2023
8203185
fix: query fallback
Quiddlee Nov 5, 2023
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
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
86 changes: 86 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'airbnb',
'airbnb-typescript',
'airbnb/hooks',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'prettier',
],
ignorePatterns: ['dist', '.eslintrc.cjs', 'vite.config.ts', 'prettier.config.js', '@typescript-eslint', 'node_modules', 'tailwind.config.js'],
plugins: ['react', 'react-refresh', 'simple-import-sort', 'import', 'prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
project: ['tsconfig.json'],
tsconfigRootDir: __dirname,
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'prefer-arrow-callback': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-noninteractive-element-interactions': 0,
'react/jsx-props-no-spreading': 0,
'react/require-default-props': 0,
'react/react-in-jsx-scope': 0,
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'no-void': 0,
'no-param-reassign': 0,
'import/no-extraneous-dependencies': 0,
'import/extensions': [
'error',
'ignorePackages',
{
'ts': 'always',
'tsx': 'always'
}
],
'import/namespace': 0,
'sort-imports': ['error', {ignoreCase: true, ignoreDeclarationSort: true}],
'import/order': [
'error',
{
groups: [
['external', 'builtin'],
'internal',
['sibling', 'parent'],
'index',
],
pathGroups: [
{
pattern: '@(react|react-native)',
group: 'external',
position: 'before',
},
{
pattern: '@src/**',
group: 'internal',
},
],
pathGroupsExcludedImportTypes: ['internal', 'react'],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
},
],
},
settings: {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
react: {
version: 'detect',
},
},
},
};
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run precommit
4 changes: 4 additions & 0 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
"./src/**/*.{tsx,ts}": "pnpm lint",
"./src/**/*.{tsx,ts,html,css}": "pnpm format",
}
22 changes: 22 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍿️</text></svg>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Quicksand:wght@700&display=swap"
rel="stylesheet" />

<title>Cinemania | Dive into Movie Wonderland</title>
</head>
<body class="overflow-hidden">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading