refactor: Reorganize project structure and update dependencies
- Removed blog, project, and work content files - Updated package dependencies including npm and removed license metadata - Refactored component layouts and page routes - Modified appwrite service for data operations
This commit is contained in:
1 parent
7997eccb12
commit
6ab3254384
51 files changed
+2951
-3221
No files matched your search
@@ -3,33 +3,34 @@ import type { BlogPost, Project } from "@lib/appwrite-service"
|
||||
|
||||
type Props = {
|
||||
entry: BlogPost | Project | any
|
||||
collection?: string
|
||||
pill?: boolean
|
||||
}
|
||||
|
||||
export default function ArrowCard({entry, pill}: Props) {
|
||||
export default function ArrowCard({entry, pill, collection}: Props) {
|
||||
return (
|
||||
<a href={`/${entry.$collectionId === 'blog' ? 'blog' : 'projects'}/${entry.$id}`} class="group p-4 gap-3 flex items-center border rounded-lg hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 transition-colors duration-300 ease-in-out">
|
||||
<a href={`/${collection === 'blog' ? 'blog' : 'projects'}/${entry.$id}`} class="group p-4 gap-3 flex items-center border border-spaghetti-brown rounded-lg hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 transition-colors duration-300 ease-in-out">
|
||||
<div class="w-full group-hover:text-black group-hover:dark:text-white blend">
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
{pill &&
|
||||
<div class="text-sm capitalize px-2 py-0.5 rounded-full border border-black/15 dark:border-white/20 bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20 text-spaghetti-brown">
|
||||
{entry.$collectionId === "blog" ? "post" : "project"}
|
||||
<div class="text-sm capitalize px-2 py-0.5 rounded-full border border-black/15 dark:border-white/20 bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20 dark:text-spaghetti-brown">
|
||||
{collection === "blog" ? "post" : "project"}
|
||||
</div>
|
||||
}
|
||||
<div class="text-sm uppercase">
|
||||
{formatDate(entry.date)}
|
||||
</div>
|
||||
</div>
|
||||
<div class="font-semibold mt-3 text-spaghetti-brown">
|
||||
<div class="font-semibold mt-3 dark:text-spaghetti-brown">
|
||||
{entry.title}
|
||||
</div>
|
||||
|
||||
<div class="text-sm line-clamp-2 text-spaghetti-brown">
|
||||
<div class="text-sm line-clamp-2 dark:text-spaghetti-brown">
|
||||
{entry.summary}
|
||||
</div>
|
||||
<ul class="flex flex-wrap mt-2 gap-1">
|
||||
{entry.tags.map((tag:string) => (
|
||||
<li class="text-xs uppercase py-0.5 px-1 rounded bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20 text-spaghetti-brown">
|
||||
<li class="text-xs uppercase py-0.5 px-1 rounded bg-spaghetti-yellow/20 dark:bg-spaghetti-yellow/20 dark:text-spaghetti-brown">
|
||||
{tag}
|
||||
</li>
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user