@@ -38,11 +38,13 @@ export default function Index() {
38
38
39
39
return (
40
40
< 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 >
42
44
< Form className = "form flex flex-row justify-center my-8" method = "post" >
43
45
< div >
44
46
< label >
45
- API Key:{ " " }
47
+ < span className = "px-4" > API Key:</ span >
46
48
< input
47
49
className = "form-input px-4 w-64 h-8 rounded-lg border-solid border-sky-500"
48
50
type = "text"
@@ -52,18 +54,55 @@ export default function Index() {
52
54
</ div >
53
55
< button
54
56
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"
56
58
>
57
- Add
59
+ Get Stats
58
60
</ button >
59
61
</ 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 >
66
62
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 >
67
106
< Outlet />
68
107
</ div >
69
108
) ;
0 commit comments