Skip to content

Commit 660e9f3

Browse files
committed
fix: bump studio
1 parent 110556f commit 660e9f3

File tree

8 files changed

+5659
-3607
lines changed

8 files changed

+5659
-3607
lines changed

components/Footer.tsx

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -86,31 +86,34 @@ export default memo(function Footer({
8686
url="https://tailwindcss.com/"
8787
/>
8888
</div>
89-
<Link href="/studio" locale={false} prefetch={false}>
90-
<a className="mt-4 inline-flex items-center justify-center rounded-full border border-transparent bg-blue-600 text-xs font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 print:hidden">
91-
<svg
92-
aria-label="Sanity"
93-
className="inline-block h-8 w-8"
94-
viewBox="0 0 512 512"
95-
fill="none"
96-
xmlns="http://www.w3.org/2000/svg"
97-
>
98-
<path
99-
d="M161.527 136.723C161.527 179.76 187.738 205.443 240.388 219.095L296 232.283C345.687 243.852 376 272.775 376 319.514C376 341.727 369.162 360.931 357.538 375.971C357.538 329.232 333.607 303.78 276.171 288.74L221.47 276.246C177.709 266.065 143.977 242.464 143.977 191.56C143.977 170.505 150.359 151.994 161.527 136.723Z"
100-
fill="white"
101-
></path>
102-
<path
103-
opacity="0.5"
104-
d="M323.35 308.176C347.054 323.679 357.538 345.197 357.538 376.202C337.709 401.654 303.293 416 262.724 416C194.575 416 146.484 381.756 136 322.753H201.641C210.074 350.056 232.41 362.551 262.268 362.551C298.735 362.32 322.895 342.652 323.35 308.176Z"
105-
fill="white"
106-
></path>
107-
<path
108-
opacity="0.5"
109-
d="M195.715 200.816C172.923 186.007 161.527 165.183 161.527 136.954C180.672 111.503 213.493 96 253.835 96C323.35 96 363.692 133.252 373.721 185.776H310.359C303.293 165.183 285.971 148.986 254.291 148.986C220.33 148.986 197.311 169.116 195.715 200.816Z"
110-
fill="white"
111-
></path>
112-
</svg>
113-
</a>
89+
<Link
90+
className="mt-4 inline-flex items-center justify-center rounded-full border border-transparent bg-blue-600 text-xs font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 print:hidden"
91+
href="/studio"
92+
locale={false}
93+
prefetch={false}
94+
>
95+
<svg
96+
aria-label="Sanity"
97+
className="inline-block h-8 w-8"
98+
viewBox="0 0 512 512"
99+
fill="none"
100+
xmlns="http://www.w3.org/2000/svg"
101+
>
102+
<path
103+
d="M161.527 136.723C161.527 179.76 187.738 205.443 240.388 219.095L296 232.283C345.687 243.852 376 272.775 376 319.514C376 341.727 369.162 360.931 357.538 375.971C357.538 329.232 333.607 303.78 276.171 288.74L221.47 276.246C177.709 266.065 143.977 242.464 143.977 191.56C143.977 170.505 150.359 151.994 161.527 136.723Z"
104+
fill="white"
105+
></path>
106+
<path
107+
opacity="0.5"
108+
d="M323.35 308.176C347.054 323.679 357.538 345.197 357.538 376.202C337.709 401.654 303.293 416 262.724 416C194.575 416 146.484 381.756 136 322.753H201.641C210.074 350.056 232.41 362.551 262.268 362.551C298.735 362.32 322.895 342.652 323.35 308.176Z"
109+
fill="white"
110+
></path>
111+
<path
112+
opacity="0.5"
113+
d="M195.715 200.816C172.923 186.007 161.527 165.183 161.527 136.954C180.672 111.503 213.493 96 253.835 96C323.35 96 363.692 133.252 373.721 185.776H310.359C303.293 165.183 285.971 148.986 254.291 148.986C220.33 148.986 197.311 169.116 195.715 200.816Z"
114+
fill="white"
115+
></path>
116+
</svg>
114117
</Link>
115118
</footer>
116119
)

components/LocaleSwitch.tsx

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,31 @@ export default memo(function LocaleSwitch({
4343
</Head>
4444
<nav className="inline-flex space-x-1 justify-self-center rounded-lg bg-slate-100 p-0.5 shadow-inner shadow-slate-400/25 transition">
4545
{locales.map((locale) => (
46-
<Link key={locale} href={route} locale={locale} prefetch={false}>
47-
<a
48-
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',
50-
{
51-
'pointer-events-none bg-white text-slate-600 shadow shadow-slate-500/25':
52-
locale === currentLocale,
53-
'text-slate-500 hover:text-slate-800 active:text-slate-900':
54-
locale !== currentLocale,
55-
}
56-
)}
57-
>
58-
{displayNames[locale].map((part, idx) => (
59-
<span
60-
key={part}
61-
className={cx('block text-xs capitalize transition-opacity', {
62-
'opacity-60': currentIdx !== idx,
63-
})}
64-
>
65-
{part}
66-
</span>
67-
))}
68-
</a>
46+
<Link
47+
key={locale}
48+
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',
50+
{
51+
'pointer-events-none bg-white text-slate-600 shadow shadow-slate-500/25':
52+
locale === currentLocale,
53+
'text-slate-500 hover:text-slate-800 active:text-slate-900':
54+
locale !== currentLocale,
55+
}
56+
)}
57+
href={route}
58+
locale={locale}
59+
prefetch={false}
60+
>
61+
{displayNames[locale].map((part, idx) => (
62+
<span
63+
key={part}
64+
className={cx('block text-xs capitalize transition-opacity', {
65+
'opacity-60': currentIdx !== idx,
66+
})}
67+
>
68+
{part}
69+
</span>
70+
))}
6971
</Link>
7072
))}
7173
</nav>

next.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const i18n = require('./intl.config.json')
88
const nextConfig = {
99
experimental: {
1010
urlImports: ['https://themer.sanity.build/'],
11-
browsersListForSwc: true,
1211
legacyBrowsers: false,
1312
},
1413
compiler: { styledComponents: true },

0 commit comments

Comments
 (0)