Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wheelsbot7 committed Dec 10, 2024
1 parent 770415f commit 2e34385
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 21 deletions.
4 changes: 2 additions & 2 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const site = lume(
src: "./src",
location: new URL("https://www.wheelsbot.dev"),
},
{ markdown }
{ markdown },
);

site.use(plugins());
Expand All @@ -39,7 +39,7 @@ site.use(
themes: ["material-theme-darker"],
},
theme: "material-theme-darker",
})
}),
);

export default site;
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "lume/types.ts";

export type { Options } from "./plugins.ts";

export default function(options: Partial<Options> = {}) {
export default function (options: Partial<Options> = {}) {
return (site: Lume.Site) => {
// Configure the site
site.use(plugins(options));
Expand Down
6 changes: 3 additions & 3 deletions plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const defaults: Options = {
};

/** Configure the site */
export default function(userOptions?: Options) {
export default function (userOptions?: Options) {
const options = merge(defaults, userOptions);

return (site: Lume.Site) => {
Expand All @@ -48,7 +48,7 @@ export default function(userOptions?: Options) {
tailwindcss({
extensions: [".html", ".jsx", ".vto"],
options: tailwindOptions,
})
}),
)
.use(postcss())
.use(basePath())
Expand Down Expand Up @@ -81,7 +81,7 @@ export default function(userOptions?: Options) {
preact: ["Component"],
},
},
})
}),
)
.copy("fonts")
.copy("js")
Expand Down
2 changes: 0 additions & 2 deletions serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const count = await kv.get(["visitors"]);

console.log(`You are visitor number #${count.value}`);


const server = new Server({
port: 8000,
root: `${Deno.cwd()}/_site`,
Expand All @@ -19,4 +18,3 @@ const server = new Server({
server.start();

console.log("Listening on http://localhost:8000");

54 changes: 49 additions & 5 deletions src/_includes/css/ds.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,29 @@ input[type="submit"] {
text-align: center;
text-decoration: none;
}
:is(button, input[type="button"], input[type="reset"], input[type="submit"], a[role="button"]):not(:disabled) {
:is(
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
a[role="button"]
):not(:disabled) {
cursor: pointer;
}
:is(button, input[type="button"], input[type="reset"], input[type="submit"], a[role="button"]):disabled,
[aria-disabled="false"]:is(button, input[type="button"], input[type="reset"], input[type="submit"], a[role="button"]) {
:is(
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
a[role="button"]
):disabled,
[aria-disabled="false"]:is(
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
a[role="button"]
) {
opacity: 0.33;
pointer-events: none;
}
Expand Down Expand Up @@ -328,11 +346,37 @@ textarea {
padding: 0.7em;
width: 100%;
}
:is(input[type="date"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="time"], input[type="url"], input[type="week"], textarea):disabled {
:is(
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
textarea
):disabled {
opacity: 0.33;
pointer-events: none;
}
:is(input[type="date"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="time"], input[type="url"], input[type="week"], textarea)::placeholder {
:is(
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
textarea
)::placeholder {
color: currentColor;
opacity: 0.5;
}
Expand Down
2 changes: 1 addition & 1 deletion src/archive.page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const layout = "layouts/archive.vto";

export default function*({ search, paginate, i18n }) {
export default function* ({ search, paginate, i18n }) {
const posts = search.pages("type=post", "date=desc");

for (
Expand Down
2 changes: 1 addition & 1 deletion src/archive_result.page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const layout = "layouts/archive_result.vto";

export default function*({ search, i18n }) {
export default function* ({ search, i18n }) {
// Generate a page for each tag
for (const tag of search.values("tags")) {
yield {
Expand Down
5 changes: 3 additions & 2 deletions src/js/software-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class SoftwareList extends HTMLElement {
updateselectedSoftware() {
// Get all the checkboxes inside the shadow DOM
const checkboxes = this.shadowRoot.querySelectorAll(
"input[type=\"checkbox\"]:checked",
'input[type="checkbox"]:checked',
);

// Create a string of selected software
Expand All @@ -78,7 +78,8 @@ class SoftwareList extends HTMLElement {
.join(" ");

// Update the text content of the paragraph with the selected software
this.selectedSoftwareParagraph.textContent = `sudo pacman -Sy ${selectedSoftware}`;
this.selectedSoftwareParagraph.textContent =
`sudo pacman -Sy ${selectedSoftware}`;
}
}

Expand Down
8 changes: 5 additions & 3 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ pre code {
white-space: pre-wrap !important;
}

code { display:inline-flex;
code {
display: inline-flex;
}
/* copied from pixelde.su */

Expand All @@ -67,8 +68,9 @@ code { display:inline-flex;
}

.button {
@apply inline-flex items-center rounded-md shadow-lg font-bold dark:text-white text-black
px-2 py-0.5 transition-all hover:translate-y-0.5;
@apply inline-flex items-center rounded-md shadow-lg font-bold
dark:text-white text-black px-2 py-0.5 transition-all
hover:translate-y-0.5;
}

.button svg {
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import typography from "npm:@tailwindcss/typography";
import plugin from "npm:tailwindcss/plugin.js";

export default {
content: ['./src/**/*.(html,js,css,vto)'],
content: ["./src/**/*.(html,js,css,vto)"],
mode: "jit",
darkMode: ["variant", [
"@media (prefers-color-scheme: dark) { &:not(.light *) }",
Expand Down

0 comments on commit 2e34385

Please sign in to comment.