Skip to content

Commit 517898d

Browse files
committed
feat: add prettier and format
1 parent a69d542 commit 517898d

File tree

7 files changed

+92
-24
lines changed

7 files changed

+92
-24
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
"@types/react": "^18.0.21",
1717
"@types/react-dom": "^18.0.6",
1818
"astro": "^2.4.5",
19+
"prettier": "^2.8.8",
20+
"prettier-plugin-tailwindcss": "^0.3.0",
1921
"react": "^18.0.0",
2022
"react-dom": "^18.0.0",
2123
"sharp": "^0.32.1",

pnpm-lock.yaml

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

prettier.config.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import("prettier").Config} */
2+
module.exports = {
3+
plugins: [require.resolve("prettier-plugin-tailwindcss")],
4+
singleQuote: true,
5+
};

src/pages/docs.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ import { Image } from '@astrojs/image/components';
1010
<meta name="generator" content="Rustular 0.0.0" />
1111
<title>Rustular</title>
1212
</head>
13-
<body class="bg-slate-950 text-white font-sans">
14-
<div class="h-16 border-slate-700 border-b flex items-center mb-16">
13+
<body class="bg-slate-950 font-sans text-white">
14+
<div class="mb-16 flex h-16 items-center border-b border-slate-700">
1515
<Image
16-
class="w-10 bg-white rounded-full border-2 border-white ml-2"
16+
class="ml-2 w-10 rounded-full border-2 border-white bg-white"
1717
src="/assets/rustular.png"
1818
alt="Rust Logo"
1919
width={128}
2020
height={128}
2121
/>
22-
<a class="font-mono font-bold text-3xl pl-2" href="/">Rustular</a>
22+
<a class="pl-2 font-mono text-3xl font-bold" href="/">Rustular</a>
2323
</div>
24-
<div class="font-thin max-w-xl mx-auto space-y-4">
24+
<div class="mx-auto max-w-xl space-y-4 font-thin">
2525
<h2 class="text-3xl font-normal">Overview</h2>
2626
<p>
2727
Rustular is designed to revolutionize the way web applications are

src/pages/index.astro

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ import { Image } from '@astrojs/image/components';
1010
<meta name="generator" content="Rustular 0.0.0" />
1111
<title>Rustular</title>
1212
</head>
13-
<body class="bg-slate-950 text-white font-sans">
13+
<body class="bg-slate-950 font-sans text-white">
1414
<div class="h-screen">
15-
<div class="h-16 border-slate-700 border-b flex items-center mb-16">
15+
<div class="mb-16 flex h-16 items-center border-b border-slate-700">
1616
<Image
17-
class="w-10 bg-white rounded-full border-2 border-white ml-2"
17+
class="ml-2 w-10 rounded-full border-2 border-white bg-white"
1818
src="/assets/rustular.png"
1919
alt="Rust Logo"
2020
width={128}
2121
height={128}
2222
/>
23-
<a class="font-mono font-bold text-3xl pl-2" href="/">Rustular</a>
23+
<a class="pl-2 font-mono text-3xl font-bold" href="/">Rustular</a>
2424
</div>
25-
<div class="text-center flex flex-col space-y-16 max-w-xl mx-auto">
25+
<div class="mx-auto flex max-w-xl flex-col space-y-16 text-center">
2626
<div class="text-5xl">Blazingly fast</div>
2727
<div class="font-thin">
2828
Rustular is a revolutionary web development tool that harnesses the
@@ -33,15 +33,15 @@ import { Image } from '@astrojs/image/components';
3333
Rustular sets a new standard for building efficient and scalable web
3434
experiences.
3535
</div>
36-
<div class="flex mx-auto space-x-8">
36+
<div class="mx-auto flex space-x-8">
3737
<a
38-
class="border-2 border-white hover:border-slate-200 rounded-full px-8 py-4 bg-white hover:bg-slate-200 text-fuchsia-600"
38+
class="rounded-full border-2 border-white bg-white px-8 py-4 text-fuchsia-600 hover:border-slate-200 hover:bg-slate-200"
3939
href="/docs"
4040
>
4141
Get Started
4242
</a>
4343
<div
44-
class="cursor-copy p-4 border-2 select-none border-fuchsia-600"
44+
class="cursor-copy select-none border-2 border-fuchsia-600 p-4"
4545
onclick="navigator.clipboard.writeText('pnpm create rustular-app')"
4646
>
4747
{'> pnpm create rustular-app'}
@@ -73,11 +73,11 @@ import { Image } from '@astrojs/image/components';
7373
</div>
7474
</div>
7575
</div>
76-
<div class="text-center space-y-4 mb-8">
76+
<div class="mb-8 space-y-4 text-center">
7777
<div class="text-2xl">
7878
Faster than any other <span class="text-[0.4rem]">tested</span> framework!
7979
</div>
80-
<div class="font-thin max-w-xl mx-auto">
80+
<div class="mx-auto max-w-xl font-thin">
8181
We believe speed is crucial for all websites. Faster website loading
8282
leads to increased revenue. That's why Rustular is designed to
8383
prioritize speed. With its exceptionally fast loading times, your
@@ -91,7 +91,7 @@ import { Image } from '@astrojs/image/components';
9191
height={479}
9292
/>
9393
<div class="text-2xl">Fully open-source and community-driven!</div>
94-
<div class="font-thin max-w-xl mx-auto">
94+
<div class="mx-auto max-w-xl font-thin">
9595
Rustular is fully open-source and community-driven. We believe that
9696
open-source software is the future of web development. That's why we
9797
made Rustular open-source. We want to empower developers to create
@@ -105,7 +105,7 @@ import { Image } from '@astrojs/image/components';
105105
>! to learn more.
106106
</div>
107107
<div class="text-2xl">The idea!</div>
108-
<div class="font-thin max-w-xl mx-auto">
108+
<div class="mx-auto max-w-xl font-thin">
109109
Take your standard web app (i.e. React, Vue, Next, Angular, etc.) and
110110
convert each individual component (button, div, etc.) into it's own
111111
dedicated Angular application. Convert each component application into
@@ -117,9 +117,9 @@ import { Image } from '@astrojs/image/components';
117117
single element, you dont have to recompile your entire application --
118118
just the individual WASM module.
119119
</div>
120-
<div class="text-5xl pb-8">Start building with Rustular today</div>
120+
<div class="pb-8 text-5xl">Start building with Rustular today</div>
121121
<a
122-
class="border-2 border-white hover:border-slate-200 rounded-full px-8 py-4 bg-white hover:bg-slate-200 text-fuchsia-600"
122+
class="rounded-full border-2 border-white bg-white px-8 py-4 text-fuchsia-600 hover:border-slate-200 hover:bg-slate-200"
123123
href="/docs"
124124
>
125125
Get Started

src/pages/standup.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ import StandUp from '../standup';
1111
<meta name="generator" content="Rustular 0.0.0" />
1212
<title>Rustular</title>
1313
</head>
14-
<body class="bg-slate-950 text-white font-sans">
15-
<div class="h-16 border-slate-700 border-b flex items-center mb-16">
14+
<body class="bg-slate-950 font-sans text-white">
15+
<div class="mb-16 flex h-16 items-center border-b border-slate-700">
1616
<Image
17-
class="w-10 bg-white rounded-full border-2 border-white ml-2"
17+
class="ml-2 w-10 rounded-full border-2 border-white bg-white"
1818
src="/assets/rustular.png"
1919
alt="Rust Logo"
2020
width={128}
2121
height={128}
2222
/>
23-
<a class="font-mono font-bold text-3xl pl-2" href="/">Rustular</a>
23+
<a class="pl-2 font-mono text-3xl font-bold" href="/">Rustular</a>
2424
</div>
2525
<StandUp client:load />
2626
</body>

src/standup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const StandUp = () => {
6363
}, []);
6464

6565
return (
66-
<div className="max-w-xl mx-auto">
66+
<div className="mx-auto max-w-xl">
6767
<h1 className="text-4xl">Stand Up</h1>
6868
<p>
6969
It is currently {smallestDifference} minutes until our 6am stand up in:

0 commit comments

Comments
 (0)