added mail service
This commit is contained in:
23
app/[locale]/(root)/(routes)/about/page.tsx
Normal file
23
app/[locale]/(root)/(routes)/about/page.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
'use client'
|
||||
|
||||
import mailer from '@/lib/mailer'
|
||||
|
||||
export default function AboutPage () {
|
||||
const onClick = () => {
|
||||
mailer({
|
||||
to: [
|
||||
{ name: 'Yevhen', address: 'it@amok.space' },
|
||||
{ name: 'Євген', address: 'yevhen.odynets@gmail.com' },
|
||||
],
|
||||
subject: 'ПОСИЛЕННЯ МОБІЛІЗАЦІЇ В УКРАЇНІ',
|
||||
html: `<div>Коли Рада <strong>розгляне</strong> законопроєкт про мобілізацію у <del>другому</del> читанні</div>`,
|
||||
}).catch(console.error)
|
||||
}
|
||||
|
||||
return (
|
||||
<button onClick={onClick}
|
||||
className="bg-transparent hover:bg-blue-500 text-blue-700 font-semibold hover:text-white py-2 px-4 border border-blue-500 hover:border-transparent">
|
||||
sendmail
|
||||
</button>
|
||||
)
|
||||
}
|
||||
3
app/[locale]/(root)/(routes)/about/us/page.tsx
Normal file
3
app/[locale]/(root)/(routes)/about/us/page.tsx
Normal file
@@ -0,0 +1,3 @@
|
||||
export default function AboutUsPage () {
|
||||
return (<div>AboutUsPage</div>)
|
||||
}
|
||||
29
app/[locale]/(root)/page.tsx
Normal file
29
app/[locale]/(root)/page.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Poppins } from 'next/font/google'
|
||||
import { getScopedI18n } from '@/locales/server'
|
||||
import { cn } from '@/lib/utils'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import LoginButton from '@/components/auth/LoginButton'
|
||||
import { bg as bgg } from '@/config/layout'
|
||||
|
||||
const font = Poppins({
|
||||
subsets: ['latin'], weight: ['600'],
|
||||
})
|
||||
|
||||
export default async function Home () {
|
||||
const t = await getScopedI18n('auth')
|
||||
return (<main
|
||||
className="flex flex-col items-center justify-center h-full bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-lime-400 to-emerald-800">
|
||||
<div className="space-y-6 text-center">
|
||||
<h1 className={cn('text-6xl font-semibold text-white drop-shadow-md',
|
||||
font.className)}>
|
||||
🔐 {t('title')}
|
||||
</h1>
|
||||
<p className="text-lg text-white">{t('subtitle')}</p>
|
||||
<div>
|
||||
<LoginButton>
|
||||
<Button variant="secondary" size="lg">{t('sign_in')}</Button>
|
||||
</LoginButton>
|
||||
</div>
|
||||
</div>
|
||||
</main>)
|
||||
}
|
||||
Reference in New Issue
Block a user