-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from simonyiszk/feature/newsletter-init
Feature/newsletter init
- Loading branch information
Showing
5 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,10 @@ import Link from 'next/link'; | |
export default function Contact() { | ||
return ( | ||
<div className='flex flex-col'> | ||
<p className='text-4xl font-bold mb-20 text-center'>Vállalati és sajtómegkeresések, általános kérdések:</p> | ||
<h2 className=' mb-20 text-center'>Vállalati és sajtómegkeresések, általános kérdések:</h2> | ||
<Link | ||
href='mailto:[email protected]' | ||
className='text-2xl md:text-3xl font-semibold text-center hover:text-brand break-all' | ||
className='text-xl sm:text-2xl md:text-3xl font-semibold text-center hover:text-brand' | ||
target='blank' | ||
> | ||
[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import clsx from 'clsx'; | ||
import { forwardRef } from 'react'; | ||
import { TbCheck } from 'react-icons/tb'; | ||
|
||
interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> { | ||
label: string; | ||
} | ||
|
||
export const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(({ label, className, ...rest }, ref) => { | ||
ref = ref as React.MutableRefObject<HTMLInputElement>; | ||
const id = rest.id || Math.random().toString(36); | ||
return ( | ||
<label htmlFor={id} className={clsx('gap-3 flex cursor-pointer', className)}> | ||
<input id={id} hidden type='checkbox' ref={ref} {...rest} /> | ||
<div | ||
className={clsx('h-5 w-5 flex-shrink-0 border-white border-2 rounded-md flex items-center justify-center', { | ||
'bg-white text-black': rest.checked, | ||
})} | ||
> | ||
{rest.checked && <TbCheck />} | ||
</div> | ||
{label} | ||
</label> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters