Skip to content

Commit 190f658

Browse files
committed
Final touchs maybe
1 parent 3e73f93 commit 190f658

File tree

6 files changed

+566
-78
lines changed

6 files changed

+566
-78
lines changed

app/root.tsx

+14-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,19 @@ import type { MetaFunction } from "remix";
1111
import styles from "./tailwind.css";
1212

1313
export const meta: MetaFunction = () => {
14-
return { title: "New Remix App" };
14+
return {
15+
title: "Dev.to Wrapped 2021",
16+
description: "Dev.to Wrapped 2021",
17+
keywords: "Dev.to Wrapped 2021",
18+
19+
"og:url": "https://devto-wrapped.netlify.app/",
20+
"og:image":
21+
"https://res.cloudinary.com/rohith-gilla/image/upload/w_512,h_300,c_fill/v1640586061/Blog/Screenshot_2021-12-27_at_11.50.54_AM_ngybxi.png",
22+
"og:title": "Dev.to Wrapped 2021",
23+
"twitter:image":
24+
"https://res.cloudinary.com/rohith-gilla/image/upload/w_512,h_300,c_fill/v1640586061/Blog/Screenshot_2021-12-27_at_11.50.54_AM_ngybxi.png",
25+
"twitter:url": "https://devto-wrapped.netlify.app/",
26+
};
1527
};
1628

1729
export function links() {
@@ -27,7 +39,7 @@ export default function App() {
2739
<Meta />
2840
<Links />
2941
</head>
30-
<body className="bg-lime-50 px-16 py-4 mx-16 my-4 text-black">
42+
<body className="bg-lime-50 px-16 py-4 mx-16 my-4 text-black ">
3143
<Outlet />
3244
<ScrollRestoration />
3345
<Scripts />

app/routes/index.tsx

+49-10
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ export default function Index() {
3838

3939
return (
4040
<div className="center">
41-
{/* <h1 className="text-2xl text-sky-400">Welcome to Dev.to wrapped</h1> */}
41+
<div className="text-lg underline text-center my-2 decoration-pink-500 decoration-2">
42+
Dev Wrapped Get your stats wrapped up for 2021 on the dev.to platform
43+
</div>
4244
<Form className="form flex flex-row justify-center my-8" method="post">
4345
<div>
4446
<label>
45-
API Key:{" "}
47+
<span className="px-4">API Key:</span>
4648
<input
4749
className="form-input px-4 w-64 h-8 rounded-lg border-solid border-sky-500"
4850
type="text"
@@ -52,18 +54,55 @@ export default function Index() {
5254
</div>
5355
<button
5456
type="submit"
55-
className="button shadow-lg w-32 px-8 mx-8 text-white shadow-black/50 bg-black rounded-lg"
57+
className="button shadow-lg w-48 px-8 mx-8 text-white shadow-black/50 bg-black rounded-lg"
5658
>
57-
Add
59+
Get Stats
5860
</button>
5961
</Form>
60-
<div className="rounded-2xl p-2 bg-sky-300">
61-
<img
62-
className="h-1/4 rounded-xl border-solid mx-auto"
63-
src="https://res.cloudinary.com/rohith-gilla/image/upload/v1640586061/Blog/Screenshot_2021-12-27_at_11.50.54_AM_ngybxi.png"
64-
></img>
65-
</div>
6662

63+
<div className="flex flex-row gap-8 my-8">
64+
<div className="rounded-2xl p-2 w-2/3 justify-center flex flex-col">
65+
<img
66+
className="rounded-xl border-2 border-solid border-sky-500 center mx-auto"
67+
src="https://res.cloudinary.com/rohith-gilla/image/upload/v1640586061/Blog/Screenshot_2021-12-27_at_11.50.54_AM_ngybxi.png"
68+
/>
69+
</div>
70+
<div className="w-1/3 prose ">
71+
<p>
72+
Dev API currently doesn't support oauth logins, so you have to
73+
manually enter the api key here. But don't worry, the API key is
74+
stored only in your browser cookies securely. To get your API key
75+
follow the steps 👇🏼
76+
</p>
77+
<ul>
78+
<li>
79+
Go to your dev.to profile page and click on the <b>Settings</b>
80+
page and click on account, or use this{" "}
81+
<a
82+
href="https://dev.to/settings/account"
83+
className="underline text-sky-500 decoration-sky-500 hover:text-sky-500 visited:text-sky-600"
84+
>
85+
link
86+
</a>
87+
</li>
88+
<li>
89+
Scroll a bit, you will see <b>DEV Community API Keys</b> section,
90+
write your own description and generate API Key.
91+
</li>
92+
<li>
93+
The page will reload, then navigate back to the section, you will
94+
see the toggle on your api key description, click on it and you
95+
will see your API key.
96+
</li>
97+
98+
<li>
99+
Once you have the API key, paste it in the above text field that
100+
you see and click on <b>Get Stats</b> button and view your stats
101+
🥳
102+
</li>
103+
</ul>
104+
</div>
105+
</div>
67106
<Outlet />
68107
</div>
69108
);

0 commit comments

Comments
 (0)