Skip to content

Commit

Permalink
chore: removed an unnesserary lines and fix somethings
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveeifyeve committed Mar 28, 2024
1 parent ea0a1b5 commit 4f88c6e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
5 changes: 3 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
"rules": {
"recommended": true
},
"ignore": [".astro/**/*"]
"ignore": ["./.astro/*"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentWidth": 2,
"lineWidth": 80
"lineWidth": 80,
"ignore": ["./.astro/*"]
},
"css": {
"formatter": {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@
"preview": "astro preview",
"build": "astro build",
"astro": "astro",
"lint": "biome check --apply . && bun lint:css --fix",
"lint:css": "stylelint 'src/styles/**/*.css'",
"lint": "biome check --apply . && stylelint 'src/styles/**/*.css' --fix",
"fmt": "biome format . --write",
"biome": "bunx @biomejs/biome",
"check": "biome check . && bun lint:css && bun astro check",
"check": "biome check . && stylelint 'src/styles/**/*.css'&& bun astro check",
"postinstall": "husky install"
},
"trustedDependencies": ["sharp"],
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface Props {
const { title, className, desc, banner } = Astro.props;
---

<Head title={String(title) ?? "TeaClent Website"} customDescription={desc} />
<Head title={String(title) ?? "TeaClent Website"} customDescription={desc}, bannerPath={banner} />
<Header />
<div class={twMerge(`flex flex-col h-screen text-white my-[5%] mx-[5%] bg-[var(--nav-color)] rounded-lg ${className}`)}>
<slot />
Expand Down
5 changes: 2 additions & 3 deletions src/pages/apply/[apply].astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import AppError from "@layout/error.astro";
import Layout from "@layout/layout.astro";
const { apply } = Astro.params;
Expand All @@ -21,13 +20,13 @@ if (apply === "staff") {
<Layout title={title}>
{apply === 'staff' ? (
<div class="box" style="position: relative;">
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLScOuyHA9sX_fW3bijeuDOoUWVIPLptbuyavkZ4XC__8DTHLSg/viewform?embedded=true" width="640" height="1445" class="bg-transparent" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLScOuyHA9sX_fW3bijeuDOoUWVIPLptbuyavkZ4XC__8DTHLSg/viewform?embedded=true" width="640" height="1445" class="bg-transparent border-none">Loading…</iframe>
<br/>
<a href="/apply" style="position: absolute; bottom: 20px; right: 20px;">Go Back</a>
</div>
) : apply === 'team' ? (
<div class="box" style="position: relative;">
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSfy0okWtCh1xMZ5YOrQYD-PYKLog3SzAUEYIfvsIE418pdiDA/viewform?embedded=true" width="640" height="1445" class="bg-transparent" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSfy0okWtCh1xMZ5YOrQYD-PYKLog3SzAUEYIfvsIE418pdiDA/viewform?embedded=true" width="640" height="1445" class="bg-transparent border-none">Loading…</iframe>
<br/>
<a href="/apply" style="position: absolute; bottom: 20px; right: 20px;">Go Back</a>
</div>
Expand Down

0 comments on commit 4f88c6e

Please sign in to comment.