Skip to content

Commit

Permalink
release: 스터디 신규 공개모집 배너 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
minsoo-web committed Oct 14, 2024
1 parent 6f9462b commit ea654f2
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
11 changes: 10 additions & 1 deletion apps/home/app/(profile-readme)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use client'

import { People } from '@/_shared'
import { BannerBox, People } from '@/_shared'
import '@hamsurang/ui/globals.css'
import { postMessageToParent } from '@hamsurang/utils'
import Image from 'next/image'
import { usePathname, useSearchParams } from 'next/navigation'
import { type PropsWithChildren, useEffect } from 'react'

Expand Down Expand Up @@ -34,6 +35,14 @@ export default function PeopleLayout({
</aside>

<section className="flex flex-col gap-4 flex-grow">
<div className="flex gap-2 mobile:flex-col">
<BannerBox href="https://hamsurang.notion.site/7bf061d6b6f14e80803ad00388299c81?pvs=4">
<Image fill src="/clean-ping.png" alt="" />
</BannerBox>
<BannerBox href="https://hamsurang.notion.site/856b66d7d9824521acfc529e8e6b2f86?pvs=4">
<Image fill src="/under-ping.png" alt="" />
</BannerBox>
</div>
{readme}
{children}
</section>
Expand Down
9 changes: 9 additions & 0 deletions apps/home/app/_shared/components/BannerBox/BannerBox.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { PropsWithChildren } from 'react'

export const BannerBox = ({ children, href }: PropsWithChildren<{ href: string }>) => {
return (
<a href={href} className="relative aspect-[4] flex-grow rounded-lg overflow-hidden">
{children}
</a>
)
}
1 change: 1 addition & 0 deletions apps/home/app/_shared/components/BannerBox/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { BannerBox } from './BannerBox'
3 changes: 2 additions & 1 deletion apps/home/app/_shared/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export * from './ActivityLog'
export { BannerBox } from './BannerBox'
export * from './MBTIOverview'
export { People } from './People'
export { Profile } from './Profile'
export * from './Repository'
export * from './Readme'
export * from './Repository'
Binary file added apps/home/public/clean-ping.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 apps/home/public/under-ping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ea654f2

Please sign in to comment.