feat: 최상단 헤더에 봇 / 서버 표시 (#674)

* feat: show header with type

* chore: improve readability
This commit is contained in:
SKINMAKER 2025-04-11 20:26:01 +09:00 committed by GitHub
parent 6e37411764
commit 8ab5e433d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,8 @@ const Hero: React.FC<HeroProps> = ({ type = 'all', header, description }) => {
<div className='mb-8 bg-discord-blurple text-gray-100 dark:bg-discord-black md:p-0'>
<Container className='pb-16 pt-24 md:pb-20' ignoreColor>
<h1 className='hidden text-left text-3xl font-bold md:block'>
{header && `${header} - `}
{header && `${header} - `} {{ bots: '봇 | ', servers: '서버 | ' }[type] || ''}
</h1>
<h1 className='text-center text-3xl font-semibold md:hidden'>
{header && (
@ -36,7 +37,7 @@ const Hero: React.FC<HeroProps> = ({ type = 'all', header, description }) => {
<br />
</span>
)}
{{ bots: '봇 | ', servers: '서버 | ' }[type] || ''}
</h1>
<p className='font-base mt-2 text-center text-xl sm:text-left'>
{description ||

View File

@ -8,6 +8,7 @@ export default knex({
user: process.env.MYSQL_USER || 'root',
password: process.env.MYSQL_PASSWORD || 'test',
database: process.env.MYSQL_DATABASE || 'discordbots',
port: Number(process.env.MYSQL_PORT) || 3306,
charset: 'utf8mb4',
},
})