diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx
index 22c387e..0f919b8 100644
--- a/src/app/contact/page.tsx
+++ b/src/app/contact/page.tsx
@@ -3,10 +3,10 @@ import Link from 'next/link';
export default function Contact() {
return (
-
Vállalati és sajtómegkeresések, általános kérdések:
+
Vállalati és sajtómegkeresések, általános kérdések:
konferencia@simonyi.bme.hu
diff --git a/src/app/globals.css b/src/app/globals.css
index 4ead5bb..3916cdc 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -10,7 +10,11 @@ img {
}
h1 {
- @apply text-4xl font-bold;
+ @apply text-3xl sm:text-4xl md:text-5xl font-bold;
+}
+
+h2 {
+ @apply text-2xl sm:text-3xl md:text-4xl font-bold;
}
.brand-link:hover {
From e4543606973934b2be8972de266e4d5f3b7c7ba0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?B=C3=A1lint=20Berente?=
<30603208+berenteb@users.noreply.github.com>
Date: Sat, 16 Dec 2023 18:27:20 +0100
Subject: [PATCH 2/2] feat: custom checkbox
---
src/components/checkbox.tsx | 25 +++++++++++++++++++
.../newsletter/newsletter-modals.tsx | 7 +++---
2 files changed, 28 insertions(+), 4 deletions(-)
create mode 100644 src/components/checkbox.tsx
diff --git a/src/components/checkbox.tsx b/src/components/checkbox.tsx
new file mode 100644
index 0000000..5615336
--- /dev/null
+++ b/src/components/checkbox.tsx
@@ -0,0 +1,25 @@
+import clsx from 'clsx';
+import { forwardRef } from 'react';
+import { TbCheck } from 'react-icons/tb';
+
+interface CheckboxProps extends React.InputHTMLAttributes
{
+ label: string;
+}
+
+export const Checkbox = forwardRef(({ label, className, ...rest }, ref) => {
+ ref = ref as React.MutableRefObject;
+ const id = rest.id || Math.random().toString(36);
+ return (
+
+ );
+});
diff --git a/src/components/newsletter/newsletter-modals.tsx b/src/components/newsletter/newsletter-modals.tsx
index ee2c511..bc6ee72 100644
--- a/src/components/newsletter/newsletter-modals.tsx
+++ b/src/components/newsletter/newsletter-modals.tsx
@@ -5,6 +5,7 @@ import { useState } from 'react';
import { FaCheckCircle, FaTimes } from 'react-icons/fa';
import { addToGroup } from '@/app/actions';
+import { Checkbox } from '@/components/checkbox';
import { WhiteButton } from '../white-button';
@@ -66,16 +67,14 @@ export function NewsletterModals() {
hírlevelünkre!
- setAccepted(e.target.checked)}
/>
-