on master help sign in
dec spotlight, attempted to add groups functionality to ecosystem
commit4b31c2dd2c5a9b681b2af1b04fcaba7777fbb11c authorGordon <gordon@hey.com> dateTue 29 Nov 2022, 12:32 (4 years ago) parent4c31277
6 files changed+66−2
components/ecosystem/IndexCard.js+2−1 components/ecosystem/Post.js+10 content/applications/~tirrel/scene.md+14 content/ecosystem/spotlight/2022-december.md+34 pages/ecosystem/index.js+4−1 pages/ecosystem/spotlight/[slug].js+2
components/ecosystem/IndexCard.js+2−1
@@ -41,9 +41,10 @@ const badge = (type) => {
4141 {
4242 "bg-[#B37ED7]": type === "Organization",
4343 "bg-[#83b2d4]": type === "Application",
44+ "bg-[#219DFF]": type === "Group",
4445 "bg-wall-600": type === "Podcast",
4546 "bg-[#8dd5b1]": type === "Marketplace",
46− "bg-[#B5966D]": type === "Article"
47+ "bg-[#B5966D]": type === "Article",
4748 }
4849 )}
4950 >
components/ecosystem/Post.js+10
@@ -80,6 +80,15 @@ export default function Post({ post }) {
8080 </a>
8181 </Link>
8282 )}
83+
84+ {post[feat].type === "Group" && (
85+ <Link href={href || "#"} passHref>
86+ <a class="button-sm text-white flex-col bg-green-400 cursor-pointer pr-4 w-fit">
87+ More about {post[feat].title}
88+ </a>
89+ </Link>
90+ )}
91+
8392 </div>
8493 ) : null;
8594 });
@@ -96,6 +105,7 @@ const badge = (type) => {
96105 "bg-wall-600": type === "Podcast",
97106 "bg-[#8dd5b1]": type === "Marketplace",
98107 "bg-[#B5966D]": type === "Article",
108+ "bg-[#219DFF]": type === "Group",
99109 }
100110 )}
101111 >
content/applications/~tirrel/scene.mdnew file+14
@@ -0,0 +1,14 @@
1++++
2+title = "Scene"
3+shortcode = ""
4+license = "MIT"
5+image = "https://tirrel.io/assets/scene-logo-stroke.svg"
6+bgColor = "rgb(0, 0, 0)"
7+developer = "Tirrel Corp."
8+website = "https://tirrel.io"
9+description = "The new Urbit desktop, by ~tirrel corp."
10++++
11+
12+![Screenshot](https://tirrel.io/assets/scene-demo-screenshot.webp)
13+
14+[Download scene here](https://tirrel.io/scene/index.html).
content/ecosystem/spotlight/2022-december.mdnew file+34
@@ -0,0 +1,34 @@
1++++
2+title = "December 2022"
3+date = "2022-11-29"
4+
5+[featured-1]
6+title = "UF Public"
7+description = "The best place to get the latest updates from the team at the Urbit Foundation."
8+image="https://interstellar.nyc3.digitaloceanspaces.com/battus-datsun/2022.11.07..19.39.22-Sig.png"
9+content = """
10+Join the new and improved Urbit Foundation group to get updates from the Urbit Foundation on developer activity, infrastructure, and general announcements. This group also includes a notebook for available talent, as well as a job board, for individuals in the community seeking work, or seeking to hire.
11+
12+"""
13+
14+[featured-2]
15+title = "Groups 2.0 (Beta)"
16+description = "The new Groups application from Tlon is officially now in beta."
17+image="https://storage.googleapis.com/media.urbit.org/site/ecosystem/articles/3things40.jpg"
18+content = """
19+
20+Test drive the future of Urbit now with Tlon's official beta of Groups. This beta features a
21+
22+"""
23+
24+[featured-3]
25+
26+title = "Scene"
27+image=""
28+description = "Explore Urbit with tirrel's desktop app, Scene."
29+content = """
30+
31+Tirrel is developing an outside-the-browser Urbit experience geared towards content creators.
32+
33+"""
34++++
pages/ecosystem/index.js+4−1
@@ -46,6 +46,9 @@ export default function Ecosystem({
4646 case "applications":
4747 title = "Applications • Ecosystem";
4848 break;
49+ case "applications":
50+ title = "Groups • Ecosystem";
51+ break;
4952 case "marketplaces":
5053 title = "Marketplaces • Ecosystem";
5154 break;
@@ -296,7 +299,7 @@ function EcosystemSidebar() {
296299 <ActiveLink
297300 currentPath={currentPath}
298301 className="type-ui"
299− href="/ecosystem?type=marketplaces"
302+ href="/ecosystem?type=groups"
300303 >
301304 Marketplaces
302305 </ActiveLink>
pages/ecosystem/spotlight/[slug].js+2
@@ -50,6 +50,7 @@ export async function getStaticProps({ params }) {
5050 "ecosystem/spotlight"
5151 );
5252 const marketplaces = getAllPosts(["title", "image", "slug"], "marketplaces");
53+ const groups = getAllPosts(["title", "tile,", "description", "slug"], "groups");
5354 const podcasts = getAllPosts(
5455 ["title", "image", "date", "podcast", "slug"],
5556 "podcasts",
@@ -89,6 +90,7 @@ export async function getStaticProps({ params }) {
8990 const matchedPost = [
9091 ...applications.map((e) => ({ ...e, type: "Application" })),
9192 ...organizations.map((e) => ({ ...e, type: "Organization" })),
93+ ...groups.map((e) => ({ ...e, type: "Group" })),
9294 ...podcasts.map((e) => ({ ...e, type: "Podcast" })),
9395 ...marketplaces.map((e) => ({ ...e, type: "Marketplace" })),
9496 ...articles.map((e) => ({ ...e, type: "Article" })),