Skip to content

Commit 9c1f7c1

Browse files
committed
style: improve mobile UI for hero and project cards
1 parent aaffd3b commit 9c1f7c1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Dragon from "@/components/ui/dragon/dragon";
88
import Navbar from "@/components/ui/navbar";
99
import site from "@/config/site";
1010
import SearchModal from "@/components/modals/search";
11-
import Banner from "@/components/ui/banner/banner";
11+
// import Banner from "@/components/ui/banner/banner";
1212

1313
// const manrope = Manrope({ subsets: ["latin"] });
1414

@@ -34,7 +34,7 @@ export const metadata: Metadata = {
3434
"NEAR dApps",
3535
"NEAR DeFi",
3636
"NEAR AI",
37-
"NEAR Intents"
37+
"NEAR Intents",
3838
"NEAR Chain Abstraction",
3939
"blockchain directory",
4040
"crypto projects",
@@ -124,7 +124,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
124124
<Footer />
125125
<Dragon/>
126126
</div>
127-
<Banner/>
127+
{/* <Banner/> */}
128128
</body>
129129
</html>
130130
);

components/home/hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export default function HomeHero() {
99
<>
1010
<section id="home-hero" className="container relative z-[5] mx-auto mt-16 mb-0 flex flex-col items-center justify-center gap-6 sm:my-8">
1111
<HomeImages />
12-
<h1 className="z-[5] text-balance text-center text-[2.5rem] font-bold leading-tight text-white sm:text-7xl">
13-
Discover NEAR <br/> Ecosystem
12+
<h1 className="z-[5] text-balance text-center text-4xl sm:text-5xl lg:text-7xl font-bold leading-tight text-white">
13+
Discover NEAR Ecosystem
1414
</h1>
1515
{/* <HomeStats /> */}
1616
<GradientButton

components/ui/project-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function ProjectCard({ project, maxWidth }: ProjectCardProps) {
4242
href={`/project/${project.slug}`}
4343
onClick={()=>{
4444
}}
45-
className={`project-card grow-1 min-h-92 flex w-full ${maxWidth ? "" : "max-w-[20rem]"} gap- shrink-0 cursor-pointer flex-col items-start justify-start gap-3 overflow-hidden rounded-lg bg-[#11141B] px-5 py-4 transition-all duration-300 ease-in-out hover:bg-[#2b2d3a] md:justify-normal md:px-8 md:py-7`}
45+
className={`project-card snap-start grow-1 min-h-92 flex w-[85vw] ${maxWidth ? "" : "max-w-[20rem]"} shrink-0 cursor-pointer flex-col items-start justify-start gap-3 overflow-hidden rounded-lg bg-[#11141B] px-5 py-4 transition-all duration-300 ease-in-out hover:bg-[#2b2d3a] md:justify-normal md:px-8 md:py-7 md:w-full`}
4646
>
4747
<div className="flex w-full items-center gap-2 overflow-hidden md:h-auto md:flex-col md:items-start">
4848
<ImageWithFallback

0 commit comments

Comments
 (0)