Skip to content

Commit

Permalink
Merge pull request #7 from krmr73/dev
Browse files Browse the repository at this point in the history
プロジェクトに関する欄を追加
  • Loading branch information
krmr73 authored Nov 10, 2024
2 parents 0573d57 + b5410b4 commit 3679d8b
Show file tree
Hide file tree
Showing 13 changed files with 506 additions and 10 deletions.
46 changes: 46 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"react": "^18",
"react-dom": "^18",
"react-icons": "^5.3.0",
"react-linkify": "^1.0.0-alpha",
"validator": "^13.12.0"
},
"devDependencies": {
Expand All @@ -28,6 +29,7 @@
"@types/nodemailer": "^6.4.16",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-linkify": "^1.0.4",
"@types/validator": "^13.12.2",
"eslint": "^8",
"eslint-config-next": "14.2.5",
Expand Down
Binary file added public/images/works/ai_scientist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/works/anotation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/works/genSQL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/works/portfolio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/works/urn_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/app/api/contact/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function checkRateLimit(ip: string) {

// 過去のリクエストでウィンドウ外のものをフィルタリング
const recentRequests = userRequests.filter(
(timestamp: number) => currentTime - timestamp < RATE_LIMIT_WINDOW_MS
(timestamp: number) => currentTime - timestamp < RATE_LIMIT_WINDOW_MS,
);

// 現在のリクエストタイムスタンプを追加
Expand All @@ -30,7 +30,7 @@ export async function POST(req: NextRequest) {
if (!checkRateLimit(ip)) {
return NextResponse.json(
{ message: "Too many requests, please try again later." },
{ status: 429 }
{ status: 429 },
);
}

Expand All @@ -42,7 +42,7 @@ export async function POST(req: NextRequest) {
if (email && !validator.isEmail(email)) {
return NextResponse.json(
{ message: "Invalid email format" },
{ status: 400 }
{ status: 400 },
);
}

Expand Down Expand Up @@ -72,12 +72,12 @@ export async function POST(req: NextRequest) {

return NextResponse.json(
{ message: "Email sent successfully" },
{ status: 200 }
{ status: 200 },
);
} catch (error) {
return NextResponse.json(
{ message: "Error sending email", error },
{ status: 500 }
{ status: 500 },
);
}
}
2 changes: 2 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import About from "../components/About";
import Contact from "../components/Contact";
import Skills from "../components/Skills";
import Works from "../components/Works";
import styles from "../styles/Home.module.css";

function Home() {
return (
<div className={styles.container}>
<About />
<Skills />
<Works />
<Contact />
</div>
);
Expand Down
Loading

0 comments on commit 3679d8b

Please sign in to comment.