Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelog/2302.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Implement new homepage
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,8 @@
"react": "18.3.1",
"react-dom": "18.3.1",
"react-i18next": "14.1.3",
"react-quick-pinch-zoom": "5.1.0",
"react-router-dom": "6.30.0",
"recharts": "2.15.1",
"swiper": "11.2.5",
"use-resize-observer": "9.1.0",
"viem": "^2.31.4"
},
"devDependencies": {
Expand Down
70 changes: 0 additions & 70 deletions src/app/components/CustomIcons/Navigate.tsx

This file was deleted.

46 changes: 0 additions & 46 deletions src/app/components/CustomIcons/Pinch.tsx

This file was deleted.

52 changes: 0 additions & 52 deletions src/app/components/CustomIcons/Tap.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/components/LayerPicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const LayerPicker: FC<LayerPickerProps> = ({ onClose, onConfirm, open, is
<>
<Drawer direction="top" open={open} onClose={onClose}>
{/* Match MUI md breakpoint during migration */}
<DrawerContent className="py-4 px-[5%] z-[1200] max-lg:h-dvh max-lg:!max-h-dvh max-lg:mb-0">
<DrawerContent className="py-4 px-6 z-[1200] max-lg:h-dvh max-lg:!max-h-dvh max-lg:mb-0">
<LayerPickerContent onClose={onClose} onConfirm={onConfirm} isOutOfDate={isOutOfDate} />
</DrawerContent>
</Drawer>
Expand Down
22 changes: 17 additions & 5 deletions src/app/components/PageLayout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ import { useScopeParam } from '../../hooks/useScopeParam'
import { useScreenSize } from '../../hooks/useScreensize'
import { isScopeSelectorNeeded } from '../../utils/route-utils'
import { useTranslation } from 'react-i18next'
import { cn } from '@oasisprotocol/ui-library/src/lib/utils'

export const Header: FC = () => {
type HeaderProps = {
sticky?: boolean
}

export const Header: FC<HeaderProps> = ({ sticky = true }) => {
const { t } = useTranslation()
const { isMobile } = useScreenSize()
const { isDesktop } = useScreenSize()
Expand All @@ -17,11 +22,18 @@ export const Header: FC = () => {
const scrolled = useScrolled()

return (
<header className="flex flex-col w-full box-border flex-shrink-0 sticky z-[1100] top-0 right-0 left-auto shadow-md bg-theme-layout-accent">
<div className="px-4">
<div className="grid grid-cols-12 pt-3 pb-4 px-0 md:px-[4%]">
<header
className={cn(
'h-17 flex flex-col w-full box-border flex-shrink-0 bg-theme-layout-accent justify-center',
{
'sticky z-[1100] top-0 right-0 left-auto shadow-md': sticky,
},
)}
>
<div className="px-2 md:px-6">
<div className="grid grid-cols-12">
<div className="col-span-6 xl:col-span-3 flex items-center">
<HomePageLink showText={!scrolled && !isMobile} />
<HomePageLink showText={!sticky || (!scrolled && !isMobile)} />
</div>

{withScopeSelector && (
Expand Down
Loading
Loading