Skip to content

Commit

Permalink
style: bad format autofix by ✨ Prettier ✨
Browse files Browse the repository at this point in the history
Took 3 minutes
  • Loading branch information
Croos3r committed May 18, 2024
1 parent 0273f8d commit 26026d0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
16 changes: 7 additions & 9 deletions src/components/LButton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts" setup>
import { twMerge } from "tailwind-merge";
export type LButtonProps = {
Expand All @@ -8,22 +7,21 @@ export type LButtonProps = {
light?: boolean;
small?: boolean;
};
const {
text,
variant,
light,
small
} = withDefaults(defineProps<LButtonProps>(), {
const { text, variant, light, small } = withDefaults(defineProps<LButtonProps>(), {
variant: "primary",
light: false,
small: false
small: false,
});
let style = twMerge("rounded-full font-bold", small ? "body-tiny px-6 py-3" : "body-default px-8 py-4");
if (variant === "primary")
style = twMerge(style, light ? "bg-neutral-100 text-primary" : "bg-primary text-neutral-100");
else
style = twMerge(style, "border bg-transparent", light ? "text-neutral-100 border-neutral-100" : "text-neutral-800 border-neutral-400");
style = twMerge(
style,
"border bg-transparent",
light ? "text-neutral-100 border-neutral-100" : "text-neutral-800 border-neutral-400",
);
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Home/HeroSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import LButton from "../../components/LButton.vue";
<p class="body-small">
Experience the privacy of LibertAI's decentralized AI platform - chat freely, without data logging. Explore
various Chat-GPT like open-source models, like Llama 3 70b, for free. Create personalized AI assistants for
enhanced productivity.<br>
<br>
enhanced productivity.<br />
<br />
Your AI journey, your privacy!
</p>
<a href="https://chat.libertai.io">
Expand Down
6 changes: 3 additions & 3 deletions src/pages/Home/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import Hero from "./HeroSection.vue";
import PartnersSection from "./PartnersSection.vue";
import FooterSection from "./FooterSection.vue";
import Hero from "./HeroSection.vue";
import PartnersSection from "./PartnersSection.vue";
import FooterSection from "./FooterSection.vue";
</script>

<template>
Expand Down
10 changes: 5 additions & 5 deletions src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ import Design from "./pages/Design/index.vue";
const routes = [
{
path: "/",
component: Home
component: Home,
},
{
path: "/company",
component: Company
component: Company,
},
{
path: "/design",
component: Design
}
component: Design,
},
];

export const router = createRouter({
history: createWebHistory(),
routes
routes,
});

0 comments on commit 26026d0

Please sign in to comment.