Skip to content

Commit 4496490

Browse files
authored
Chore/prettier (#586)
* chore: run prettier format on all files except .md * chore: upgrade prettier * chore: format astro files * chore: format staff aug * chore: format footer and nav
1 parent efb645f commit 4496490

File tree

35 files changed

+523
-262
lines changed

35 files changed

+523
-262
lines changed

apps/contact/app/layout.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
export default function Layout({
2-
children,
3-
}: {
4-
children: React.ReactNode
5-
}) {
1+
export default function Layout({ children }: { children: React.ReactNode }) {
62
return (
73
<html lang="en">
84
<body>
95
<main>{children}</main>
106
</body>
117
</html>
12-
)
8+
);
139
}

apps/contact/app/page.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
export default function Home() {
2-
return (
3-
<div>
4-
THIS IS API
5-
</div>
6-
);
2+
return <div>THIS IS API</div>;
73
}

apps/website/src/components/Avatar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const optimizedImage = await getImage({
66
src: image.default,
77
width: 72,
88
height: 72,
9-
format: 'webp'
9+
format: "webp",
1010
});
1111
---
1212

apps/website/src/components/BookACallForm.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ export interface Props {
1111
eventType?: string;
1212
}
1313
14-
const {
15-
calLink = "team/crocoder/hello",
16-
eventType = "hello",
17-
} = Astro.props;
14+
const { calLink = "team/crocoder/hello", eventType = "hello" } = Astro.props;
1815
---
1916

2017
<!-- YELLOW-1 = #FEB534 -->

apps/website/src/components/Field.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const { classNames, labelProps, label, errorText } = Astro.props;
4141
{
4242
"after:h-[46px]": !Astro.props.isTextArea,
4343
"after:h-[139px] after:max-h-[139px]": Astro.props.isTextArea,
44-
}
44+
},
4545
)}
4646
>
4747
{
@@ -83,7 +83,7 @@ const { classNames, labelProps, label, errorText } = Astro.props;
8383
focus:border-transparent
8484
text-secondary
8585
`,
86-
Astro.props.textAreaProps.class
86+
Astro.props.textAreaProps.class,
8787
)}
8888
{...Astro.props.textAreaProps}
8989
/>
@@ -133,7 +133,7 @@ const { classNames, labelProps, label, errorText } = Astro.props;
133133
{
134134
"h-[48px] top-[23px]": !Astro.props.isTextArea,
135135
"h-[142px] top-[23px]": Astro.props.isTextArea,
136-
}
136+
},
137137
)}
138138
>
139139
</div>

apps/website/src/components/Pill.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { className } = Astro.props;
77
<div
88
class={classNames(
99
"bg-white py-2 px-4 gap-2.5 border border-[rgb(60,56,67)]/[0.2] rounded-full uppercase font-bold text-base w-fit leading-none tracking-normal text-secondary whitespace-nowrap",
10-
className
10+
className,
1111
)}
1212
>
1313
<slot />

apps/website/src/components/Values.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const { src } = await getImage({
3030
src: bgImage,
3131
alt: "",
3232
width: 1920,
33-
format: 'avif',
33+
format: "avif",
3434
});
3535
---
3636

apps/website/src/components/cto/Hero.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ import heroImage from "../../assets/cto-hero.png";
3232
<p
3333
class="font-normal leading-7 md:text-[22px] md:leading-8 tracking-normal"
3434
>
35-
A Web Development Consultancy Helping CTOs Minimize Their Hands-on Involvement in Daily Operations
35+
A Web Development Consultancy Helping CTOs Minimize Their Hands-on
36+
Involvement in Daily Operations
3637
</p>
3738

3839
<a
@@ -69,7 +70,7 @@ import heroImage from "../../assets/cto-hero.png";
6970

7071
<script is:inline>
7172
const bookACallActionHero = document.getElementById(
72-
"book-a-call-action-hero"
73+
"book-a-call-action-hero",
7374
);
7475

7576
function handleBookACallHero() {

apps/website/src/components/cto/InfoBlock.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ const { icon, title, description, className } = Astro.props;
55
---
66

77
<div class={classNames("grid auto-rows-min text-white gap-7", className)}>
8-
<img src={icon} alt="" role="presentation" class="h-[72px] w-[72px] md:h-[90px] md:w-[90px]" />
8+
<img
9+
src={icon}
10+
alt=""
11+
role="presentation"
12+
class="h-[72px] w-[72px] md:h-[90px] md:w-[90px]"
13+
/>
914
<h3
1015
class="text-[28px] leading-[30px] md:text-[36px] md:leading-[40px] tracking-tight"
1116
>
Lines changed: 43 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,59 @@
11
---
22
import classnames from "classnames";
3-
const { image, iconFirst, iconSecond, sectionTitle, titleFirst, titleSecond, descriptionFirst, descriptionSecond, classNames } = Astro.props;
3+
const {
4+
image,
5+
iconFirst,
6+
iconSecond,
7+
sectionTitle,
8+
titleFirst,
9+
titleSecond,
10+
descriptionFirst,
11+
descriptionSecond,
12+
classNames,
13+
} = Astro.props;
414
---
515

6-
<div class={classnames("relative lg:h-[600px] overflow-hidden px-7 sm:pt-24 pt-16 sm:px-12", classNames)}>
16+
<div
17+
class={classnames(
18+
"relative lg:h-[600px] overflow-hidden px-7 sm:pt-24 pt-16 sm:px-12",
19+
classNames,
20+
)}
21+
>
722
<div class="grid grid-cols-1 md:grid-cols-2 gap-7">
823
<div class="rounded-2xl gap-7">
9-
<h2 class="font-medium text-[28px] leading-[30px] md:text-4xl md:leading-10 xl:text-[54px] xl:leading-[60px] -tracking-[2%]">
24+
<h2
25+
class="font-medium text-[28px] leading-[30px] md:text-4xl md:leading-10 xl:text-[54px] xl:leading-[60px] -tracking-[2%]"
26+
>
1027
{sectionTitle}
1128
</h2>
1229
</div>
1330
<div class="rounded-2xl grid grid-cols-1 lg:grid-cols-2 gap-7 items-start">
1431
<div class="grid grid-cols-1 gap-y-4 text-left sm:text-left">
15-
<img src={iconFirst} alt="" class="w-16 h-16 sm:mx-0" role="presentation" />
16-
<h4 class="font-medium text-xl leading-[22px] md:text-[28px] md:leading-[30px] tracking-tight">
32+
<img
33+
src={iconFirst}
34+
alt=""
35+
class="w-16 h-16 sm:mx-0"
36+
role="presentation"
37+
/>
38+
<h4
39+
class="font-medium text-xl leading-[22px] md:text-[28px] md:leading-[30px] tracking-tight"
40+
>
1741
{titleFirst}
1842
</h4>
1943
<span class="font-normal text-4 leading-[26px]">
2044
{descriptionFirst}
2145
</span>
2246
</div>
2347
<div class="grid grid-cols-1 gap-y-4 text-left sm:text-left">
24-
<img src={iconSecond} alt="" class="w-16 h-16 sm:mx-0" role="presentation" />
25-
<h4 class="font-medium text-xl leading-[22px] md:text-[28px] md:leading-[30px] tracking-tight">
48+
<img
49+
src={iconSecond}
50+
alt=""
51+
class="w-16 h-16 sm:mx-0"
52+
role="presentation"
53+
/>
54+
<h4
55+
class="font-medium text-xl leading-[22px] md:text-[28px] md:leading-[30px] tracking-tight"
56+
>
2657
{titleSecond}
2758
</h4>
2859
<span class="font-normal text-base leading-[26px]">
@@ -31,7 +62,9 @@ const { image, iconFirst, iconSecond, sectionTitle, titleFirst, titleSecond, des
3162
</div>
3263
</div>
3364
</div>
34-
<img src={image}
35-
alt="CroCoder team member illustration"
36-
class="md:absolute bottom-0 left-0 h-40 sm:h-56 lg:h-80 max-w-xs sm:max-w-md relative max-md:top-12 max-md:mt-12" />
65+
<img
66+
src={image}
67+
alt="CroCoder team member illustration"
68+
class="md:absolute bottom-0 left-0 h-40 sm:h-56 lg:h-80 max-w-xs sm:max-w-md relative max-md:top-12 max-md:mt-12"
69+
/>
3770
</div>

0 commit comments

Comments
 (0)