@@ -7,7 +7,7 @@ import { ReactNode, useState } from "react";
7
7
import { HashLink } from "react-router-hash-link" ;
8
8
import news from "./News" ;
9
9
import A from "./A" ;
10
- import { MdEmail , MdLocationPin } from "react-icons/md" ;
10
+ import { MdEmail , MdLocationPin , MdDarkMode } from "react-icons/md" ;
11
11
import {
12
12
FaGithub ,
13
13
FaTwitter ,
@@ -28,7 +28,7 @@ const NewsFeed = () => {
28
28
( { time } ) => time . getUTCFullYear ( ) >= today . getUTCFullYear ( ) - 1
29
29
)
30
30
. map ( ( { time, msg } , i ) => (
31
- < div className = "py-2 text-[#777] text-sm" key = { `news-${ i } ` } >
31
+ < div className = "py-2 text-icon md: text-sm" key = { `news-${ i } ` } >
32
32
< div className = "w-fit bg-[#eee] rounded py-px px-1" >
33
33
{ time . toLocaleString ( "default" , {
34
34
month : "long" ,
@@ -84,46 +84,55 @@ const Publications = () => (
84
84
id,
85
85
bibtex,
86
86
} : Paper ) => (
87
- < div key = { id } className = { styles . PaperEntry } >
87
+ < div key = { id } className = "my-4" >
88
88
< a href = { pdf } >
89
- < span className = { styles . PaperTitle } > { title } </ span >
89
+ < span className = "text-lg font-semibold cursor-pointer" >
90
+ { title }
91
+ </ span >
90
92
</ a >
91
93
< br />
92
- < span className = { styles . PaperAuthors } >
94
+ < span className = "text-base" >
93
95
{ authors
94
96
. map ( ( a ) => ( coauthors ?. includes ( a ) ? `${ a } *` : a ) )
95
97
. map ( ( a ) =>
96
98
a === "Wode Ni" || a === "Wode Ni*" ? < strong > { a } </ strong > : a
97
99
)
98
100
. map ( ( a , i ) => (
99
- < li key = { `id-author-${ i } ` } > { a } </ li >
101
+ < >
102
+ < li className = { `inline` } key = { `id-author-${ i } ` } >
103
+ { a }
104
+ </ li >
105
+ { i !== authors . length - 1 && (
106
+ < span key = { `author-comma-${ i } ` } > , </ span >
107
+ ) }
108
+ </ >
100
109
) ) }
101
110
</ span >
102
111
.{ /* <br /> */ } { " " }
103
- < span className = { styles . PaperVenue } >
112
+ < span className = "text-base font-light italic" >
104
113
{ /* {venue} ({series}) */ }
105
114
{ series }
106
115
</ span >
107
116
{ "." }
108
- < div style = { { display : "flex" , gap : "5px" } } >
109
- < div className = { styles . PaperAsset } >
117
+ < div className = "flex gap-2" >
118
+ < div className = "flex items-center gap-0.5" >
110
119
< BsBookmarkCheck />
111
120
< Copy data = { bibtex } > bib</ Copy >
112
121
</ div >
113
122
{ pdf && (
114
- < div className = { styles . PaperAsset } >
123
+ < div className = "flex items-center gap-0.5" >
115
124
< FaRegFilePdf />
116
125
< A href = { pdf } > pdf</ A >
117
126
</ div >
118
127
) }
119
128
{ talk && (
120
- < div className = { styles . PaperAsset } >
129
+ < div className = "flex items-center gap-0.5" >
121
130
< FaRegPlayCircle />
122
131
< A href = { talk } > talk</ A >
123
132
</ div >
124
133
) }
125
134
{ slides && (
126
- < div className = { styles . PaperAsset } >
135
+ < div className = "flex items-center gap-0.5" >
127
136
< BiSlideshow />
128
137
< A href = { slides } > slides</ A >
129
138
</ div >
@@ -146,6 +155,12 @@ const Hero = ({ className }: { className?: string }) => (
146
155
</ div >
147
156
) ;
148
157
158
+ const DarkToggle = ( ) => (
159
+ < div className = "mx-1 w-6 h-6 text-xl flex cursor-pointer justify-center hover:opacity-50 ease-in-out duration-200 justify-self-center" >
160
+ < MdDarkMode fill = { theme . colors . icon } />
161
+ </ div >
162
+ ) ;
163
+
149
164
const Socials = ( { className } : { className ?: string } ) => (
150
165
< div
151
166
className = { `${ className } flex items-start md:items-top md:ml-auto mb-0 color-primary` }
@@ -155,13 +170,14 @@ const Socials = ({ className }: { className?: string }) => (
155
170
< GitHub />
156
171
< Email />
157
172
< Office />
173
+ { /* <DarkToggle /> */ }
158
174
</ div >
159
175
) ;
160
176
161
177
const Icon = ( { url, icon } : { url : string ; icon : ReactNode } ) => (
162
178
< a
163
179
href = { url }
164
- className = "px -1 text-xl flex cursor-pointer hover:opacity-50 ease-in-out duration-200 justify-self-center"
180
+ className = "mx -1 w-6 h-6 text-xl flex cursor-pointer justify-center hover:opacity-50 ease-in-out duration-200 justify-self-center"
165
181
>
166
182
{ icon }
167
183
</ a >
@@ -170,36 +186,33 @@ const Icon = ({ url, icon }: { url: string; icon: ReactNode }) => (
170
186
const Office = ( ) => (
171
187
< Icon
172
188
url = "https://goo.gl/maps/Zp92ofs6ze3y8hc19"
173
- icon = { < MdLocationPin width = { theme . sizes . icon } fill = { theme . colors . icon } /> }
189
+ icon = { < MdLocationPin fill = { theme . colors . icon } /> }
174
190
/>
175
191
) ;
176
192
177
193
const Twitter = ( ) => (
178
194
< Icon
179
195
url = "https://twitter.com/wodenimoni"
180
- icon = { < FaTwitter width = { theme . sizes . icon } fill = { theme . colors . icon } /> }
196
+ icon = { < FaTwitter fill = { theme . colors . icon } /> }
181
197
/>
182
198
) ;
183
199
184
200
const GitHub = ( ) => (
185
201
< Icon
186
202
url = "https://github.com/wodeni"
187
- icon = { < FaGithub width = { theme . sizes . icon } fill = { theme . colors . icon } /> }
203
+ icon = { < FaGithub fill = { theme . colors . icon } /> }
188
204
/>
189
205
) ;
190
206
191
207
const CV = ( ) => (
192
208
< Icon
193
209
url = "http://wodenimoni.com/nimo-markdown-cv/"
194
- icon = { < span className = "font-extralight leading-5" > CV</ span > }
210
+ icon = { < span className = "font-extralight leading-5 text-icon " > CV</ span > }
195
211
/>
196
212
) ;
197
213
198
214
const Email = ( ) => (
199
- < Icon
200
- url = "mailto:nimo@cmu.edu"
201
- icon = { < MdEmail width = { theme . sizes . icon } fill = { theme . colors . icon } /> }
202
- />
215
+ < Icon url = "mailto:nimo@cmu.edu" icon = { < MdEmail fill = { theme . colors . icon } /> } />
203
216
) ;
204
217
205
218
const Text = ( {
@@ -209,7 +222,9 @@ const Text = ({
209
222
className ?: string ;
210
223
children : ReactNode ;
211
224
} ) => (
212
- < p className = { `${ className } font-sans font-light text-lg my-2` } > { children } </ p >
225
+ < p className = { `${ className } font-sans font-extralight text-lg my-2` } >
226
+ { children }
227
+ </ p >
213
228
) ;
214
229
215
230
const Section = ( {
@@ -251,7 +266,7 @@ const Section = ({
251
266
252
267
const App : React . FC = ( ) => {
253
268
return (
254
- < div className = "font-sans grid md:grid-cols-3 m-4 md:m-10 max-w-screen-xl" >
269
+ < div className = "font-sans md: grid md:grid-cols-3 m-4 md:m-10 max-w-screen-xl" >
255
270
< Hero className = "md:col-span-2" />
256
271
< Socials className = "mt-8" />
257
272
< Text className = "md:col-span-2 mt-8" >
0 commit comments