mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 13:41:32 +00:00
Feat: Non working copy button
This commit is contained in:
@@ -4,6 +4,9 @@ import { useState } from "react";
|
|||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const [userId, setUserId] = useState(":id");
|
const [userId, setUserId] = useState(":id");
|
||||||
|
const copy = () => {
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -20,10 +23,10 @@ export default function Home() {
|
|||||||
<Header>🏷️ lanyard-profile-readme</Header>
|
<Header>🏷️ lanyard-profile-readme</Header>
|
||||||
<Container>
|
<Container>
|
||||||
<p style={{ fontSize: "1rem", fontWeight: "bold", marginTop: "1rem" }}>
|
<p style={{ fontSize: "1rem", fontWeight: "bold", marginTop: "1rem" }}>
|
||||||
Make sure you're in the
|
Make sure you're in the{" "}
|
||||||
<a style={{ color: "#fff" }} rel="noreferrer" href="https://discord.com/invite/WScAm7vNGF">
|
<a style={{ color: "#fff" }} rel="noreferrer" href="https://discord.com/invite/WScAm7vNGF">
|
||||||
Discord
|
Discord
|
||||||
</a>
|
</a>{" "}
|
||||||
for this to work.
|
for this to work.
|
||||||
</p>
|
</p>
|
||||||
<Input
|
<Input
|
||||||
@@ -35,12 +38,15 @@ export default function Home() {
|
|||||||
<span style={{ fontSize: "1rem", marginTop: "1rem" }}>
|
<span style={{ fontSize: "1rem", marginTop: "1rem" }}>
|
||||||
Copy the following and paste it into your README.md
|
Copy the following and paste it into your README.md
|
||||||
</span>
|
</span>
|
||||||
<Link>
|
<LinkContainer>
|
||||||
[](https://discord.com/users/{userId})
|
[](https://discord.com/users/{userId})
|
||||||
|
</Link>
|
||||||
|
<StupidBtn onClick={copy}>Copy</StupidBtn>
|
||||||
|
</LinkContainer>
|
||||||
<span style={{ fontSize: "1rem", fontStyle: "italic", marginTop: "1rem" }}>
|
<span style={{ fontSize: "1rem", fontStyle: "italic", marginTop: "1rem" }}>
|
||||||
For further customization, check out the
|
For further customization, check out the{" "}
|
||||||
<a
|
<a
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -113,13 +119,13 @@ const Input = styled.input`
|
|||||||
border: solid 2px #ccc;
|
border: solid 2px #ccc;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
text-align: center;
|
text-align: left;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background: rgba(0, 0, 0, 0.5);
|
background: rgba(0, 0, 0, 0.5);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
text-align: center;
|
text-align: left;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -129,6 +135,7 @@ const Link = styled.div`
|
|||||||
height: auto;
|
height: auto;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
border: solid 1px #ccc;
|
border: solid 1px #ccc;
|
||||||
|
text-align: left;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
background-color: #222;
|
background-color: #222;
|
||||||
@@ -147,3 +154,18 @@ const Example = styled.img`
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const LinkContainer = styled.div`
|
||||||
|
position: relative;
|
||||||
|
`;
|
||||||
|
|
||||||
|
const StupidBtn = styled.button`
|
||||||
|
position: absolute;
|
||||||
|
right: 2em;
|
||||||
|
background: #222;
|
||||||
|
padding: 5px 18px;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: 4px;
|
||||||
|
color: #fff;
|
||||||
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user