-
Notifications
You must be signed in to change notification settings - Fork 298
feat(components-library) Social Links Drawer #3090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -219,4 +219,87 @@ | |
} | ||
} | ||
} | ||
|
||
.communityLinkList { | ||
display: flex; | ||
flex-flow: column nowrap; | ||
gap: theme.spacing(4); | ||
|
||
.title { | ||
@include theme.text("lg", "medium"); | ||
|
||
color: theme.color("heading"); | ||
} | ||
|
||
.communityGrid { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | ||
gap: theme.spacing(3); | ||
width: 100%; | ||
|
||
@include theme.breakpoint("sm") { | ||
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); | ||
gap: theme.spacing(2); | ||
} | ||
} | ||
|
||
.communityCard { | ||
aspect-ratio: 1; | ||
min-height: 160px; | ||
padding: theme.spacing(6); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
text-align: center; | ||
transition: | ||
transform 0.2s ease, | ||
box-shadow 0.2s ease; | ||
|
||
&:hover { | ||
transform: translateY(-2px); | ||
box-shadow: 0 8px 25px rgb(0 0 0 / 15%); | ||
} | ||
Comment on lines
+258
to
+261
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This hover styling appears nowhere else in the design system; it's inconsistent and we should make this match everything else |
||
|
||
@include theme.breakpoint("sm") { | ||
min-height: 140px; | ||
padding: theme.spacing(4); | ||
} | ||
} | ||
|
||
.communityCardContent { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: theme.spacing(3); | ||
width: 100%; | ||
height: 100%; | ||
justify-content: center; | ||
} | ||
|
||
.communityIcon { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: theme.spacing(12); | ||
height: theme.spacing(12); | ||
color: theme.color("states", "data", "normal"); | ||
|
||
svg { | ||
width: 100%; | ||
height: 100%; | ||
} | ||
Comment on lines
+287
to
+290
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This styling should be unneeded, since you're using phosphor icons the default width and height are set to |
||
|
||
@include theme.breakpoint("sm") { | ||
width: theme.spacing(10); | ||
height: theme.spacing(10); | ||
} | ||
} | ||
|
||
.communityTitle { | ||
@include theme.text("sm", "medium"); | ||
|
||
margin: 0; | ||
color: theme.color("heading"); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,45 @@ | ||
import { Code } from "@phosphor-icons/react/dist/ssr/Code"; | ||
import { DiscordLogo } from "@phosphor-icons/react/dist/ssr/DiscordLogo"; | ||
import { GithubLogo } from "@phosphor-icons/react/dist/ssr/GithubLogo"; | ||
import { TelegramLogo } from "@phosphor-icons/react/dist/ssr/TelegramLogo"; | ||
import { UsersThree } from "@phosphor-icons/react/dist/ssr/UsersThree"; | ||
import { XLogo } from "@phosphor-icons/react/dist/ssr/XLogo"; | ||
import { YoutubeLogo } from "@phosphor-icons/react/dist/ssr/YoutubeLogo"; | ||
|
||
export const socialLinks = [ | ||
{ | ||
name: "Discord", | ||
icon: <DiscordLogo />, | ||
href: "https://discord.gg/invite/PythNetwork", | ||
name: "GitHub", | ||
icon: <GithubLogo />, | ||
href: "https://github.com/pyth-network", | ||
}, | ||
{ | ||
name: "Pyth Dev Forum", | ||
icon: <Code />, | ||
href: "https://dev-forum.pyth.network/", | ||
}, | ||
{ | ||
name: "X", | ||
icon: <XLogo />, | ||
href: "https://x.com/PythNetwork", | ||
}, | ||
{ | ||
name: "Discord", | ||
icon: <DiscordLogo />, | ||
href: "https://discord.gg/invite/PythNetwork", | ||
}, | ||
{ | ||
name: "Telegram", | ||
icon: <TelegramLogo />, | ||
href: "https://t.me/Pyth_Network", | ||
}, | ||
{ | ||
name: "GitHub", | ||
icon: <GithubLogo />, | ||
href: "https://github.com/pyth-network", | ||
}, | ||
{ | ||
name: "Youtube", | ||
icon: <YoutubeLogo />, | ||
href: "https://www.youtube.com/channel/UCjCkvPN9ohl0UDvldfn1neg", | ||
}, | ||
{ | ||
name: "Pyth DAO Forum", | ||
icon: <UsersThree />, | ||
href: "https://forum.pyth.network/", | ||
}, | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please stick to
theme.spacing
for spacing units