-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: more socialLinks * feat: hidden social links component * feat: social links text mode * feat: social links img mode * feat: separate social component * feat: social links usage * fix: social links gap
- Loading branch information
Showing
13 changed files
with
528 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
packages/island/src/theme-default/components/SocialLinks/HiddenLinks.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { LinkContent } from './LinkContent'; | ||
import { DefaultTheme } from 'shared/types'; | ||
|
||
interface IHiddenLinksProps { | ||
links: DefaultTheme.SocialLink[]; | ||
} | ||
|
||
export const HiddenLinks = (props: IHiddenLinksProps) => { | ||
const { links } = props; | ||
|
||
return ( | ||
<div | ||
absolute="" | ||
pos="top-13 right-0" | ||
z="1" | ||
p="3" | ||
w="32" | ||
border-1="" | ||
rounded="xl" | ||
bg="bg-default" | ||
style={{ | ||
boxShadow: 'var(--island-shadow-3)', | ||
marginRight: '-2px' | ||
}} | ||
flex="~ wrap" | ||
gap="4" | ||
> | ||
{links.map((item) => ( | ||
<LinkContent | ||
key={item.icon} | ||
link={item} | ||
popperStyle={{ top: '1.25rem' }} | ||
/> | ||
))} | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.
9682e3d
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.
Successfully deployed to the following URLs:
island – ./
island-navy.vercel.app
island-git-master-sanyuan0704.vercel.app
island-vercel.sanyuan0704.top
islandjs.dev
island-sanyuan0704.vercel.app