Skip to content

Commit

Permalink
chore(deps): update package to their latest
Browse files Browse the repository at this point in the history
  • Loading branch information
faouziMohamed committed Nov 15, 2023
1 parent dddd09d commit 6345a2f
Show file tree
Hide file tree
Showing 7 changed files with 792 additions and 655 deletions.
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@
"container:build": "docker build -t mfaouzi.com ."
},
"dependencies": {
"@chakra-ui/next-js": "^2.1.5",
"@chakra-ui/react": "^2.8.1",
"@chakra-ui/styled-system": "^2.9.1",
"@chakra-ui/next-js": "^2.2.0",
"@chakra-ui/react": "^2.8.2",
"@chakra-ui/styled-system": "^2.9.2",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"apexcharts": "^3.43.2-0",
"eslint-config-next": "^13.5.4",
"framer-motion": "^10.16.4",
"next": "13.5.4",
"next-auth": "^4.23.2",
"apexcharts": "^3.44.0",
"eslint-config-next": "^14.0.2",
"framer-motion": "^10.16.5",
"next": "14.0.2",
"next-auth": "^4.24.5",
"next-secure-headers": "^2.2.0",
"next-sitemap": "^4.2.3",
"numeral": "^2.0.6",
"react": "18.2.0",
"react-apexcharts": "^1.4.1",
"react-dom": "18.2.0",
"react-dropzone": "^14.2.3",
"react-hook-form": "^7.47.0",
"react-icons": "^4.11.0",
"react-hook-form": "^7.48.2",
"react-icons": "^4.12.0",
"react-stomp": "^5.1.0",
"sharp": "^0.32.6",
"sockjs": "^0.3.24",
Expand All @@ -52,34 +52,34 @@
"swr": "^2.2.4"
},
"devDependencies": {
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@next/env": "^13.5.4",
"@commitlint/cli": "^18.4.1",
"@commitlint/config-conventional": "^18.4.0",
"@next/env": "^14.0.2",
"@svgr/webpack": "^8.1.0",
"@types/node": "20.8.6",
"@types/numeral": "^2.0.3",
"@types/react": "18.2.28",
"@types/react-dom": "18.2.13",
"@types/sockjs-client": "^1.5.2",
"@types/stompjs": "^2.3.6",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"eslint": "^8.51.0",
"@types/node": "20.9.0",
"@types/numeral": "^2.0.5",
"@types/react": "18.2.37",
"@types/react-dom": "18.2.15",
"@types/sockjs-client": "^1.5.4",
"@types/stompjs": "^2.3.8",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"eslint": "^8.53.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unicorn": "^48.0.1",
"eslint-plugin-unicorn": "^49.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"prettier": "^3.0.3",
"sass": "^1.69.3",
"prettier": "^3.1.0",
"sass": "^1.69.5",
"standard-version": "^9.5.0",
"typescript": "5.2.2"
},
Expand Down
1 change: 1 addition & 0 deletions src/app/(app)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import NextAuthSessionProvider, {
import { SidebarContextProvider } from '@/Components/react-contexts/SidebarContextProvider';
import { fontsVariables } from '@/styles/fonts';

export { viewport } from '@/lib/seo.utils';
export const metadata: Metadata = {
...defaultMetadata,
};
Expand Down
1 change: 1 addition & 0 deletions src/app/(landing_page)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { ChakraProviders } from '@/Components/react-contexts/ChakraProviders';
import NextAuthSessionProvider from '@/Components/react-contexts/NextAuthProvider';
import { fontsVariables } from '@/styles/fonts';

export { viewport } from '@/lib/seo.utils';
export { metadata } from '@/lib/seo.utils';
export default function RootLayout({ children }: { children: ReactNode }) {
return (
Expand Down
11 changes: 7 additions & 4 deletions src/lib/seo.utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Metadata } from 'next';
import { Metadata, Viewport } from 'next';

import { SITE_URL } from '@/lib/client-route';

import { appCcolors } from '@/styles/theme-config';

export const seoTemplate = {
title: 'Code du bourse AMCI | Association des Comoriens Étudiant au Maroc',
description:
Expand Down Expand Up @@ -29,15 +31,16 @@ export const seoTemplate = {
'maroc',
].join(', '),
};

export const viewport: Viewport = {
themeColor: appCcolors.primary.main,
colorScheme: 'light',
};
export const metadata: Metadata = {
title: 'Bourse AMCI | Association des Comoriens Étudiant au Maroc',
applicationName: seoTemplate.siteName,
referrer: 'origin-when-cross-origin',
authors: [{ name: 'Faouzi Mohamed' }],
metadataBase: new URL(SITE_URL),
colorScheme: 'light',
themeColor: '#005A87',
description: 'Bourse AMCI | Association des Comoriens Étudiant au Maroc',
keywords: seoTemplate.keywords,
category: 'Education',
Expand Down
51 changes: 51 additions & 0 deletions src/styles/theme-config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
export const breakpoints = {
xs: '20rem', // 320px
xxs: '23.375rem', // 375px
sm: '30rem', // 480px
xsm: '30.313rem', // 485px
// "529px": '33.063rem', // 529px
sidebar: '34.25rem', // 548px
md: '48rem', // 768px
xmd: '52rem', // 832px
// xmd: '53.563rem', // 847px
lg: '62rem', // 992px
xlg: '68.75rem', // 1104px
xl: '80rem', // 1280px
'2xl': '96rem', // 1536px
};
export const appCcolors = {
primary: {
main: '#005A87',
light: '#0077B5',
dark: '#03283a',
semiDark: 'rgba(35,77,98,0.31)',
500: '#034667',
400: '#0077B5',
300: '#0096E0',
200: '#00B5FF',
100: '#B3E5FC',
50: '#E1F5FE',
},
secondary: {
main: '#017401',
light: '#019B03',
dark: '#014C00',
500: '#017401',
400: '#019B03',
300: '#01C305',
200: '#01E906',
100: '#B3F9C4',
50: '#E1FCEA',
},
danger: {
main: '#f50055',
light: '#ff4081',
dark: '#720025',
500: '#8d0751',
400: '#a80039',
300: '#d5006b',
200: '#fc1e97',
100: '#ffc4e0',
50: '#ffeef0',
},
};
56 changes: 2 additions & 54 deletions src/styles/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,59 +7,7 @@ import {
roboto,
ropaSans,
} from '@/styles/fonts';

const breakpoints = {
xs: '20rem', // 320px
xxs: '23.375rem', // 375px
sm: '30rem', // 480px
xsm: '30.313rem', // 485px
// "529px": '33.063rem', // 529px
sidebar: '34.25rem', // 548px
md: '48rem', // 768px
xmd: '52rem', // 832px
// xmd: '53.563rem', // 847px
lg: '62rem', // 992px
xlg: '68.75rem', // 1104px
xl: '80rem', // 1280px
'2xl': '96rem', // 1536px
};

const colors = {
primary: {
main: '#005A87',
light: '#0077B5',
dark: '#03283a',
semiDark: 'rgba(35,77,98,0.31)',
500: '#034667',
400: '#0077B5',
300: '#0096E0',
200: '#00B5FF',
100: '#B3E5FC',
50: '#E1F5FE',
},
secondary: {
main: '#017401',
light: '#019B03',
dark: '#014C00',
500: '#017401',
400: '#019B03',
300: '#01C305',
200: '#01E906',
100: '#B3F9C4',
50: '#E1FCEA',
},
danger: {
main: '#f50055',
light: '#ff4081',
dark: '#720025',
500: '#8d0751',
400: '#a80039',
300: '#d5006b',
200: '#fc1e97',
100: '#ffc4e0',
50: '#ffeef0',
},
};
import { appCcolors, breakpoints } from '@/styles/theme-config';

const styles = {
global: {
Expand All @@ -71,7 +19,7 @@ const styles = {

const theme = {
breakpoints,
colors,
colors: appCcolors,
styles,
fonts: {
ropaSans,
Expand Down
Loading

1 comment on commit 6345a2f

@vercel
Copy link

@vercel vercel bot commented on 6345a2f Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.