Skip to content

Commit ea654f2

Browse files
committed
release: 스터디 신규 공개모집 배너 추가
1 parent 6f9462b commit ea654f2

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
lines changed

apps/home/app/(profile-readme)/layout.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
'use client'
22

3-
import { People } from '@/_shared'
3+
import { BannerBox, People } from '@/_shared'
44
import '@hamsurang/ui/globals.css'
55
import { postMessageToParent } from '@hamsurang/utils'
6+
import Image from 'next/image'
67
import { usePathname, useSearchParams } from 'next/navigation'
78
import { type PropsWithChildren, useEffect } from 'react'
89

@@ -34,6 +35,14 @@ export default function PeopleLayout({
3435
</aside>
3536

3637
<section className="flex flex-col gap-4 flex-grow">
38+
<div className="flex gap-2 mobile:flex-col">
39+
<BannerBox href="https://hamsurang.notion.site/7bf061d6b6f14e80803ad00388299c81?pvs=4">
40+
<Image fill src="/clean-ping.png" alt="" />
41+
</BannerBox>
42+
<BannerBox href="https://hamsurang.notion.site/856b66d7d9824521acfc529e8e6b2f86?pvs=4">
43+
<Image fill src="/under-ping.png" alt="" />
44+
</BannerBox>
45+
</div>
3746
{readme}
3847
{children}
3948
</section>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type { PropsWithChildren } from 'react'
2+
3+
export const BannerBox = ({ children, href }: PropsWithChildren<{ href: string }>) => {
4+
return (
5+
<a href={href} className="relative aspect-[4] flex-grow rounded-lg overflow-hidden">
6+
{children}
7+
</a>
8+
)
9+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { BannerBox } from './BannerBox'
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export * from './ActivityLog'
2+
export { BannerBox } from './BannerBox'
23
export * from './MBTIOverview'
34
export { People } from './People'
45
export { Profile } from './Profile'
5-
export * from './Repository'
66
export * from './Readme'
7+
export * from './Repository'

apps/home/public/clean-ping.png

11.8 KB
Loading

apps/home/public/under-ping.png

12 KB
Loading

0 commit comments

Comments
 (0)