mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-25 04:17:18 +00:00
Added options button that links to parameters
This commit is contained in:
@@ -47,6 +47,7 @@ export default function Home() {
|
||||
)](https://discord.com/users/{userId})
|
||||
</Output>
|
||||
<Copy onClick={copy}>{copyState}</Copy>
|
||||
<a href='https://github.com/cnrad/lanyard-profile-readme#options' target="_blank" rel="noreferrer"><Options>Options</Options></a>
|
||||
<Example
|
||||
src={`/api/${userId}`}
|
||||
alt="[Please provide a valid user ID!]"
|
||||
@@ -181,6 +182,29 @@ const Copy = styled.button`
|
||||
}
|
||||
`;
|
||||
|
||||
const Options = styled.button`
|
||||
position: absolute;
|
||||
right: 150px;
|
||||
font-size: 0.9em;
|
||||
padding: 5px 25px;
|
||||
width: 103px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
color: #aaabaf;
|
||||
backdrop-filter: blur(50px);
|
||||
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
|
||||
background: #191d28;
|
||||
transition: background ease-in-out 0.2s;
|
||||
|
||||
&:hover {
|
||||
background: #11151f;
|
||||
}
|
||||
&:active {
|
||||
background: #0c0d13;
|
||||
}
|
||||
`;
|
||||
|
||||
const Example = styled.img`
|
||||
display: block;
|
||||
margin: 70px auto 0px;
|
||||
|
||||
Reference in New Issue
Block a user