Skip to content

Commit 701648e

Browse files
committed
chore: apply review suggestions, resolve merge
1 parent f8828ba commit 701648e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/components/Hero/HomeHero/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const HomeHero = ({ heroImg, className }: HomeHeroProps) => {
1212

1313
return (
1414
<div className={className}>
15-
<div className="h-[300px] sm:h-[350px] md:h-[380px] lg:h-[440px]">
15+
<div className="h-[240px] md:h-[380px] lg:h-[480px]">
1616
<TwImage
1717
src={heroImg}
1818
alt={t("page-index:page-index-hero-image-alt")}
@@ -22,7 +22,7 @@ const HomeHero = ({ heroImg, className }: HomeHeroProps) => {
2222
priority
2323
/>
2424
</div>
25-
<div className="flex flex-col items-center border-t-[3px] border-primary-low-contrast px-4 py-12 text-center">
25+
<div className="flex flex-col items-center border-t-[3px] border-primary-low-contrast px-4 py-10 text-center">
2626
<Morpher />
2727
<div className="flex flex-col items-center gap-y-5 lg:max-w-2xl">
2828
<h1 className="font-black">{t("page-index:page-index-title")}</h1>

src/components/Homepage/useHome.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,25 @@ import { isValidDate } from "@/lib/utils/date"
2020
import { isLangRightToLeft } from "@/lib/utils/translations"
2121

2222
import events from "@/data/community-events.json"
23+
import CreateWalletContent from "@/data/CreateWallet"
2324

2425
import { GITHUB_REPO_URL } from "@/lib/constants"
2526

26-
import CreateWalletContent from "!!raw-loader!@/data/CreateWallet.js"
2727
import SimpleDomainRegistryContent from "!!raw-loader!@/data/SimpleDomainRegistry.sol"
2828
import SimpleTokenContent from "!!raw-loader!@/data/SimpleToken.sol"
2929
import SimpleWalletContent from "!!raw-loader!@/data/SimpleWallet.sol"
3030

3131
export const useHome = () => {
3232
const { t } = useTranslation(["common", "page-index"])
3333
const { locale, asPath } = useRouter()
34-
const dir = isLangRightToLeft(locale as Lang) ? "rtl" : "ltr"
3534

3635
const [isModalOpen, setModalOpen] = useState(false)
3736
const [activeCode, setActiveCode] = useState(0)
3837

3938
const bentoItems = useBentoBox()
4039

40+
const dir = isLangRightToLeft(locale as Lang) ? "rtl" : "ltr"
41+
4142
const toggleCodeExample = (id: number): void => {
4243
setActiveCode(id)
4344
setModalOpen(true)

0 commit comments

Comments
 (0)