Skip to content

Commit 319ab71

Browse files
committed
Format code
1 parent f600338 commit 319ab71

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+271
-166
lines changed

src/components/DownloadBanner.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function DownloadBanner() {
1313
<section
1414
id="latest-release"
1515
aria-labelledby="latest-release-title"
16-
className="border-b border-t border-gray-200 bg-gray-100 py-6 sm:py-10"
16+
className="border-t border-b border-gray-200 bg-gray-100 py-6 sm:py-10"
1717
>
1818
<Container>
1919
<h2

src/components/Features.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function Features({ className, ...props }) {
115115
key={feature.name}
116116
className="rounded-2xl border border-gray-200 bg-gray-50 p-8"
117117
>
118-
<div className="text-xl text-primary-dark">
118+
<div className="text-primary-dark text-xl">
119119
<FontAwesomeIcon icon={feature.icon} />
120120
</div>
121121
<h3 className="mt-6 font-semibold text-gray-900">

src/components/Header.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function Header() {
6565
{({ open }) => (
6666
<>
6767
<Popover.Button
68-
className="relative z-10 -m-2 inline-flex items-center rounded-lg stroke-gray-900 p-2 hover:bg-gray-200/50 hover:stroke-gray-600 active:stroke-gray-900 not-focus-visible:focus:outline-hidden"
68+
className="relative z-10 -m-2 inline-flex items-center rounded-lg stroke-gray-900 p-2 hover:bg-gray-200/50 hover:stroke-gray-600 not-focus-visible:focus:outline-hidden active:stroke-gray-900"
6969
aria-label="Toggle site navigation"
7070
>
7171
{({ open }) =>
@@ -97,7 +97,7 @@ export function Header() {
9797
y: -32,
9898
transition: { duration: 0.2 },
9999
}}
100-
className="absolute inset-x-0 top-0 z-0 origin-top rounded-b-2xl bg-gray-50 px-6 pb-6 pt-32 shadow-2xl shadow-gray-900/20"
100+
className="absolute inset-x-0 top-0 z-0 origin-top rounded-b-2xl bg-gray-50 px-6 pt-32 pb-6 shadow-2xl shadow-gray-900/20"
101101
>
102102
<div className="space-y-4">
103103
{routes.map(([label, href]) => (

src/components/Hero.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function BackgroundIllustration(props) {
2828
viewBox="0 0 1026 1026"
2929
fill="none"
3030
aria-hidden="true"
31-
className="absolute inset-0 h-full w-full animate-spin-slow"
31+
className="animate-spin-slow absolute inset-0 h-full w-full"
3232
>
3333
<path
3434
d="M1025 513c0 282.77-229.23 512-512 512S1 795.77 1 513 230.23 1 513 1s512 229.23 512 512Z"
@@ -58,7 +58,7 @@ function BackgroundIllustration(props) {
5858
viewBox="0 0 1026 1026"
5959
fill="none"
6060
aria-hidden="true"
61-
className="absolute inset-0 h-full w-full animate-spin-reverse-slower"
61+
className="animate-spin-reverse-slower absolute inset-0 h-full w-full"
6262
>
6363
<path
6464
d="M913 513c0 220.914-179.086 400-400 400S113 733.914 113 513s179.086-400 400-400 400 179.086 400 400Z"
@@ -172,8 +172,8 @@ export function Hero() {
172172
</div>
173173
</div>
174174
<div className="relative mt-10 sm:mt-20 xl:col-span-6 xl:row-span-2 xl:mt-0">
175-
<BackgroundIllustration className="pointer-events-none absolute left-1/2 top-4 h-[1026px] w-[1026px] -translate-x-1/3 stroke-gray-300/70 [mask-image:linear-gradient(to_bottom,white_20%,transparent_75%)] sm:top-16 sm:-translate-x-1/2 xl:-top-14 xl:ml-0" />
176-
<div className="-mx-4 flex h-[448px] items-center justify-center px-9 sm:mx-0 xl:absolute xl:-inset-x-10 xl:-bottom-32 xl:-top-32 xl:h-auto xl:px-0">
175+
<BackgroundIllustration className="pointer-events-none absolute top-4 left-1/2 h-[1026px] w-[1026px] -translate-x-1/3 [mask-image:linear-gradient(to_bottom,white_20%,transparent_75%)] stroke-gray-300/70 sm:top-16 sm:-translate-x-1/2 xl:-top-14 xl:ml-0" />
176+
<div className="-mx-4 flex h-[448px] items-center justify-center px-9 sm:mx-0 xl:absolute xl:-inset-x-10 xl:-top-32 xl:-bottom-32 xl:h-auto xl:px-0">
177177
<Carousel
178178
className="w-full"
179179
style={{ maxWidth: '500px' }}

src/components/Merchandise.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function Merchandise({ className, ...props }) {
1010
<section id="merchandise" className={clsx(className, 'py-12')} {...props}>
1111
<Container>
1212
<div>
13-
<div className="mb-6 flex justify-center gap-4 text-primary">
13+
<div className="text-primary mb-6 flex justify-center gap-4">
1414
<FontAwesomeIcon size="xl" icon={faImage} />
1515
<FontAwesomeIcon size="xl" icon={faShirt} />
1616
<FontAwesomeIcon size="xl" icon={faMugHot} />

src/components/Video.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function Video({ className }) {
77
<Container>
88
<div className="relative h-0 w-full pb-[56.25%]">
99
<iframe
10-
className="absolute left-0 top-0 h-full w-full"
10+
className="absolute top-0 left-0 h-full w-full"
1111
width="560"
1212
height="315"
1313
src="https://www.youtube.com/embed/K1tH2otAtMw?si=3Tjn8oz46p1miB2J"

src/components/challenge/Challenge.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function Challenge() {
2727
least one of following publications.
2828
</p>
2929

30-
<ul className="ml-4 mt-4 list-inside list-disc leading-relaxed">
30+
<ul className="mt-4 ml-4 list-inside list-disc leading-relaxed">
3131
<li>
3232
Peter J. Stuckey, T. Feydy, A. Schutt, G. Tack, J. Fischer (2014).
3333
The MiniZinc Challenge 2008-2013. AI Magazine 35 (2), 55-60.

src/components/challenge/CurrentChallenge.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function CurrentChallenge() {
2626
>
2727
Announcements
2828
</h4>
29-
<ul className="ml-4 mt-4 list-inside list-disc leading-relaxed">
29+
<ul className="mt-4 ml-4 list-inside list-disc leading-relaxed">
3030
{info[current].announcements.map((item, i) => (
3131
<li key={i}>{item}</li>
3232
))}
@@ -37,7 +37,7 @@ export function CurrentChallenge() {
3737
>
3838
Dates
3939
</h4>
40-
<ul className="ml-4 mt-4 list-inside list-disc leading-relaxed">
40+
<ul className="mt-4 ml-4 list-inside list-disc leading-relaxed">
4141
{info[current].dates.map((item, i) => (
4242
<li key={i}>{item}</li>
4343
))}

src/components/downloads/MiniZincDistribution.jsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,15 @@ export function MiniZincDistribution() {
2929
the MiniZinc IDE, which makes it easy to develop and run
3030
constraint models.
3131
</p>
32-
<h3 id="minizinc-solvers" className="my-3 text-2xl font-medium tracking-tight text-gray-900">
32+
<h3
33+
id="minizinc-solvers"
34+
className="my-3 text-2xl font-medium tracking-tight text-gray-900"
35+
>
3336
Solvers
3437
</h3>
35-
<p>A number of solvers are included in the official binary packages:</p>
38+
<p>
39+
A number of solvers are included in the official binary packages:
40+
</p>
3641
<ul className="mx-2 my-2 list-inside list-disc leading-relaxed">
3742
<li>
3843
<Link href="https://www.gecode.org">Gecode</Link>
@@ -101,7 +106,8 @@ export function MiniZincDistribution() {
101106
</li>
102107
</ul>
103108
<p className="my-2 leading-7">
104-
Note that if you build MiniZinc from source, you will have to install any desired solvers yourself.
109+
Note that if you build MiniZinc from source, you will have to
110+
install any desired solvers yourself.
105111
</p>
106112
</div>
107113
<div>

src/components/publications/PublicationList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function TitleAndAbstract({ publication }) {
1616
<span className="font-bold">{publication.title}</span>.
1717
</div>
1818
<div
19-
className="rounded-md bg-primary px-1.5 py-0.5 text-xs text-white no-underline hover:cursor-pointer hover:bg-primary-light"
19+
className="bg-primary hover:bg-primary-light rounded-md px-1.5 py-0.5 text-xs text-white no-underline hover:cursor-pointer"
2020
onClick={() => setActive(!active)}
2121
>
2222
{active ? 'Hide' : 'Abstract'}
@@ -77,7 +77,7 @@ export function PublicationList({ publications }) {
7777
{publications.map((pub, index) => (
7878
<li
7979
className={clsx(
80-
'border-b border-l border-r border-gray-200 p-4',
80+
'border-r border-b border-l border-gray-200 p-4',
8181
index === 0 ? 'border-t' : '',
8282
)}
8383
key={pub.id || pub.title}

0 commit comments

Comments
 (0)