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
9 changes: 9 additions & 0 deletions src/components/CCIP/Hero/Hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

.ccip-hero__heading {
color: var(--gray-900);
font-size: 2.5rem;
margin-bottom: var(--space-6x);
}

.ccip-hero__content {
Expand All @@ -15,3 +17,10 @@
align-items: center;
gap: var(--space-4x);
}

@media screen and (max-width: 768px) {
.ccip-hero__heading {
font-size: 2rem;
margin-bottom: var(--space-4x);
}
}
5 changes: 4 additions & 1 deletion src/components/CCIP/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Environment, LaneConfig } from "~/config/data/ccip/index.ts"
import Search from "../Search/Search.tsx"
import "./Hero.css"
import { ChainType, ExplorerInfo } from "~/config/types.ts"
import { Typography } from "@chainlink/blocks"

interface HeroProps {
chains: {
Expand Down Expand Up @@ -39,7 +40,9 @@ function Hero({ chains, tokens, environment, lanes }: HeroProps) {
return (
<section className="ccip-hero">
<div className="ccip-hero__content">
<h1 className="ccip-hero__heading">CCIP Directory</h1>
<Typography variant="h1" className="ccip-hero__heading">
CCIP Directory
</Typography>
<Search chains={chains} tokens={tokens} environment={environment} lanes={lanes} />
</div>
</section>
Expand Down
3 changes: 1 addition & 2 deletions src/components/ChainSelector/ChainTypeSelector.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.selector {
display: flex;
align-items: center;
padding: var(--space-3x) var(--space-3x);
border-bottom: 1px solid var(--border-color, #e5e7eb);
padding: var(--space-4x) 0;
background: var(--color-background-primary, #ffffff);
position: sticky;
top: 0;
Expand Down
2 changes: 0 additions & 2 deletions src/components/LeftSidebar/LeftSidebar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import RecursiveSidebar from "./RecursiveSidebar.astro"
import { LanguageSwitcherDropdown } from "~/components/LanguageSwitcherDropdown"
import { ChainTypeSelector } from "~/components/ChainSelector"
import { isChainAwareSection } from "~/config/chainTypes"
import { filterContentByChainType } from "~/utils/chainType"
import type { ChainType } from "~/config/types"
import styles from "./leftSidebar.module.css"
import DocsHeaderTitle from "../DocsHeaderTitle/DocsHeaderTitle.astro"
import * as CONFIG from "../../config"
Expand Down
2 changes: 1 addition & 1 deletion src/components/LeftSidebar/leftSidebar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ details[open] > .navGroupTitle {

/* Language Switcher for tablet screens (800px-1200px) */
.languageSwitcherTablet {
padding: var(--space-6x) var(--space-6x) 0 var(--space-6x);
padding: var(--space-6x) 0;
display: none;
}

Expand Down
Loading
Loading