Skip to content

Commit 87785b2

Browse files
authored
Merge pull request #25 from calimania/cafecito
Added cafecito package
2 parents 3a9ac02 + 71cc180 commit 87785b2

File tree

8 files changed

+87
-258
lines changed

8 files changed

+87
-258
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ pnpm-debug.log*
2323

2424
# jetbrains setting folder
2525
.idea/
26+
27+
.bevel

package-lock.json

Lines changed: 52 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
"@tabler/icons-react": "^3.31.0",
1717
"@tailwindcss/typography": "^0.5.16",
1818
"@tailwindcss/vite": "^4.0.14",
19-
"@types/react": "^19.0.10",
20-
"@types/react-dom": "^19.0.4",
19+
"@types/react": "^18.1.0",
20+
"@types/react-dom": "^18.1.0",
2121
"astro": "^5.5.2",
22+
"cafecito": "^0.11.0",
2223
"framer-motion": "^12.5.0",
2324
"marked": "^15.0.7",
24-
"react": "^19.0.0",
25-
"react-dom": "^19.0.0",
25+
"react": "^18.1.0",
26+
"react-dom": "^18.1.0",
2627
"tailwindcss": "^4.0.14",
2728
"zod": "^3.24.2"
2829
},

src/components/content.blocks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default function PageContent({ params, }: PageContentProps) {
114114
const isImage = node.url?.match(/\.(jpg|jpeg|png|gif|webp)$/i);
115115
if (isImage && renderedImages.has(node.url as string)) return null;
116116

117-
const isExternal = !node.url?.startsWith(markketplace.url);
117+
const isExternal = !node.url?.startsWith(markketplace.url) && !node.url?.startsWith('/');
118118

119119
return (
120120
<a

src/components/layout.footer.tsx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ const Footer = ({store, page}: FooterProps) => {
5555
))}
5656
</ul>
5757
</div>
58-
59-
{/* Contact/Social */}
6058
<div>
6159
<h3 className="text-white font-semibold mb-4">Learn More</h3>
6260
<ul className="space-y-2">
@@ -78,22 +76,9 @@ const Footer = ({store, page}: FooterProps) => {
7876
{/* Bottom Bar */}
7977
<div className="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
8078
<p className="text-sm text-gray-400">
81-
© {currentYear} {store?.title || 'All rights reserved.'}
79+
© {currentYear} {store?.title || 'Some rights reserved.'}
8280
</p>
8381
<div className="flex space-x-6 mt-4 md:mt-0">
84-
{/* {store?.URLS?.map((link) => (
85-
<a
86-
key={link.id}
87-
href={link.URL}
88-
target={link.URL.startsWith('http') ? '_blank' : '_self'}
89-
rel="noopener noreferrer"
90-
className="text-sm text-gray-400 hover:text-white transition-colors"
91-
>
92-
{link.Label}
93-
</a>
94-
))} */}
95-
{/* <a href="/" className="text-sm text-gray-400 hover:text-white transition-colors">home</a> */}
96-
9782
{!isHomePage && (
9883
<a
9984
href="/"

src/content/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { markketplace } from "../config";
22
import { defineCollection } from "astro:content";
33

4-
import { strapiLoader } from "../markket";
4+
import { strapiLoader } from "../markket/strapi.api";
55

66
const pages = defineCollection({
77
loader: strapiLoader({

src/markket/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11

2-
3-
import { strapiLoader } from "./strapi.api";
4-
5-
export { strapiLoader };
2+
export { strapiLoader } from "./strapi.api";

0 commit comments

Comments
 (0)