-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35ebbcb
commit 87ce758
Showing
13 changed files
with
88 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
NEXT_PUBLIC_API_URL=https://pnu-mail-badara-cookiya.koyeb.app | ||
NEXT_PUBLIC_API_URL=https://pnu-mail-badara-cookiya.koyeb.app | ||
NEXT_PUBLIC_APP_URL=https://not-pnu.github.io/mailbadara |
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: false, | ||
output: 'export', | ||
basePath: "/mailbadara", | ||
images: { | ||
unoptimized: true, | ||
}, | ||
}; | ||
|
||
export default nextConfig; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
<url> | ||
<loc>https://not-pnu.github.io/mailbadara</loc> | ||
<lastmod>2024-08-12T00:42:40.525Z</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>1</priority> | ||
</url> | ||
</urlset> |
This file was deleted.
Oops, something went wrong.
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
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,13 @@ | ||
import type { MetadataRoute } from 'next'; | ||
|
||
export default function robots(): MetadataRoute.Robots { | ||
return { | ||
rules: [ | ||
{ | ||
userAgent: '*', | ||
allow: ['/'], | ||
}, | ||
], | ||
sitemap: process.env.NEXT_PUBLIC_APP_URL + '/sitemap.xml', | ||
}; | ||
} |
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 @@ | ||
'use client'; | ||
|
||
import { useSearchParams } from 'next/navigation'; | ||
|
||
export default function SuccessSubscribe() { | ||
const searchParams = useSearchParams(); | ||
const email = searchParams.get('email') || ''; | ||
|
||
if (!email) { | ||
return ( | ||
<p className={'flex h-240 flex-col items-center justify-center font-NanumMyeongjo md:text-18'}> | ||
이메일 주소를 찾을 수 없다. | ||
</p> | ||
); | ||
} | ||
|
||
return ( | ||
<p className={'flex h-240 flex-col items-center justify-center font-NanumMyeongjo md:text-18'}> | ||
{email} | ||
<br /> | ||
<br /> | ||
구독을 성공적으로 완료한 것을 축하한다. | ||
</p> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export default function ValidationEmailPage({ searchParams: { email } }: { searchParams: { email: string } }) { | ||
import { Suspense } from 'react'; | ||
import SuccessSubscribe from '@/app/validation/_component/SuccessSubscribe'; | ||
|
||
export default function ValidationEmailPage() { | ||
return ( | ||
<p className={'flex h-240 flex-col items-center justify-center font-NanumMyeongjo md:text-18'}> | ||
{email} | ||
<br /> | ||
<br /> | ||
구독을 성공적으로 완료한 것을 축하한다. | ||
</p> | ||
<Suspense> | ||
<SuccessSubscribe /> | ||
</Suspense> | ||
); | ||
} |
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,5 @@ | ||
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; | ||
|
||
export function isEmail(email: string) { | ||
return emailRegex.test(email); | ||
} |