Skip to content

Commit 03e5879

Browse files
chore(prettier): 🤖 ✨
1 parent ca1cf37 commit 03e5879

File tree

10 files changed

+40
-40
lines changed

10 files changed

+40
-40
lines changed

‎components/ExperienceStats.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ export default memo(function ExperienceStats({ then }: { then: Date }) {
3434
<h1 className="mb-3 text-lg font-medium leading-6 text-slate-700">
3535
{t('title')}
3636
</h1>
37-
<dl className="mt-5 grid grid-cols-1 gap-5 print:grid-cols-3 sm:grid-cols-3">
37+
<dl className="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3 print:grid-cols-3">
3838
{stats.map((item) => (
3939
<div
4040
key={item.name}
41-
className="group relative overflow-hidden rounded-2xl bg-slate-900 px-4 py-5 print:p-6 sm:p-6"
41+
className="group relative overflow-hidden rounded-2xl bg-slate-900 px-4 py-5 sm:p-6 print:p-6"
4242
>
4343
<dt className="truncate text-sm font-medium text-slate-400">
4444
{item.name}
4545
</dt>
4646
<Since since={item.since} then={then} />
47-
<span className="absolute top-1/2 right-4 -translate-y-6 transform-gpu opacity-25 mix-blend-screen transition-opacity group-hover:opacity-100">
47+
<span className="absolute right-4 top-1/2 -translate-y-6 transform-gpu opacity-25 mix-blend-screen transition-opacity group-hover:opacity-100">
4848
<span className="relative inline-block h-12 w-12">
4949
<Image src={item.logo} alt="" layout="fill" />
5050
</span>

‎components/ExperienceTimeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default memo(function ExperienceTimeline({
2626
<div className="relative pb-8">
2727
{experienceIdx !== experiences.length - 1 ? (
2828
<span
29-
className="absolute top-5 left-6 -ml-px h-full w-0.5 bg-slate-200"
29+
className="absolute left-6 top-5 -ml-px h-full w-0.5 bg-slate-200"
3030
aria-hidden="true"
3131
/>
3232
) : null}

‎components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default memo(function Footer({
6868
)
6969

7070
return (
71-
<footer className="mt-5 mb-6 py-6 text-center text-xs print:mb-0 print:pb-0">
71+
<footer className="mb-6 mt-5 py-6 text-center text-xs print:mb-0 print:pb-0">
7272
{generated}
7373
<RelativeWhen
7474
date={buildDate}

‎components/LocaleSwitch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default memo(function LocaleSwitch({
4646
<Link
4747
key={locale}
4848
className={cx(
49-
'transform-cpu rounded-[0.4rem] py-1.5 px-3 text-sm font-medium leading-4 ring-white ring-opacity-60 ring-offset-2 ring-offset-slate-400 transition focus:outline-none focus-visible:ring-2 active:scale-95',
49+
'transform-cpu rounded-[0.4rem] px-3 py-1.5 text-sm font-medium leading-4 ring-white ring-opacity-60 ring-offset-2 ring-offset-slate-400 transition focus:outline-none focus-visible:ring-2 active:scale-95',
5050
{
5151
'pointer-events-none bg-white text-slate-600 shadow shadow-slate-500/25':
5252
locale === currentLocale,

‎components/OpenSourceStats.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ export default memo(function OpenSourceStats({
6868
<h1 className="mb-3 text-lg font-medium leading-6 text-slate-700">
6969
{t('title')}
7070
</h1>
71-
<dl className="mt-5 grid grid-cols-1 gap-5 print:grid-cols-2 sm:grid-cols-2">
71+
<dl className="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-2 print:grid-cols-2">
7272
{stats.map((item) => (
7373
<a
7474
key={item.name}
7575
href={item.url}
7676
target="_blank"
7777
rel="noopener noreferrer"
78-
className="overflow-hidden rounded-2xl bg-slate-900 px-4 py-5 transition hover:bg-slate-800 hover:shadow-lg hover:shadow-slate-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-800 focus-visible:ring-offset-2 active:scale-95 active:bg-slate-900 active:shadow-slate-500/75 print:p-6 sm:p-6"
78+
className="overflow-hidden rounded-2xl bg-slate-900 px-4 py-5 transition hover:bg-slate-800 hover:shadow-lg hover:shadow-slate-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-800 focus-visible:ring-offset-2 active:scale-95 active:bg-slate-900 active:shadow-slate-500/75 sm:p-6 print:p-6"
7979
>
8080
<dt className="truncate text-sm font-medium text-slate-400">
8181
{t(item.name)}

‎components/ProfileCard.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export default memo(function ProfileCard({
4848
<section className="rounded-2xl border border-slate-300 border-opacity-25 bg-slate-50">
4949
<h1 className="sr-only">{t('title')}</h1>
5050
<div className="px-6 py-4">
51-
<div className="print:flex print:items-center print:justify-between sm:flex sm:items-center sm:justify-between">
52-
<div className="print:flex print:space-x-5 sm:flex sm:space-x-5">
51+
<div className="sm:flex sm:items-center sm:justify-between print:flex print:items-center print:justify-between">
52+
<div className="sm:flex sm:space-x-5 print:flex print:space-x-5">
5353
<div className="flex-shrink-0">
5454
<a
5555
className="relative mx-auto block h-20 w-20 rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-slate-500 focus-visible:ring-offset-2"
@@ -65,27 +65,27 @@ export default memo(function ProfileCard({
6565
width={256}
6666
quality={100}
6767
/>
68-
<span className="absolute top-0 right-0 bottom-0 left-0 block rounded-full shadow-[inset_0_0_1px_1px_rgba(30,41,59,0.2)]" />
68+
<span className="absolute bottom-0 left-0 right-0 top-0 block rounded-full shadow-[inset_0_0_1px_1px_rgba(30,41,59,0.2)]" />
6969
</a>
7070
</div>
71-
<div className="mt-4 text-center print:mt-0 print:pt-1 print:text-left sm:mt-0 sm:pt-1 sm:text-left">
71+
<div className="mt-4 text-center sm:mt-0 sm:pt-1 sm:text-left print:mt-0 print:pt-1 print:text-left">
7272
<p className="text-sm font-medium text-slate-600">
7373
{t('role')}
7474
</p>
75-
<p className="text-xl font-bold text-slate-900 print:text-2xl sm:text-2xl">
75+
<p className="text-xl font-bold text-slate-900 sm:text-2xl print:text-2xl">
7676
{t('name')}
7777
</p>
7878
<Subheading t={t} then={then} intl={intl} />
7979
</div>
8080
</div>
81-
<div className="mt-5 flex justify-center print:mt-0 sm:mt-0">
81+
<div className="mt-5 flex justify-center sm:mt-0 print:mt-0">
8282
<button
8383
type="button"
8484
className="inline-flex items-center rounded-lg border border-transparent bg-sky-600 px-5 py-2 text-sm font-medium text-white transition hover:bg-sky-700 hover:shadow-sm hover:shadow-sky-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-sky-500 focus-visible:ring-offset-2 active:bg-sky-800 print:hidden"
8585
onClick={() => window.print()}
8686
>
8787
<PrinterIcon
88-
className="mr-2 -ml-1 h-5 w-5"
88+
className="-ml-1 mr-2 h-5 w-5"
8989
aria-hidden="true"
9090
/>
9191
{t('print')}
@@ -98,17 +98,17 @@ export default memo(function ProfileCard({
9898
className="hidden items-center rounded-lg border border-transparent bg-slate-100 px-5 py-2 text-sm font-medium text-slate-500 print:inline-flex "
9999
>
100100
<BadgeCheckIcon
101-
className="mr-2 -ml-1 h-5 w-5"
101+
className="-ml-1 mr-2 h-5 w-5"
102102
aria-hidden="true"
103103
/>
104104
{t('latest')}
105105
</a>
106106
</div>
107107
</div>
108108
</div>
109-
<div className="border-t border-slate-200 border-opacity-50 px-6 py-4 print:px-6 sm:px-6">
110-
<dl className="grid grid-cols-1 gap-x-4 gap-y-5 print:grid-cols-3 sm:grid-cols-3">
111-
<div className="sm:order-0 print:order-0 print:row-span-2 sm:col-span-1 sm:row-span-2">
109+
<div className="border-t border-slate-200 border-opacity-50 px-6 py-4 sm:px-6 print:px-6">
110+
<dl className="grid grid-cols-1 gap-x-4 gap-y-5 sm:grid-cols-3 print:grid-cols-3">
111+
<div className="sm:order-0 print:order-0 sm:col-span-1 sm:row-span-2 print:row-span-2">
112112
<Dt>{t('address')}</Dt>
113113
<Dd>
114114
<span className="inline-grid grid-cols-1 gap-1">
@@ -120,7 +120,7 @@ export default memo(function ProfileCard({
120120
</span>
121121
</Dd>
122122
</div>
123-
<div className="print:order-1 print:col-span-1 sm:order-1 sm:col-span-1">
123+
<div className="sm:order-1 sm:col-span-1 print:order-1 print:col-span-1">
124124
<Dt>{t('email')}</Dt>
125125
<Dd>
126126
<a
@@ -131,7 +131,7 @@ export default memo(function ProfileCard({
131131
</a>
132132
</Dd>
133133
</div>
134-
<div className="print:order-3 print:col-span-1 sm:order-3 sm:col-span-1">
134+
<div className="sm:order-3 sm:col-span-1 print:order-3 print:col-span-1">
135135
<Dt>{t('phone')}</Dt>
136136
<Dd>
137137
{unlocked?.data?.phone ? (
@@ -148,7 +148,7 @@ export default memo(function ProfileCard({
148148
)}
149149
</Dd>
150150
</div>
151-
<div className="print:order-2 print:col-span-1 sm:order-2 sm:col-span-1">
151+
<div className="sm:order-2 sm:col-span-1 print:order-2 print:col-span-1">
152152
<Dt>GitHub</Dt>
153153
<Dd>
154154
<a
@@ -161,7 +161,7 @@ export default memo(function ProfileCard({
161161
</a>
162162
</Dd>
163163
</div>
164-
<div className="print:order-4 print:col-span-1 sm:order-4 sm:col-span-1">
164+
<div className="sm:order-4 sm:col-span-1 print:order-4 print:col-span-1">
165165
<Dt>LinkedIn</Dt>
166166
<Dd>
167167
<a
@@ -174,7 +174,7 @@ export default memo(function ProfileCard({
174174
</a>
175175
</Dd>
176176
</div>
177-
<div className="print:order-5 print:col-span-3 sm:order-5 sm:col-span-3">
177+
<div className="sm:order-5 sm:col-span-3 print:order-5 print:col-span-3">
178178
<Dt>{t('about')}</Dt>
179179
<dd
180180
className="mt-0.5 text-sm text-slate-900"
@@ -200,8 +200,8 @@ const Subheading = memo(function Birthday({
200200
const age = differenceInYears(then, birthday)
201201
return (
202202
<p className="text-sm font-medium text-slate-600">
203-
<span className="block print:inline sm:inline">{t('pronouns')}</span>
204-
<span className="hidden print:inline sm:inline">{' • '}</span>
203+
<span className="block sm:inline print:inline">{t('pronouns')}</span>
204+
<span className="hidden sm:inline print:inline">{' • '}</span>
205205
{t.rich('subheading', {
206206
birthday,
207207
age,

‎components/References.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function RedactedLabel() {
6666

6767
return (
6868
<label
69-
className="block h-10 cursor-pointer rounded-2xl bg-white py-2 px-4 text-opacity-50 transition-opacity hover:opacity-100"
69+
className="block h-10 cursor-pointer rounded-2xl bg-white px-4 py-2 text-opacity-50 transition-opacity hover:opacity-100"
7070
htmlFor="unlock-button"
7171
>
7272
{t('redacted')}

‎components/SocialMediaCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ export default function SocialMediaCard({
7373
height={256}
7474
width={256}
7575
/>
76-
<span className="absolute top-0 bottom-0 left-0 right-0 block rounded-full bg-cyan-700 opacity-70 mix-blend-screen" />
76+
<span className="absolute bottom-0 left-0 right-0 top-0 block rounded-full bg-cyan-700 opacity-70 mix-blend-screen" />
7777
</div>
7878
)}
7979
<div className="flex flex-col pl-6 pr-12 text-4xl font-medium leading-10 text-cyan-100">
8080
<div className="bg-gradient-to-r from-sky-100 to-teal-200 bg-clip-text text-transparent">
8181
{eyebrow}
8282
</div>
83-
<div className="bg-gradient-to-r from-sky-100 to-teal-400 bg-clip-text pt-3 pb-6 text-9xl font-bold text-transparent">
83+
<div className="bg-gradient-to-r from-sky-100 to-teal-400 bg-clip-text pb-6 pt-3 text-9xl font-bold text-transparent">
8484
{name}
8585
</div>
8686
<div className="bg-gradient-to-r from-sky-100 to-teal-400 bg-clip-text text-transparent">

‎components/UnlockButton.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default memo(function UnlockButton({
3535
id="unlock-button"
3636
type="button"
3737
className={cx(
38-
'group relative flex items-center justify-center whitespace-nowrap rounded-lg border border-cyan-200/50 bg-cyan-100 py-1 px-4 text-sm text-cyan-700 shadow shadow-cyan-100/50 focus:outline-none ',
38+
'group relative flex items-center justify-center whitespace-nowrap rounded-lg border border-cyan-200/50 bg-cyan-100 px-4 py-1 text-sm text-cyan-700 shadow shadow-cyan-100/50 focus:outline-none ',
3939
{
4040
'transform-gpu transition hover:animate-bounce group-hover:scale-110 group-hover:animate-none':
4141
!unlocked,
@@ -47,13 +47,13 @@ export default memo(function UnlockButton({
4747
onClick={unlocked ? undefined : () => setOpen(true)}
4848
>
4949
{unlocked ? (
50-
<LockOpenIcon className="mr-1.5 -ml-0.5 h-4" />
50+
<LockOpenIcon className="-ml-0.5 mr-1.5 h-4" />
5151
) : (
5252
<>
5353
{!open && (
54-
<div className="pointer-events-none absolute top-0.5 right-3.5 bottom-0.5 left-3.5 z-[-1] animate-ping rounded-lg bg-cyan-100 transition-colors group-hover:animate-none group-hover:bg-opacity-0 group-focus:animate-none group-focus:bg-opacity-0 group-active:animate-none group-active:bg-opacity-0" />
54+
<div className="pointer-events-none absolute bottom-0.5 left-3.5 right-3.5 top-0.5 z-[-1] animate-ping rounded-lg bg-cyan-100 transition-colors group-hover:animate-none group-hover:bg-opacity-0 group-focus:animate-none group-focus:bg-opacity-0 group-active:animate-none group-active:bg-opacity-0" />
5555
)}
56-
<LockClosedIcon className="mr-1.5 -ml-0.5 h-4" />
56+
<LockClosedIcon className="-ml-0.5 mr-1.5 h-4" />
5757
</>
5858
)}
5959
{unlocked ? t('unlocked') : t('unlock')}
@@ -77,7 +77,7 @@ export default memo(function UnlockButton({
7777
}}
7878
>
7979
{unlocked ? (
80-
<div className="px-4 pt-4 pb-4">
80+
<div className="px-4 pb-4 pt-4">
8181
<div className="rounded-md bg-green-50 p-4">
8282
<div className="flex">
8383
<div className="flex-shrink-0">
@@ -106,13 +106,13 @@ export default memo(function UnlockButton({
106106
}
107107
)}
108108
>
109-
<CheckIcon className="mr-2 -ml-1 h-5 w-5" aria-hidden="true" />
109+
<CheckIcon className="-ml-1 mr-2 h-5 w-5" aria-hidden="true" />
110110
{t('ok')}
111111
</button>
112112
</div>
113113
) : (
114114
<form
115-
className="px-4 pt-4 pb-4"
115+
className="px-4 pb-4 pt-4"
116116
onSubmit={(event) => {
117117
event.preventDefault()
118118
if (!loading) {
@@ -188,7 +188,7 @@ export default memo(function UnlockButton({
188188
>
189189
{loading ? (
190190
<svg
191-
className="mr-2 -ml-1 h-5 w-5 animate-spin text-white"
191+
className="-ml-1 mr-2 h-5 w-5 animate-spin text-white"
192192
xmlns="http://www.w3.org/2000/svg"
193193
fill="none"
194194
viewBox="0 0 24 24"
@@ -209,7 +209,7 @@ export default memo(function UnlockButton({
209209
</svg>
210210
) : (
211211
<LockOpenIcon
212-
className="mr-2 -ml-1 h-5 w-5"
212+
className="-ml-1 mr-2 h-5 w-5"
213213
aria-hidden="true"
214214
/>
215215
)}

‎pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export default function Index({
4949
<link rel="shortcut icon" type="image/png" href={favicon.src} />
5050
</Head>
5151
<div className="h-1 bg-gradient-to-r from-teal-400 to-blue-600" />
52-
<main className="mx-auto max-w-[21cm] px-4 pt-4 font-sans text-slate-600 antialiased print:px-10 print:pt-5 sm:px-6 sm:pt-5 lg:px-8">
53-
<div className="flex items-center justify-start pb-4 print:hidden sm:pb-5">
52+
<main className="mx-auto max-w-[21cm] px-4 pt-4 font-sans text-slate-600 antialiased sm:px-6 sm:pt-5 lg:px-8 print:px-10 print:pt-5">
53+
<div className="flex items-center justify-start pb-4 sm:pb-5 print:hidden">
5454
<LocaleSwitch displayNames={displayNames} />
5555
<UnlockButton
5656
error={error}

0 commit comments

Comments
 (0)