Skip to content

Commit 9798e97

Browse files
committed
Tidy up source/github links
1 parent b1f1f05 commit 9798e97

6 files changed

Lines changed: 37 additions & 22 deletions

File tree

src/components/home/ShapedByMany.astro

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ import slackSqTl from "@/assets/icons/community/slack-sq-tl.svg?raw";
77
import slackSqTr from "@/assets/icons/community/slack-sq-tr.svg?raw";
88
import Button from "@/components/ui/Button.astro";
99
import ArrowRight from "@/components/ui/icons/ArrowRight.astro";
10+
import Forum from "@/components/ui/icons/Forum.astro";
11+
import Github from "@/components/ui/icons/Github.astro";
1012
import Reveal from "@/components/ui/Reveal.astro";
1113
1214
const links = [
13-
{ label: "Team", href: "/development/", icon: "none" as const },
15+
{
16+
label: "Source",
17+
href: "https://github.com/elixir-lang/elixir",
18+
icon: "github" as const,
19+
external: true,
20+
},
1421
{
1522
label: "Slack",
1623
href: "https://elixir-slack.community",
@@ -20,7 +27,7 @@ const links = [
2027
{
2128
label: "Forum",
2229
href: "https://elixirforum.com",
23-
icon: "none" as const,
30+
icon: "forum" as const,
2431
external: true,
2532
},
2633
{
@@ -113,6 +120,12 @@ const links = [
113120
set:html={discordIcon}
114121
/>
115122
)}
123+
{l.icon === "github" && (
124+
<Github size={32} class="size-6 shrink-0 md:size-8" />
125+
)}
126+
{l.icon === "forum" && (
127+
<Forum size={32} class="size-6 shrink-0 md:size-8" />
128+
)}
116129
<span class="font-sans text-body font-medium text-black md:text-lead">
117130
{l.label}
118131
</span>

src/components/home/UseElixirFor.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ const starConfig = JSON.stringify(
619619
</span>
620620
</a>
621621
<a
622-
href="https://hex.pm/packages"
622+
href="https://hex.pm/"
623623
target="_blank"
624624
rel="noopener noreferrer"
625625
class="inline-flex items-center justify-center rounded-sm border border-gray-40 px-6 py-4 transition-all duration-base ease-out-quart will-change-transform hover:scale-[1.02] hover:border-purple-60 hover:bg-white/5 active:scale-[0.98]"

src/components/layout/SiteFooter.astro

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import discordIcon from "@/assets/icons/community/discord-footer.svg?raw";
33
import slackIcon from "@/assets/icons/community/slack-footer.svg?raw";
4-
import twitterIcon from "@/assets/icons/community/twitter-x.svg?raw";
4+
import Github from "@/components/ui/icons/Github.astro";
55
import Logo from "@/components/ui/Logo.astro";
66
import { footerColumns, footerSocials } from "@/data/navigation";
77
@@ -11,7 +11,6 @@ const importantLinks = footerColumns[0];
1111
const community = footerColumns[1];
1212
1313
const socialIcons: Record<string, string> = {
14-
"Twitter / X": twitterIcon,
1514
Slack: slackIcon,
1615
Discord: discordIcon,
1716
};
@@ -91,7 +90,7 @@ const socialIcons: Record<string, string> = {
9190

9291
<ul
9392
class="mt-auto flex items-center justify-start gap-5 pt-3 lg:gap-4"
94-
aria-label="Social media"
93+
aria-label="Community links"
9594
>
9695
{footerSocials.map((s) => (
9796
<li>
@@ -102,11 +101,15 @@ const socialIcons: Record<string, string> = {
102101
aria-label={s.label}
103102
class="inline-flex size-6 items-center justify-center text-white transition-opacity duration-fast ease-out-quart hover:opacity-70"
104103
>
105-
<span
106-
class="block size-6"
107-
aria-hidden="true"
108-
set:html={socialIcons[s.label]}
109-
/>
104+
{s.label === "Source" ? (
105+
<Github size={24} class="size-6" />
106+
) : (
107+
<span
108+
class="block size-6"
109+
aria-hidden="true"
110+
set:html={socialIcons[s.label]}
111+
/>
112+
)}
110113
</a>
111114
</li>
112115
))}
@@ -132,6 +135,10 @@ const socialIcons: Record<string, string> = {
132135
href="https://swmansion.com"
133136
class="underline decoration-solid underline-offset-2 transition-colors duration-fast ease-out-quart hover:text-purple-40"
134137
>Software Mansion</a
138+
>. See <a
139+
href="https://github.com/elixir-lang/elixir-lang.github.com"
140+
class="underline decoration-solid underline-offset-2 transition-colors duration-fast ease-out-quart hover:text-purple-40"
141+
>source</a
135142
>.
136143
</p>
137144
</div>

src/content/standalone-pages/development.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
---
22
title: "Development & team"
3-
# Imported from https://raw.githubusercontent.com/elixir-lang/elixir-lang.github.com/main/development.markdown @ main
43
---
5-
This page outlines the language's past and future development.
6-
7-
## Development
84

95
José Valim created Elixir in 2012 as a Research and Development project inside Plataformatec. Elixir's goal is to be [a productive and extensible language](/blog/2013/08/08/elixir-design-goals/) for writing maintainable and reliable software.
106

117
Elixir runs on top of the Erlang Virtual Machine, which provides a scalable and fault-tolerant foundation. Elixir was designed to leverage this foundation without performance costs and aims to contribute to the wider ecosystem whenever possible.
128

139
Elixir's source code is under the [Apache 2 License](https://github.com/elixir-lang/elixir/blob/main/LICENSE) and is maintained by the [Elixir Team](#team). The source code and contribution guidelines can be found on [the language repository](https://github.com/elixir-lang/elixir).
1410

15-
Elixir v1.0 was released in September 2014 and a new minor version is released every 6 months, around May and November of every year. New releases are announced in the read-only [announcements mailing list](https://groups.google.com/group/elixir-lang-ann) with a link to the complete CHANGELOG. All security releases [will be tagged with "[security]"](https://groups.google.com/forum/#!searchin/elixir-lang-ann/%5Bsecurity%5D%7Csort:date). Security vulnerabilities should be disclosed to [elixir-security@googlegroups.com](mailto:elixir-security@googlegroups.com). Our [compatibility and deprecation policies](https://hexdocs.pm/elixir/compatibility-and-deprecations.html#content) are also documented.
11+
Elixir v1.0 was released in September 2014 and a new minor version is released every 6 months, around June and December of every year. New releases are announced in the read-only [announcements mailing list](https://groups.google.com/group/elixir-lang-ann) and on the [GitHub releases page](https://github.com/elixir-lang/elixir/releases). Our [security policy](https://github.com/elixir-lang/elixir/security) and [compatibility and deprecation policies](https://hexdocs.pm/elixir/compatibility-and-deprecations.html#content) are also documented.
1612

17-
Since v1.0, the language development has become focused to provide a compact and consistent core. The Elixir team focuses on language features that:
13+
Since v1.0, the language development has become focused to provide a stable and consistent core. The Elixir team focuses on language features that:
1814

1915
1. are necessary for developing the language itself
2016
2. bring important concepts/features to the community in a way its effect can only be maximized or leveraged by making it part of the language

src/content/standalone-pages/trademarks.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: "Trademarks policy"
3-
# Imported from https://raw.githubusercontent.com/elixir-lang/elixir-lang.github.com/main/trademarks.markdown @ main
43
---
54
This document outlines the policy for allowed usage of the "Elixir" word and the Elixir logo by other parties.
65

src/data/navigation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export const footerColumns: { title: string; items: NavItem[] }[] = [
3030
},
3131
{ label: "Development & team", href: "/development/" },
3232
{
33-
label: "Source code & issues tracker",
34-
href: "https://github.com/elixir-lang/elixir",
33+
label: "Issues tracker",
34+
href: "https://github.com/elixir-lang/elixir/issues",
3535
external: true,
3636
},
3737
{
@@ -75,8 +75,8 @@ export const footerColumns: { title: string; items: NavItem[] }[] = [
7575

7676
export const footerSocials: NavItem[] = [
7777
{
78-
label: "Twitter / X",
79-
href: "https://twitter.com/elixirlang",
78+
label: "Source",
79+
href: "https://github.com/elixir-lang/elixir",
8080
external: true,
8181
},
8282
{ label: "Slack", href: "https://elixir-slack.community", external: true },

0 commit comments

Comments
 (0)