Skip to content

Commit

Permalink
style: 💄 mobile responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
chauduong1192 committed Dec 10, 2024
1 parent 5f521fe commit 8bfca3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/api/[...route]/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const verifyPassword = new Hono().post('/verify-password', async (c) => {
const { password } = await c.req.json();
const isMatch = password === unlockPassword;
if (!isMatch) {
return formatResponse(c, StatusCodes.UNAUTHORIZED, {
return formatResponse(c, StatusCodes.BAD_REQUEST, {
message: 'Password is incorrect',
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/repos/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export default async function GithubRepositories() {
className='gap-0'
>
<div
className='grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 2xl:grid-cols-4 gap-4
auto-rows-fr'
className='grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5
gap-4 auto-rows-fr'
>
{renderGitHubList()}
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/app/shorts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export default async function ShortsPage() {
withHr={true}
className='gap-0'
>
<div className='grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4'>
<div
className='grid gap-4 grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-4
2xl:grid-cols-5'
>
{allShorts?.map(({ slug, title, tags }) => (
<Card
contentProps={{ className: 'gap-4' }}
Expand Down

1 comment on commit 8bfca3e

@vercel
Copy link

@vercel vercel bot commented on 8bfca3e Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.