Skip to content

Commit

Permalink
Fixing names
Browse files Browse the repository at this point in the history
  • Loading branch information
édouard wautier authored and édouard wautier committed Oct 31, 2023
1 parent 79c49fe commit cca2646
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
13 changes: 4 additions & 9 deletions front/components/home/contentComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,19 @@ interface PProps {
children: ReactNode;
className?: string;
size?: "xs" | "sm" | "md" | "lg";
borderCSS?: string;
dotCSS?: string;
}

export const P = ({
children,
borderCSS = "",
dotCSS = "",
className = "",
size = "md",
}: PProps) => {
if (borderCSS) {
if (dotCSS) {
return (
<div className={classNames(className, "flex gap-4")}>
<div
className={classNames(
borderCSS,
"mt-0.5 h-6 w-3 flex-shrink-0 bg-emerald-400"
)}
/>
<div className={classNames(dotCSS, "mt-0.5 h-6 w-3 flex-shrink-0")} />
<p className={classNames(pClasses[size])}>{children}</p>
</div>
);
Expand Down
20 changes: 10 additions & 10 deletions front/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,15 @@ export default function Home({
"2xl:col-span-3"
)}
>
<P borderCSS="bg-sky-400">
<P dotCSS="bg-sky-400">
Deploy <Strong>the best Large Language Models</Strong> to&nbsp;
<Strong>all&nbsp;your&nbsp;company</Strong>,
<br className="hidden sm:block" />
today.
</P>
</div>
<P
borderCSS="bg-amber-300"
dotCSS="bg-amber-300"
className={classNames(
"col-span-9 col-start-4",
"sm:col-span-6 sm:col-start-auto",
Expand All @@ -311,7 +311,7 @@ export default function Home({
with&nbsp;context&#8209;aware assistants.
</P>
<P
borderCSS="bg-red-400"
dotCSS="bg-red-400"
className={classNames(
"col-span-9",
"sm:col-span-6",
Expand All @@ -325,7 +325,7 @@ export default function Home({
concrete use&nbsp;cases.
</P>
<P
borderCSS="bg-emerald-400"
dotCSS="bg-emerald-400"
className={classNames(
"col-span-9 col-start-4",
"sm:col-span-6 sm:col-start-auto",
Expand Down Expand Up @@ -379,7 +379,7 @@ export default function Home({
</ReactiveImg>

<P
borderCSS="bg-sky-400"
dotCSS="bg-sky-400"
className={classNames(
"order-2 col-span-12",
"sm:col-span-6 sm:self-center",
Expand Down Expand Up @@ -423,7 +423,7 @@ export default function Home({
</ReactiveIcon>
</div>
<P
borderCSS="bg-sky-400"
dotCSS="bg-sky-400"
className={classNames(
"order-4 col-span-12",
"sm:col-span-6 sm:self-center",
Expand Down Expand Up @@ -465,7 +465,7 @@ export default function Home({
</ReactiveIcon>
</div>
<P
borderCSS="bg-sky-400"
dotCSS="bg-sky-400"
className={classNames(
"order-6 col-span-12",
"sm:order-5 sm:col-span-6 sm:self-center",
Expand Down Expand Up @@ -545,7 +545,7 @@ export default function Home({
</ReactiveImg>

<P
borderCSS="bg-amber-300"
dotCSS="bg-amber-300"
className={classNames(
"order-3",
"col-span-12",
Expand All @@ -562,7 +562,7 @@ export default function Home({
</P>

<P
borderCSS="bg-amber-300"
dotCSS="bg-amber-300"
className={classNames(
"order-4",
"col-span-12",
Expand All @@ -579,7 +579,7 @@ export default function Home({
<Strong>our&nbsp;Slackbot&nbsp;integration</Strong>.
</P>
<P
borderCSS="bg-amber-300"
dotCSS="bg-amber-300"
className={classNames(
"order-5",
"col-span-12",
Expand Down

0 comments on commit cca2646

Please sign in to comment.