-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #387 from HoomanDgtl/main
feat: new font, feel & illustrations updated..
- Loading branch information
Showing
136 changed files
with
572 additions
and
7,917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
import Card from "@/components/community-pages/card.astro"; | ||
import SearchDialog from "@/components/community-pages/search-dialog"; | ||
import Pagination from "@/components/pagination.astro"; | ||
import Tag from "@/components/ui/tag2.astro"; | ||
import { proseClasses } from "@/lib/prose-classes"; | ||
import TopMargin from "../ui/top-margin.astro"; | ||
import { type CollectionEntry } from "astro:content"; | ||
type Project = CollectionEntry<"Community_Contributions_Page">; | ||
type Props = { | ||
tags: string[]; | ||
page: any; | ||
}; | ||
const { tags, page } = Astro.props; | ||
const astroUrl = Astro.url; | ||
const communityPage = await Astro.glob( | ||
"../../content/Community_Page/_community-contributions/*.mdx", | ||
); | ||
const PageContent = communityPage[0].Content; | ||
const pageFrontMatter = communityPage[0].frontmatter; | ||
--- | ||
|
||
<TopMargin class="container mt-10 md:mt-[60px] lg:mt-20"> | ||
<div> | ||
<div> | ||
<div class="mt-10 md:mt-0"> | ||
<h1 id="overview" class="text-3xl md:text-4xl lg:text-5xl"> | ||
{pageFrontMatter.title} | ||
</h1> | ||
</div> | ||
|
||
<div class="md:-mt-10"> | ||
<article class={proseClasses}> | ||
<PageContent /> | ||
</article> | ||
</div> | ||
|
||
<div class="mt-[72px] flex items-center justify-between"> | ||
<h3 class="text-xl font-semibold md:text-2xl lg:text-3xl"> | ||
Community Contributions | ||
</h3> | ||
</div> | ||
<div | ||
class="not-prose mt-6 flex flex-col justify-between gap-x-6 gap-y-4 md:mt-8 md:gap-y-5 lg:flex-row lg:border-b lg:pb-[20px]" | ||
> | ||
<div | ||
class="flex items-center gap-x-4 border-b pb-4 md:pb-5 lg:border-0 lg:pb-0" | ||
> | ||
<Tag | ||
active={astroUrl.pathname.split("/")[3] === ""} | ||
href={`/community/community-contributions/`} | ||
> | ||
All | ||
</Tag> | ||
|
||
{ | ||
tags.map((tag: string) => ( | ||
<Tag | ||
active={ | ||
astroUrl.pathname | ||
.split("/")[3] | ||
.split("%20") | ||
.join(" ") | ||
.toLowerCase() === tag.toLowerCase() | ||
} | ||
href={`/community/community-contributions/${tag.toLowerCase()}/latest/1`} | ||
> | ||
{tag.charAt(0).toUpperCase() + tag.slice(1)} | ||
</Tag> | ||
)) | ||
} | ||
</div> | ||
|
||
<div class="flex items-center justify-end lg:justify-between"> | ||
<SearchDialog client:load currentPath={astroUrl.pathname} /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div> | ||
<div | ||
class="mt-[42px] grid grid-cols-1 gap-y-8 md:grid-cols-2 md:gap-x-6 lg:grid-cols-3 2xl:grid-cols-4" | ||
> | ||
{ | ||
page.data.map((contribution: Project, i: number) => { | ||
return <Card contribution={contribution} />; | ||
}) | ||
} | ||
</div> | ||
|
||
<Pagination page={page} /> | ||
</div> | ||
</div> | ||
</TopMargin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.