Skip to content

Commit

Permalink
Merge pull request #351 from HoomanDgtl/main
Browse files Browse the repository at this point in the history
update: remove projects from ecosystem and update header in ecosystem page
  • Loading branch information
HoomanDgtl authored Aug 29, 2024
2 parents 69c0e7e + 87360fc commit 3987caa
Show file tree
Hide file tree
Showing 41 changed files with 20 additions and 382 deletions.
23 changes: 14 additions & 9 deletions src/components/ecosystem-pages/categories.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,33 @@ const pathName = astroUrl.pathname.split("/");
const { tags } = Astro.props;
// Normalize tags to lowercase and remove duplicates
const normalizedTags = [...new Set(tags.map(tag => tag.toLowerCase()))];
const normalizedTags = [...new Set(tags.map((tag) => tag.toLowerCase()))];
// Separate "ai & ml" tag and sort the rest alphabetically
const aiMlTag = ["ai & ml"];
const sortedTags = [
...aiMlTag,
...normalizedTags.filter(tag => tag !== "ai & ml").sort((a, b) => a.localeCompare(b)),
...normalizedTags
.filter((tag) => tag !== "ai & ml")
.sort((a, b) => a.localeCompare(b)),
];
// Function to display specific tags in proper casing or modify others appropriately
const displayTag = (tag) => {
const specialCases = {
"dao": "DAO",
dao: "DAO",
"pos validator": "PoS Validator",
"ai & ml": "AI & ML"
"ai & ml": "AI & ML",
};
return specialCases[tag.toLowerCase()] || tag
.split(" ")
.map(word => word.charAt(0).toUpperCase() + word.slice(1))
.join(" ");
}
return (
specialCases[tag.toLowerCase()] ||
tag
.split(" ")
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(" ")
);
};
---

<div class="hidden w-[200px] flex-shrink-0 pt-5 lg:block">
Expand Down
2 changes: 1 addition & 1 deletion src/components/ecosystem-pages/top-header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { tags } = Astro.props;
---

<h1 class="text-2xl font-bold md:block md:text-2lg lg:text-3lg">
Dive into the Akash ecosystem
Explore the Akash Ecosystem
</h1>

<div
Expand Down
20 changes: 0 additions & 20 deletions src/content/Ecosystem_Page/chihuahua-chain/index.md

This file was deleted.

Binary file not shown.
19 changes: 0 additions & 19 deletions src/content/Ecosystem_Page/cosmic-validator/index.md

This file was deleted.

Binary file not shown.
18 changes: 0 additions & 18 deletions src/content/Ecosystem_Page/cosmos-directory/index.md

This file was deleted.

Binary file not shown.
20 changes: 0 additions & 20 deletions src/content/Ecosystem_Page/craft-economy/index.md

This file was deleted.

Binary file not shown.
20 changes: 0 additions & 20 deletions src/content/Ecosystem_Page/desmos-network/index.md

This file was deleted.

Binary file not shown.
19 changes: 0 additions & 19 deletions src/content/Ecosystem_Page/evia-network/index.md

This file was deleted.

Binary file not shown.
18 changes: 0 additions & 18 deletions src/content/Ecosystem_Page/hnssearch/index.md

This file was deleted.

Binary file not shown.
19 changes: 0 additions & 19 deletions src/content/Ecosystem_Page/joe-aao/index.md

This file was deleted.

Binary file not shown.
20 changes: 0 additions & 20 deletions src/content/Ecosystem_Page/mantra/index.md

This file was deleted.

Binary file not shown.
20 changes: 0 additions & 20 deletions src/content/Ecosystem_Page/paloma/index.md

This file was deleted.

Binary file not shown.
19 changes: 0 additions & 19 deletions src/content/Ecosystem_Page/rango-exchange/index.md

This file was deleted.

Binary file not shown.
20 changes: 0 additions & 20 deletions src/content/Ecosystem_Page/restake/index.md

This file was deleted.

Binary file not shown.
19 changes: 0 additions & 19 deletions src/content/Ecosystem_Page/sifchain/index.md

This file was deleted.

Binary file not shown.
20 changes: 0 additions & 20 deletions src/content/Ecosystem_Page/smart-stake/index.md

This file was deleted.

Binary file not shown.
20 changes: 0 additions & 20 deletions src/content/Ecosystem_Page/space/index.md

This file was deleted.

Binary file removed src/content/Ecosystem_Page/space/project-banner.png
Binary file not shown.
19 changes: 0 additions & 19 deletions src/content/Ecosystem_Page/spark-ibc/index.md

This file was deleted.

Binary file not shown.
20 changes: 0 additions & 20 deletions src/content/Ecosystem_Page/swift-protocol/index.md

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 3987caa

Please sign in to comment.