Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
65 changes: 0 additions & 65 deletions next-seo.config.ts

This file was deleted.

65 changes: 31 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,56 @@
{
"private": true,
"scripts": {
"build": "next build",
"dev": "next",
"build": "next build --webpack",
"dev": "next dev --webpack",
"format": "npx prettier --write . --ignore-path .gitignore",
"lint": "next lint -- --ignore-path .gitignore",
"lint:fix": "npm run format && npm run lint -- --fix",
"start": "next start",
"type-check": "tsc --noEmit"
},
"dependencies": {
"@heroicons/react": "2.1.3",
"@nextui-org/react": "2.2.10",
"@portabletext/react": "3.0.15",
"@sanity/client": "6.15.7",
"@sanity/code-input": "4.1.3",
"@sanity/document-internationalization": "2.1.0",
"@heroicons/react": "2.2.0",
"@heroui/react": "^2.8.5",
"@portabletext/react": "6.0.0",
"@sanity/client": "7.13.1",
"@sanity/code-input": "6.0.3",
"@sanity/document-internationalization": "4.1.0",
"@sanity/image-url": "1",
"@sanity/preview-url-secret": "1.6.5",
"@sanity/preview-url-secret": "3.0.0",
"@sanity/vision": "3",
"@sanity/webhook": "4.0.3",
"@tailwindcss/typography": "0.5.12",
"axios": "^1.8.4",
"framer-motion": "11.0.24",
"@sanity/webhook": "4.0.4",
"@tailwindcss/postcss": "^4.1.17",
"@tailwindcss/typography": "0.5.19",
"axios": "^1.13.2",
"framer-motion": "12.23.26",
"lottie-react": "^2.4.1",
"next": "14.2.26",
"next-intl": "^3.26.3",
"next-plausible": "3.12.0",
"next-sanity": "8.5.0",
"next-seo": "6.5.0",
"next-themes": "0.3.0",
"ngrok": "^5.0.0-beta.2",
"nodemailer": "^6.9.14",
"react": "18.2.0",
"next": "^16.0.8",
"next-intl": "^4.5.8",
"next-plausible": "3.12.5",
"next-sanity": "11.6.10",
"nodemailer": "^7.0.11",
"react": "^19.2.1",
"react-countup": "^6.5.3",
"react-dom": "18.2.0",
"react-refractor": "2.1.7",
"react-visibility-sensor": "^5.1.1",
"sanity": "^3.85.1",
"sanity-plugin-iframe-pane": "3.1.6",
"react-dom": "^19.2.1",
"react-intersection-observer": "^10.0.0",
"sanity": "^4.21.0",
"sanity-plugin-iframe-pane": "4.0.0",
"styled-components": "6"
},
"devDependencies": {
"@types/react": "18.2.73",
"@types/refractor": "3.4.1",
"autoprefixer": "10.4.19",
"eslint": "8.57.0",
"eslint-config-next": "14.1.4",
"eslint-plugin-simple-import-sort": "12.0.0",
"eslint": "^9.39.1",
"eslint-config-next": "^16.0.8",
"eslint-plugin-simple-import-sort": "12.1.1",
"postcss": "8.4.38",
"prettier": "3.2.5",
"prettier-plugin-packagejson": "2.4.14",
"prettier-plugin-tailwindcss": "0.5.13",
"prettier": "3.7.4",
"prettier-plugin-packagejson": "2.5.20",
"prettier-plugin-tailwindcss": "0.7.2",
"tailwindcss": "3.4.3",
"typescript": "5.4.3"
"typescript": "5.9.3"
},
"engines": {
"node": ">=20"
Expand Down
2 changes: 1 addition & 1 deletion src/app/event/[...slug]/client-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { CalendarIcon } from '~/components/svg-components/CalendarIcon'
import { formatDateTime } from '~/utils/format-date-time'
import { LocationIcon } from '~/components/svg-components/LocationIcon'
import { LecturerIcon } from '~/components/svg-components/LecturerIcon'
import { Button } from '@nextui-org/react'
import { Button } from "@heroui/react"
import React, { useState } from 'react'
import { EventActivitySate, EventFull } from '~/lib/sanity.types'
import { getLocalizedText } from '~/utils/getLocalizedText'
Expand Down
18 changes: 6 additions & 12 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import '~/styles/global.css'
import '~/styles/prism-okaidia.css'
import { Montserrat } from 'next/font/google';

import { NextIntlClientProvider } from 'next-intl'
import { getLocale, getMessages } from 'next-intl/server'
import { ThemeProvider } from 'next-themes'

import {getLocale, getMessages} from "next-intl/server";
import {NextIntlClientProvider} from "next-intl";

const montserrat = Montserrat({
weight: '500',
Expand All @@ -22,17 +22,11 @@ export default async function RootLayout( { children }: {
const messages = await getMessages();

return (
<html lang={locale} className={montserrat.className}>
<body>
<html lang={locale}>
<body className={montserrat.variable}>
<main>
<NextIntlClientProvider messages={messages}>
<ThemeProvider
themes={['dark', 'light']}
attribute="class"
defaultTheme="dark"
>
{children}
</ThemeProvider>
{children}
</NextIntlClientProvider>
</main>
</body>
Expand Down
4 changes: 3 additions & 1 deletion src/components/SocialIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Button, Link } from '@nextui-org/react'

import { SVGProps } from 'react'
import { Button } from "@heroui/button";
import Link from "next/link";


interface SocialIcon {
Expand Down
2 changes: 1 addition & 1 deletion src/components/carousel-components/MultiCarousel.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback, useEffect, useState } from 'react'
import { Button } from '@nextui-org/react'
import { Button } from "@heroui/react"
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/24/solid'

interface Props {
Expand Down
4 changes: 2 additions & 2 deletions src/components/navbar/NavbarSitewide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Route } from '~/utils/routes'

import { useTranslations } from 'next-intl'
import NextLink from 'next/link'
import { Button } from '@nextui-org/react'
import { Button } from "@heroui/react"
import { HamburgerIcon } from '~/components/svg-components/HamburgerIcon'
import { CloseMenuIcon } from '~/components/svg-components/CloseMenuIcon'
import { ContactPopUp } from '~/components/pop-up-components/contact/ContactPopUp'
Expand Down Expand Up @@ -45,7 +45,7 @@ export const NavbarSitewide: FC<PropsWithChildren<Props>> = ({ routes }) => {
const t = useTranslations('common')

const switchLocale = async () => {
const locale = await getUserLocale() === 'en' ? 'hu' : 'en';
const locale = (await getUserLocale()) === 'en' ? 'hu' : 'en';
startTransition(() => {
setUserLocale(locale);
});
Expand Down
33 changes: 14 additions & 19 deletions src/components/partners-components/PartnersCounter.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
import { FC, useState } from 'react'
'use client'

import { FC } from 'react'
import CountUp from 'react-countup'
import VisibilitySensor from 'react-visibility-sensor'
import {useInView} from "react-intersection-observer";

interface Props {
title: string
length: number
}

export const PartnersCounter: FC<Props> = ({ title, length }: Props) => {
const [counted, setCounted] = useState(false)
const { ref, inView } = useInView({
triggerOnce: true,
threshold: 0.8,
});

return (
<h1 className="text-center text-4xl pt-2 pb-5">
{title}:
<CountUp start={0} end={length}>
{({ countUpRef, start }) => (
<VisibilitySensor
onChange={(isVisible: boolean) => {
if (!counted && isVisible) {
setCounted(true)
start()
}
}}
>
<span ref={countUpRef} />
</VisibilitySensor>
)}
</CountUp>
<h1 ref={ref} className="text-center text-4xl pt-2 pb-5">
{title}: {inView ? (
<CountUp start={0} end={length}/>
) : (
0
)}
</h1>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { ChangeEvent, useEffect } from 'react'
import { ContactFieldsValidity } from '~/utils/form-validation'
import { useTranslations } from 'next-intl'
import { ContactSubmissionIndicator } from '~/components/pop-up-components/ContactSubmissionIndicator'
import { CircularProgress } from '@nextui-org/progress'
import { CircularProgress } from "@heroui/progress"
import { useContactForm } from '~/lib/hooks/useContactFrom'

export interface ModalFormProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { ChangeEvent, useEffect } from 'react'
import { ContactFieldsValidity } from '~/utils/form-validation'
import { useTranslations } from 'next-intl'
import { ContactSubmissionIndicator } from '~/components/pop-up-components/ContactSubmissionIndicator'
import { CircularProgress } from '@nextui-org/progress'
import { CircularProgress } from "@heroui/progress"
import { FormRadioGroup } from '~/components/formfileds/FormRadioGroup'
import { DropdownFormField } from '~/components/formfileds/DropdownFormField'
import { useContactForm } from '~/lib/hooks/useContactFrom'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '~/utils/form-validation'
import { useTranslations } from 'next-intl'
import { ContactSubmissionIndicator } from '~/components/pop-up-components/ContactSubmissionIndicator'
import { CircularProgress } from '@nextui-org/progress'
import { CircularProgress } from "@heroui/progress"
import { useEventApplicationForm } from '~/lib/hooks/useEventApplicationForm'
import { ToggleInputField } from '~/components/formfileds/ToggleInputField'
import {sendForm} from "~/lib/api";
Expand Down
2 changes: 1 addition & 1 deletion src/components/pop-up-components/join-us/JoinUsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { ChangeEvent } from 'react'
import { JoinUsFieldsValidity, JoinUsFormFields } from '~/utils/form-validation'
import { useTranslations } from 'next-intl'
import { ContactSubmissionIndicator } from '~/components/pop-up-components/ContactSubmissionIndicator'
import { CircularProgress } from '@nextui-org/progress'
import { CircularProgress } from "@heroui/progress"
import { DropdownFormField } from '~/components/formfileds/DropdownFormField'
import { useJoinUsFrom } from '~/lib/hooks/useJoinUsFrom'
import { sendForm } from "~/lib/api";
Expand Down
54 changes: 0 additions & 54 deletions src/utils/serializers/common.serializer.tsx

This file was deleted.

Loading