-
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.
Merge pull request #2 from Seistart/feature/refactor
Refactor: Organize Files and Rename to Kebab-Case
- Loading branch information
Showing
29 changed files
with
156 additions
and
160 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Analytics } from '@/components/pages' | ||
import { appMetadata } from '@/configs' | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
...appMetadata.analytics, | ||
} | ||
|
||
export default function AnalyticsPage() { | ||
return <Analytics /> | ||
} |
File renamed without changes.
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,11 @@ | ||
import { Blogs } from '@/components/pages' | ||
import { appMetadata } from '@/configs' | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
...appMetadata.blogs, | ||
} | ||
|
||
export default async function BlogsPage() { | ||
return <Blogs /> | ||
} |
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,11 @@ | ||
import { Projects } from '@/components/pages' | ||
import { appMetadata } from '@/configs' | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
...appMetadata.projects, | ||
} | ||
|
||
export default function ProjectsPage() { | ||
return <Projects /> | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { Body } from '@/components/Body' | ||
import { Home } from '@/components/pages' | ||
|
||
export default function Home() { | ||
return <Body /> | ||
export default function HomePage() { | ||
return <Home /> | ||
} |
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,12 @@ | ||
import { MetadataRoute } from 'next' | ||
|
||
export default function robots(): MetadataRoute.Robots { | ||
return { | ||
rules: { | ||
userAgent: '*', | ||
allow: '/', | ||
disallow: '/private/', | ||
}, | ||
sitemap: 'https://lualabs.xyz/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,16 @@ | ||
import { getSortedBlogPosts } from '../lib/blog' | ||
|
||
export default async function sitemap() { | ||
const blogPosts = await getSortedBlogPosts() | ||
const blogPostRoutes = blogPosts.map((blogPost) => ({ | ||
url: `https://seistart.com//blog/${blogPost.id}`, | ||
lastModified: new Date(blogPost.date).toISOString().split('T')[0], | ||
})) | ||
|
||
const staticRoutes = ['', '/blog', '/projects', 'analytics'].map((route) => ({ | ||
url: `https://seistart.com/${route}`, | ||
lastModified: new Date().toISOString().split('T')[0], | ||
})) | ||
|
||
return [...staticRoutes, ...blogPostRoutes] | ||
} |
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,29 +1,24 @@ | ||
'use client' | ||
|
||
import React from 'react' | ||
|
||
const Footer: React.FC = () => { | ||
export const Footer = () => { | ||
const date = new Date().getFullYear() | ||
return ( | ||
<footer className='px-4 py-6 text-white'> | ||
<div className='container mx-auto grid grid-cols-3 gap-4'> | ||
<footer className='py-6'> | ||
<div className='grid grid-cols-3 place-items-center gap-4'> | ||
<div> | ||
<h2 className='mb-2 text-base font-bold'>Block 1</h2> | ||
<h2 className='mb-2'>Block 1</h2> | ||
<p className='text-sm'>Content for block 1...</p> | ||
</div> | ||
<div> | ||
<h2 className='mb-2 text-base font-bold'>Block 2</h2> | ||
<h2 className='mb-2'>Block 2</h2> | ||
<p className='text-sm'>Content for block 2...</p> | ||
</div> | ||
<div> | ||
<h2 className='mb-2 text-base font-bold'>Block 3</h2> | ||
<h2 className='mb-2'>Block 3</h2> | ||
<p className='text-sm'>Content for block 3...</p> | ||
</div> | ||
</div> | ||
<div className='mt-4 text-center text-xs'> | ||
<p>© {new Date().getFullYear()} SeiStart</p> | ||
<p>© {date} SeiStart</p> | ||
</div> | ||
</footer> | ||
) | ||
} | ||
|
||
export default Footer |
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
File renamed without changes.
File renamed without changes.
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
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
Oops, something went wrong.