Skip to content

Commit 102ca07

Browse files
committed
feat: Move away from panda and make theme playful
1 parent 5e84dec commit 102ca07

14 files changed

+964
-419
lines changed

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
"type": "module",
44
"version": "0.0.1",
55
"scripts": {
6-
"prepare": "pnpm run codegen",
76
"dev": "astro dev",
87
"start": "astro preview",
98
"build": "CI=false astro check && astro build",
109
"preview": "astro preview",
11-
"astro": "astro",
12-
"codegen": "panda codegen"
10+
"astro": "astro"
1311
},
1412
"dependencies": {
1513
"@astrojs/check": "^0.5.8",
@@ -31,7 +29,5 @@
3129
"marked": "^15.0.7",
3230
"typescript": "^5.4.2"
3331
},
34-
"devDependencies": {
35-
"@pandacss/dev": "^0.35.0"
36-
}
32+
"devDependencies": {}
3733
}

panda.config.ts

Lines changed: 0 additions & 120 deletions
This file was deleted.

postcss.config.cjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
plugins: {
3-
'@pandacss/dev/postcss': {},
3+
// PostCSS plugins can be added here as needed
4+
// For now, we're using vanilla CSS with no build-time processing
45
},
5-
}
6+
};

src/components/Container.astro

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
---
2-
import { container } from "../../styled-system/patterns";
32
---
43

5-
<div
6-
class={container({
7-
width: "full",
8-
px: "4",
9-
maxWidth: "4xl",
10-
marginX: "auto",
11-
})}
12-
>
4+
<div class="container w-full px-4 max-w-4xl mx-auto">
135
<slot />
146
</div>

src/components/ContentfulPostsList.astro

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import { POSTS_PER_PAGE_MAX } from "../consts";
33
4-
import { css } from "../../styled-system/css";
54
import {
65
contentfulClient,
76
type Post,
@@ -41,17 +40,12 @@ const {
4140
}: ContentfulPostsListProps = Astro.props;
4241
---
4342

44-
<ul class={css({ listStyle: "none", p: 0 })}>
43+
<ul class="list-none p-0">
4544
{
4645
posts
4746
.slice((pageParam - 1) * postsPerPage, pageParam * postsPerPage)
4847
.map((post: any) => (
49-
<li
50-
class={css({
51-
mb: 4,
52-
color: "primary",
53-
})}
54-
>
48+
<li class="mb-4 text-primary">
5549
<a href={`/blog/${post.slug}`}>
5650
Title:{post.title}, Date: {post.publishDate}, Slug: {post.slug}
5751
</a>

src/components/ContentfulWorksList.astro

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
import Pagination from "./PagePagination.astro";
33
import { POSTS_PER_PAGE_MAX } from "../consts";
4-
import { css } from "../../styled-system/css";
54
import { contentfulClient, type Work } from "../lib/contentful";
65
76
export const contentfulEntries = await contentfulClient.getEntries<Work>({
@@ -33,12 +32,7 @@ const works = contentfulPosts.slice(
3332
<ul>
3433
{
3534
works.map((post: any) => (
36-
<li
37-
class={css({
38-
mb: 4,
39-
color: "primary",
40-
})}
41-
>
35+
<li class="mb-4 text-primary">
4236
Title: {post.title}, Date: {post.publishDate}, Slug: {post.slug}
4337
</li>
4438
))

src/components/Footer.astro

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
2-
import { css } from "../../styled-system/css";
3-
42
const today = new Date();
53
---
64

7-
<footer class={css({ p: "2em 1em 6em 1em", bg: "gray.100", textAlign: "center" })}>
5+
<footer class="p-5 text-center bg-gray-100 font-playful">
86
&copy; {today.getFullYear()} Your name here. All rights reserved.
9-
<div class={css({ display: "flex", justifyContent: "center", gap: "1em", mt: "1em" })} class="social-links">
7+
<div class="flex justify-center gap-4 mt-4 social-links">
108
<a href="https://m.webtoo.ls/@astro" target="_blank">
119
<span class="sr-only">Follow Astro on Mastodon</span>
1210
<svg
@@ -41,24 +39,3 @@ const today = new Date();
4139
</a>
4240
</div>
4341
</footer>
44-
<style>
45-
footer {
46-
padding: 2em 1em 6em 1em;
47-
background: linear-gradient(var(--gray-gradient)) no-repeat;
48-
color: rgb(var(--gray));
49-
text-align: center;
50-
}
51-
.social-links {
52-
display: flex;
53-
justify-content: center;
54-
gap: 1em;
55-
margin-top: 1em;
56-
}
57-
.social-links a {
58-
text-decoration: none;
59-
color: rgb(var(--gray));
60-
}
61-
.social-links a:hover {
62-
color: rgb(var(--gray-dark));
63-
}
64-
</style>

0 commit comments

Comments
 (0)