diff --git a/package-lock.json b/package-lock.json index 2adcc1c..935642a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,9 @@ "tailwindcss": "^3.4.3", "vinxi": "^0.3.11" }, + "devDependencies": { + "sass": "^1.77.2" + }, "engines": { "node": ">=18" } @@ -4960,6 +4963,12 @@ "node": ">= 4" } }, + "node_modules/immutable": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.6.tgz", + "integrity": "sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ==", + "devOptional": true + }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -8090,6 +8099,23 @@ } ] }, + "node_modules/sass": { + "version": "1.77.2", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.77.2.tgz", + "integrity": "sha512-eb4GZt1C3avsX3heBNlrc7I09nyT00IUuo4eFhAbeXWU2fvA7oXI53SxODVAA+zgZCk9aunAZgO+losjR3fAwA==", + "devOptional": true, + "dependencies": { + "chokidar": ">=3.0.0 <4.0.0", + "immutable": "^4.0.0", + "source-map-js": ">=0.6.2 <2.0.0" + }, + "bin": { + "sass": "sass.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/scule": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz", diff --git a/package.json b/package.json index 6bc5255..bec6b1e 100644 --- a/package.json +++ b/package.json @@ -23,5 +23,8 @@ }, "engines": { "node": ">=18" + }, + "devDependencies": { + "sass": "^1.77.2" } } diff --git a/src/app.css b/src/app.css deleted file mode 100644 index eda86e6..0000000 --- a/src/app.css +++ /dev/null @@ -1,16 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -h1 { - @apply text-5xl font-bold; -} -h2 { - @apply text-4xl font-bold; -} -h3 { - @apply text-3xl font-bold; -} -h3 { - @apply text-2xl font-bold; -} diff --git a/src/app.scss b/src/app.scss new file mode 100644 index 0000000..914f78a --- /dev/null +++ b/src/app.scss @@ -0,0 +1,54 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + +main { + h1, + h2, + h3, + h4 { + @apply mt-[.4em] mb-[.2em] scroll-mt-2 leading-normal; + } + + h1 { + @apply text-5xl font-bold; + } + h2 { + @apply text-4xl font-bold; + } + h3 { + @apply text-3xl font-bold; + } + h4 { + @apply text-2xl font-bold; + } + + p { + @apply my-2 leading-normal; + } + + article { + @apply max-w-4xl; + + img { + @apply my-2 inline-flex; + } + + ul { + margin: 0.5rem 0.5rem 0.5rem 1.5rem; + list-style-type: disc; + list-style: disc; + ul { + margin: 0 1rem; + } + } + + table { + @apply table; + } + + a { + @apply text-primary; + } + } +} diff --git a/src/app.tsx b/src/app.tsx index cfb28be..6fb6705 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -3,7 +3,7 @@ import { FileRoutes } from "@solidjs/start/router"; import { Suspense } from "solid-js"; import Nav from "~/components/Nav"; import Footer from "./components/Footer"; -import "./app.css"; +import "./app.scss"; import "./fonts.css"; export default function App() { diff --git a/src/routes/index.mdx b/src/routes/index.mdx index c9fd5e7..a5a2c00 100644 --- a/src/routes/index.mdx +++ b/src/routes/index.mdx @@ -4,7 +4,7 @@ import { NewsList } from "~/components/NewsList"
@@ -20,12 +20,12 @@ import { NewsList } from "~/components/NewsList"
-
+

Internet Exchange

-
+
@@ -41,7 +41,7 @@ import { NewsList } from "~/components/NewsList"
-
+

Association

@@ -51,7 +51,7 @@ import { NewsList } from "~/components/NewsList"

Support

-
+
diff --git a/src/routes/news/[slug].tsx b/src/routes/news/[slug].tsx index 5b7c1ec..dc6d8f6 100644 --- a/src/routes/news/[slug].tsx +++ b/src/routes/news/[slug].tsx @@ -34,12 +34,15 @@ export default () => { /> {/*

{post()?.title}

*/}
-
-

{post()?.title}

-

{post()?.published}

-

{post()?.authors.join(", ")}

-
-
+
+
+

{post()?.title}

+

+ {post()?.published} by {post()?.authors.join(", ")} +

+
+
+
); };