mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 13:16:42 +00:00
Merge branch 'cnrad:main' into implement-features
This commit is contained in:
5
next-env.d.ts
vendored
5
next-env.d.ts
vendored
@@ -1,2 +1,5 @@
|
|||||||
/// <reference types="next" />
|
/// <reference types="next" />
|
||||||
/// <reference types="next/types/global" />
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
|
// NOTE: This file should not be edited
|
||||||
|
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||||
|
|||||||
@@ -17,16 +17,16 @@
|
|||||||
"framer-motion": "^4.1.17",
|
"framer-motion": "^4.1.17",
|
||||||
"image-to-base64": "^2.2.0",
|
"image-to-base64": "^2.2.0",
|
||||||
"ioredis": "^4.28.5",
|
"ioredis": "^4.28.5",
|
||||||
"next": "11.0.0",
|
"next": "12.2.5",
|
||||||
"react": "17.0.2",
|
"react": "18.2.0",
|
||||||
"react-dom": "17.0.2",
|
"react-dom": "18.2.0",
|
||||||
"styled-components": "^5.3.0",
|
"styled-components": "^5.3.0",
|
||||||
"use-smooth-count": "^0.3.0"
|
"use-smooth-count": "^0.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/escape-html": "^1.0.1",
|
"@types/escape-html": "^1.0.1",
|
||||||
"@types/image-to-base64": "^2.1.0",
|
"@types/image-to-base64": "^2.1.0",
|
||||||
"@types/react": "17.0.11",
|
"@types/react": "^18.2.45",
|
||||||
"eslint": "7.28.0",
|
"eslint": "7.28.0",
|
||||||
"eslint-config-next": "11.0.0",
|
"eslint-config-next": "11.0.0",
|
||||||
"prettier": "^2.3.1",
|
"prettier": "^2.3.1",
|
||||||
|
|||||||
@@ -22,6 +22,12 @@ type Parameters = {
|
|||||||
|
|
||||||
export default async function handler(req: NextApiRequest, res: NextApiResponse<Data>) {
|
export default async function handler(req: NextApiRequest, res: NextApiResponse<Data>) {
|
||||||
let getUser;
|
let getUser;
|
||||||
|
|
||||||
|
if (!req.query.id)
|
||||||
|
return res.send({
|
||||||
|
error: `No ID provided.`,
|
||||||
|
});
|
||||||
|
|
||||||
const params: Parameters = req.query,
|
const params: Parameters = req.query,
|
||||||
userId = req.query.id[0];
|
userId = req.query.id[0];
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ export default function Home({ userCount }: { userCount: number }) {
|
|||||||
</Container>
|
</Container>
|
||||||
</Main>
|
</Main>
|
||||||
<FooterStat>
|
<FooterStat>
|
||||||
Lanyard Profile Readme has <div style={{ fontWeight: "bold", width: "2.75rem" }} ref={countRef} /> total
|
Lanyard Profile Readme has <div style={{ fontWeight: "bold", width: "3.2rem" }} ref={countRef} /> total
|
||||||
users!
|
users!
|
||||||
</FooterStat>
|
</FooterStat>
|
||||||
</>
|
</>
|
||||||
@@ -171,16 +171,16 @@ const Input = styled.input`
|
|||||||
border: none;
|
border: none;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
padding: 5px 10px;
|
padding: 0.45rem 0.75rem;
|
||||||
color: #aaabaf;
|
color: #aaabaf;
|
||||||
border: solid 1px #333;
|
border: solid 1px rgba(255, 255, 255, 0.2);
|
||||||
background: #000;
|
background: #000;
|
||||||
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
|
box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
|
||||||
transition: all ease-in-out 0.2s;
|
transition: all ease-in-out 0.1s;
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
outline: 0;
|
outline: 0;
|
||||||
border-color: #ccc;
|
border-color: rgba(255, 255, 255, 0.5);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -236,7 +236,7 @@ const FooterStat = styled.div`
|
|||||||
background: #000;
|
background: #000;
|
||||||
padding: 1rem 1.25rem;
|
padding: 1rem 1.25rem;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.55rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-shadow: 0 2px 15px -10px #a21caf;
|
box-shadow: 0 2px 15px -10px #a21caf;
|
||||||
min-width: 400px;
|
min-width: 400px;
|
||||||
@@ -254,7 +254,7 @@ const FooterStat = styled.div`
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
border-radius: 0.35rem;
|
border-radius: 0.55rem;
|
||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
background: linear-gradient(45deg, #be123c, #6b21a8, #3730a3) border-box;
|
background: linear-gradient(45deg, #be123c, #6b21a8, #3730a3) border-box;
|
||||||
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user