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

V4 #39

Open
wants to merge 82 commits into
base: main
Choose a base branch
from
Open

V4 #39

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
6183144
V4 - WIP
98mohitkumar Nov 9, 2024
05cf598
added more responsive font sizes
98mohitkumar Nov 9, 2024
fbe9115
update rating tag size
98mohitkumar Nov 10, 2024
a7a596c
updates
98mohitkumar Nov 10, 2024
508e89b
home page updates
98mohitkumar Nov 16, 2024
372514e
updated explore page
98mohitkumar Nov 16, 2024
feaed68
added one more breakpoint in genres carousel
98mohitkumar Nov 16, 2024
293122b
about page updates
98mohitkumar Nov 16, 2024
2d9d415
some fixes
98mohitkumar Nov 16, 2024
2b74910
fixed font-weight naming
98mohitkumar Nov 16, 2024
e204eeb
updated movie route
98mohitkumar Nov 16, 2024
4451818
updated tv and movie genre pages
98mohitkumar Nov 16, 2024
b0c3e03
updated font sizes
98mohitkumar Nov 16, 2024
110acae
updated typography
98mohitkumar Nov 16, 2024
1975ec1
adjusted weights
98mohitkumar Nov 17, 2024
daf6176
updated watch providers page
98mohitkumar Nov 17, 2024
33ba922
updated button config
98mohitkumar Nov 17, 2024
7d88ce2
fixed types
98mohitkumar Nov 17, 2024
aba8b5d
updated watch providers movies and tv pages
98mohitkumar Nov 17, 2024
9066abe
styling updates
98mohitkumar Nov 17, 2024
b6af374
updated hamburger nav menu transition
98mohitkumar Nov 17, 2024
ffad6fa
changed page loader
98mohitkumar Nov 17, 2024
5df36ec
css updates
98mohitkumar Nov 19, 2024
f97ba18
fixed margin
98mohitkumar Nov 19, 2024
f89b61d
updates
98mohitkumar Dec 23, 2024
d354d54
removed forward ref
98mohitkumar Dec 23, 2024
c713897
fixed deployment error
98mohitkumar Dec 23, 2024
5b8d909
fixed visual glitch
98mohitkumar Dec 23, 2024
a0d35df
updated error pages
98mohitkumar Dec 23, 2024
99e8dbd
updated network details page
98mohitkumar Dec 24, 2024
ed85792
updated lint fix command
98mohitkumar Dec 24, 2024
2f033de
updated login page
98mohitkumar Dec 24, 2024
fb3d313
fixed image path
98mohitkumar Dec 29, 2024
f731ab8
styling updates
98mohitkumar Dec 29, 2024
ad87176
updated search and keywords page
98mohitkumar Jan 12, 2025
e284e1e
bug fix
98mohitkumar Jan 12, 2025
30d9d55
spacing fix
98mohitkumar Jan 12, 2025
782697b
keywords page updates
98mohitkumar Jan 12, 2025
9dea472
dynamic collections page UI
98mohitkumar Jan 15, 2025
e6d8c23
updated loader
98mohitkumar Jan 17, 2025
2ea19af
styling updates
98mohitkumar Jan 17, 2025
a8256e0
refactored lists
98mohitkumar Jan 25, 2025
4b9f696
fixed spacing
98mohitkumar Jan 25, 2025
abdc3a1
feat list:fixes and updates
98mohitkumar Jan 26, 2025
971ad23
fixed list hero height
98mohitkumar Jan 26, 2025
86efeb8
updated person page
98mohitkumar Jan 29, 2025
729086a
added vaul drawer
98mohitkumar Jan 29, 2025
7b6fe02
fixed image paths
98mohitkumar Jan 29, 2025
c93fa55
mobile filter updates
98mohitkumar Jan 30, 2025
6899504
updated throttle timeout
98mohitkumar Jan 30, 2025
f6dc952
updated image size
98mohitkumar Jan 30, 2025
7aeabf7
file extension changes
98mohitkumar Jan 30, 2025
0af1d9c
simplified media grid
98mohitkumar Jan 30, 2025
404ad85
bug fix
98mohitkumar Jan 30, 2025
17fb96d
removed commented lines
98mohitkumar Jan 30, 2025
e6fc3bf
fixed overflow bug
98mohitkumar Feb 1, 2025
a1cdbc4
updates
98mohitkumar Feb 2, 2025
2a1be4c
removed console logging
98mohitkumar Feb 2, 2025
26a7347
updates
98mohitkumar Feb 6, 2025
bcb3e62
font weight updates
98mohitkumar Feb 6, 2025
dae693e
spacing fix
98mohitkumar Feb 7, 2025
fe27c13
added logging
98mohitkumar Feb 8, 2025
75c768a
updated robots.txt
98mohitkumar Feb 8, 2025
0e1db51
updated sitemap.xml
98mohitkumar Feb 8, 2025
919ab33
enabled logging only in prod
98mohitkumar Feb 8, 2025
a5b728b
bug fixes
98mohitkumar Feb 8, 2025
ccf2330
fixed list accessing bug
98mohitkumar Feb 8, 2025
3f7dc87
fixes and updates
98mohitkumar Feb 11, 2025
23e4619
fixes
98mohitkumar Feb 12, 2025
e0d3c93
updated palceholder
98mohitkumar Feb 13, 2025
8bc9905
user context update
98mohitkumar Feb 13, 2025
e65e8ba
updated tv episode page design
98mohitkumar Feb 19, 2025
8290da9
removed console log
98mohitkumar Feb 20, 2025
0f24ea8
fixes
98mohitkumar Feb 20, 2025
470cef6
updated tv pages
98mohitkumar Feb 21, 2025
cbe9112
cleanup
98mohitkumar Feb 21, 2025
e3e2091
updated manifest
98mohitkumar Feb 21, 2025
2432395
updated pwa config
98mohitkumar Feb 21, 2025
8f6870c
added webpack
98mohitkumar Feb 21, 2025
307185c
pwa config updates
98mohitkumar Feb 21, 2025
d36443c
PWA config fix
98mohitkumar Feb 21, 2025
c3008a6
pwa updates
98mohitkumar Feb 22, 2025
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
5 changes: 1 addition & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
NEXT_PUBLIC_API_KEY =

API_KEY =
NEXT_PUBLIC_READ_ACCESS_TOKEN =

NEXTAUTH_SECRET =
NEXT_PUBLIC_MS_CLARITY_TAG =

NEXTAUTH_URL="http://localhost:3000"
30 changes: 19 additions & 11 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
{
"extends": "next/core-web-vitals",
"extends": ["next/core-web-vitals", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"env": {
"browser": true,
"es2021": true,
"node": true
},
"rules": {
"no-unused-vars": "error",
"no-undef": "error",
"@typescript-eslint/no-unused-vars": "error",
"no-duplicate-imports": "error",
"import/order": [
"error",
{
"groups": ["builtin", "external", "parent", "sibling", "index"],
"groups": ["type", "builtin", "external", "internal", "parent", "sibling", "index"],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
},
"newlines-between": "always"
}
]
}
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"rules": {
"no-undef": "error" // Apply this rule only to JS/JSX files
}
}
]
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ yarn-error.log*

# vercel
.vercel

# pwa
public/sw.js
public/workbox-*.js
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.9.0
20.14.0
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.next
/*-lock.*
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"jsxSingleQuote": true,
"bracketSameLine": true,
"bracketSpacing": true,
"trailingComma": "none",
"printWidth": 150
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

## Previews

![](/public/Images/ShowCase.webp)
![](/public/images/ShowCase.webp)
17 changes: 0 additions & 17 deletions jsconfig.json

This file was deleted.

5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
18 changes: 12 additions & 6 deletions next.config.js → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
const withPWA = require("next-pwa")({
import { NextConfig } from "next";

/* eslint-disable @typescript-eslint/no-var-requires */
const withPWA = require("@ducanh2912/next-pwa").default({
dest: "public",
reloadOnOnline: true,
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development"
workboxOptions: {
disableDevLogs: true,
exclude: [/dynamic-css-manifest\.json$/]
}
});

const cspHeader = `
default-src *;
script-src 'self' 'unsafe-eval' 'unsafe-inline' https://www.clarity.ms/;
default-src * 'unsafe-inline' 'unsafe-eval' data: blob:;
script-src * 'unsafe-inline' 'unsafe-eval' data: blob:;
style-src 'self' 'unsafe-inline';
img-src * data:;
font-src 'self' data:;
Expand All @@ -19,7 +25,7 @@ const cspHeader = `
upgrade-insecure-requests;
`;

const nextConfig = {
const nextConfig: NextConfig = {
async headers() {
return [
{
Expand Down
49 changes: 36 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,52 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint-fix": "eslint --fix --ext .js,.jsx ."
"lint": "next lint && prettier --check .",
"lint-fix": "eslint --fix --ext .js,.jsx,.ts,.tsx . && prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,md}\""
},
"dependencies": {
"@ducanh2912/next-pwa": "^10.2.9",
"@radix-ui/react-popover": "^1.1.5",
"@radix-ui/react-select": "^2.1.2",
"@suyalcinkaya/gauge": "^0.1.0",
"clsx": "^2.1.1",
"extract-colors": "^4.0.2",
"framer-motion": "10.12.2",
"hex-to-rgba": "^2.0.1",
"jotai": "^2.9.0",
"next": "^14.2.3",
"keen-slider": "^6.8.6",
"logrocket": "^9.0.2",
"lucide-react": "^0.454.0",
"motion": "^11.14.4",
"next": "^15.1.0",
"next-auth": "^4.20.1",
"next-pwa": "^5.5.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"next-navigation-guard": "^0.1.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-icons": "^4.12.0",
"react-markdown": "^8.0.3",
"rehype-raw": "^7.0.0",
"styled-components": "^6.1.8"
"sonner": "^1.7.2",
"styled-components": "^6.1.8",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"throttle-debounce": "^5.0.2",
"typescript": "5.3.3",
"vaul": "^1.1.2"
},
"devDependencies": {
"autoprefixer": "^10.4.16",
"eslint": "8.4.1",
"eslint-config-next": "^14.2.3",
"postcss": "^8.4.32",
"tailwindcss": "^3.4.3"
"@types/node": "20.11.16",
"@types/react": "18.2.53",
"@types/react-dom": "18.2.18",
"@types/throttle-debounce": "^5.0.2",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"autoprefixer": "^10.4.20",
"eslint": "8.56.0",
"eslint-config-next": "14.2.3",
"postcss": "^8.4.49",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.3",
"tailwindcss": "^3.4.15",
"webpack": "^5.98.0"
}
}
6 changes: 3 additions & 3 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
autoprefixer: {}
}
};
Binary file modified public/Images/profileBG.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/Images/transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/DefaultAvatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/DefaultBackdrop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/DefaultImage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/Hex.webp
Binary file not shown.
Binary file added public/images/ShowCase.webp
Binary file not shown.
Binary file added public/images/lightsIn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/lightsOut.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/posters.webp
Binary file not shown.
Binary file added public/images/profileBG.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/watch-providers.webp
Binary file not shown.
6 changes: 4 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "Cinephiled",
"short_name": "Cinephiled",
"description": "Cinephiled - A progressive web app (PWA) to preview any movie or tv show with reviews, ratings, description and posters. Acting as a TMDB client, Cinephiled gives you access to login into your TMDB account and add movies or tv shows to your watchlist, set as favorites, rate and get personalized recommendations.",
"theme_color": "#121212",
"background_color": "#121212",
"display": "standalone",
"orientation": "portrait",
"scope": "/",
"start_url": "/",

"icons": [
{
"src": "maskable.png",
Expand All @@ -18,5 +19,6 @@
{ "src": "logo256.png", "sizes": "256x256", "type": "image/png" },
{ "src": "logo384.png", "sizes": "384x384", "type": "image/png" },
{ "src": "logo512.png", "sizes": "512x512", "type": "image/png" }
]
],
"categories": ["entertainment", "movies"]
}
2 changes: 1 addition & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ User-agent: *
Disallow: /movies/
Disallow: /tv/
Disallow: /person/
Disallow: /collections/
Disallow: /*.jpg$
Disallow: /*.jpeg$
Disallow: /*.png$
Expand All @@ -11,7 +12,6 @@ Disallow: /*.webp$
Disallow: /*.svg$
Disallow: /en/
Disallow: /m/
Disallow: /collection/

# Allow these images
Allow: /logo192.png
Expand Down
Loading