Skip to content

Commit 837a959

Browse files
authored
Add /contact page, use instead of email (#298)
1 parent 258691d commit 837a959

File tree

5 files changed

+96
-23
lines changed

5 files changed

+96
-23
lines changed

src/components/Footer.astro

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ import {
1010
COPYRIGHT_HOLDER,
1111
MASTODON_URL,
1212
GITHUB_URL,
13-
STORE_URL,
13+
STORE_URL,
1414
BLUESKY_URL,
15+
LINKEDIN_URL,
1516
} from "../const"
1617
1718
import Icon from "./Icon.astro"
1819
1920
const navigation = {
2021
support: [
21-
{ name: "Documentation", href: DOCUMENTATION_URL },
22-
{ name: "Issues", href: GITHUB_ISSUES_URL },
23-
{ name: "Discord", href: DISCORD_URL },
24-
{ name: "Email", href: EMAIL_URL }
22+
{ name: "Documentation", href: DOCUMENTATION_URL, target: "_blank" },
23+
{ name: "Issues", href: GITHUB_ISSUES_URL, target: "_blank" },
24+
{ name: "Discord", href: DISCORD_URL, target: "_blank", me: true },
25+
{ name: "Contact", href: "/contact", me: true }
2526
],
2627
product: [
2728
{ name: "About", href: "/about" },
@@ -36,17 +37,23 @@ const navigation = {
3637
{
3738
name: "Discord",
3839
href: DISCORD_URL,
40+
me: true
3941
},
4042
{
4143
name: "Bluesky",
4244
href: BLUESKY_URL,
43-
me:true
45+
me: true
4446
},
4547
{
4648
name: "Mastodon",
4749
href: MASTODON_URL,
4850
me: true
4951
},
52+
{
53+
name: "LinkedIn",
54+
href: LINKEDIN_URL,
55+
me: true
56+
},
5057
{
5158
name: "GitHub",
5259
href: GITHUB_URL,
@@ -65,14 +72,15 @@ const navigation = {
6572
<h2 class="text-sm font-mono text-navy-300 tracking-wider">
6673
Support
6774
</h2>
68-
<ul class="mt-4 space-y-4">
75+
<ul class="mt-4 space-y-4 dark:text-white">
6976
{
7077
navigation.support.map((item) => (
7178
<li>
7279
<a
7380
href={item.href}
74-
class="text-base external-link dark:text-white"
75-
target="_blank"
81+
class="text-base"
82+
rel={item.hasOwnProperty('me') && item.me ? 'me' : 'prefetch'}
83+
target={item.target || '_self'}
7684
>
7785
{item.name}
7886
</a>
@@ -88,19 +96,16 @@ const navigation = {
8896
<ul class="mt-4 space-y-4 dark:text-white">
8997
{
9098
navigation.product.map((item) => (
91-
item.target == "undefined" ?
92-
<li>
93-
<a href={item.href} class="text-base" rel="prefetch">
94-
{item.name}
95-
</a>
96-
</li>
97-
:
9899
<li>
99-
<a href={item.href} class="text-base" rel="prefetch" target={item.target}>
100+
<a
101+
href={item.href}
102+
class="text-base"
103+
rel={item.hasOwnProperty('me') && item.me ? 'me' : 'prefetch'}
104+
target={item.target || '_self'}
105+
>
100106
{item.name}
101107
</a>
102108
</li>
103-
104109
))
105110
}
106111
</ul>
@@ -113,7 +118,12 @@ const navigation = {
113118
{
114119
navigation.social.map((item) => (
115120
<li>
116-
<a href={item.href} class="text-base" rel="prefetch" target="_blank">
121+
<a
122+
href={item.href}
123+
class="text-base"
124+
rel={item.hasOwnProperty('me') && item.me ? 'me' : 'prefetch'}
125+
target="_blank"
126+
>
117127
{item.name}
118128
</a>
119129
</li>

src/components/Icon.astro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ const { name } = Astro.props
5252
)
5353
}
5454

55+
{
56+
name === "LinkedIn" && (
57+
<svg
58+
fill="currentColor"
59+
viewBox="0 0 72 72"
60+
xmlns="http://www.w3.org/2000/svg"
61+
>
62+
<path d="M62,62 L51.315625,62 L51.315625,43.8021149 C51.315625,38.8127542 49.4197917,36.0245323 45.4707031,36.0245323 C41.1746094,36.0245323 38.9300781,38.9261103 38.9300781,43.8021149 L38.9300781,62 L28.6333333,62 L28.6333333,27.3333333 L38.9300781,27.3333333 L38.9300781,32.0029283 C38.9300781,32.0029283 42.0260417,26.2742151 49.3825521,26.2742151 C56.7356771,26.2742151 62,30.7644705 62,40.051212 L62,62 Z M16.349349,22.7940133 C12.8420573,22.7940133 10,19.9296567 10,16.3970067 C10,12.8643566 12.8420573,10 16.349349,10 C19.8566406,10 22.6970052,12.8643566 22.6970052,16.3970067 C22.6970052,19.9296567 19.8566406,22.7940133 16.349349,22.7940133 Z M11.0325521,62 L21.769401,62 L21.769401,27.3333333 L11.0325521,27.3333333 L11.0325521,62 Z" />
63+
</svg>
64+
)
65+
}
66+
5567
{
5668
name === "Bluesky" && (
5769
<svg

src/const.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export const SITE_DESCRIPTION =
33
"Docker-based local PHP+Node.js web development environments."
44
export const STORE_URL = "https://ddev.threadless.com"
55
export const BLUESKY_URL = "https://bsky.app/profile/ddev.bsky.social"
6+
export const LINKEDIN_URL = "https://www.linkedin.com/company/ddev-foundation"
67
export const GITHUB_REPO = "ddev/ddev"
78
export const GITHUB_URL = "https://github.com/ddev/ddev"
89
export const GITHUB_URL_WEBSITE =
@@ -11,17 +12,18 @@ export const GITHUB_ISSUES_URL = "https://github.com/ddev/ddev/issues"
1112
export const DOCUMENTATION_URL = "https://ddev.readthedocs.io/"
1213
export const DISCORD_URL = "/s/discord"
1314
export const EMAIL_URL = "mailto:support%40ddev.com"
15+
export const MEETING_URL = "https://cal.com/randyfay/30min"
1416
export const COPYRIGHT_HOLDER = "DDEV Foundation"
1517
export const MASTODON_URL = "https://fosstodon.org/@ddev"
1618
export const ORG_STREET = "848 Montclair Dr"
1719
export const ORG_CITY = "Palisade"
1820
export const ORG_STATE = "Colorado"
1921
export const ORG_STATE_ABBR = "CO"
2022
export const ORG_POSTAL_CODE = "81526"
21-
export const ORG_COUNTRY = "US"
23+
export const ORG_COUNTRY = "USA"
2224
export const ORG_NAME = "DDEV Foundation"
2325
export const ORG_EMAIL = "support@localdev.foundation"
24-
export const ORG_PHONE = "(970) 462-7450"
26+
export const ORG_PHONE = "+1 970 462-7450"
2527
export const ORG_FOUNDED = "2021-09-02"
2628
export const ORG_SAME_AS = [
2729
"https://github.com/ddev",

src/pages/contact.astro

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
import Layout from "../layouts/Layout.astro"
3+
import Heading from "../components/Heading.astro"
4+
import PostBody from "../components/PostBody.astro"
5+
6+
import {
7+
ORG_NAME,
8+
ORG_STREET,
9+
ORG_CITY,
10+
ORG_STATE_ABBR,
11+
ORG_POSTAL_CODE,
12+
ORG_COUNTRY,
13+
ORG_PHONE,
14+
EMAIL_URL,
15+
MEETING_URL,
16+
} from "../const"
17+
18+
const title = `Contact Us`
19+
---
20+
21+
<Layout
22+
title={title}
23+
>
24+
<main class="max-w-4xl mx-auto mb-24">
25+
<Heading title={`Contact DDEV`} />
26+
<div class="lg:flex">
27+
<div class="px-6 lg:px-0 lg:w-2/3">
28+
<PostBody>
29+
<h2>Easy Contact Info</h2>
30+
<p>
31+
We're delighted to talk with you any time!
32+
</p>
33+
34+
<ul>
35+
<li>Email <a href={EMAIL_URL}>support</a></li>
36+
<li><a href={MEETING_URL}>Set up a meeting</a></li>
37+
</ul>
38+
39+
<h2>Snail Mail and Phone:</h2>
40+
41+
{ORG_NAME}<br />
42+
{ORG_STREET}<br />
43+
{ORG_CITY}, {ORG_STATE_ABBR}&nbsp;{ORG_POSTAL_CODE}&nbsp; {ORG_COUNTRY}<br />
44+
{ORG_PHONE}<br />
45+
46+
</PostBody>
47+
</div>
48+
</div>
49+
</main>
50+
</Layout>

src/pages/foundation.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ const title = `DDEV Foundation`
4646

4747
{ORG_NAME}<br />
4848
{ORG_STREET}<br />
49-
{ORG_CITY}, {ORG_STATE_ABBR}&nbsp;{ORG_POSTAL_CODE}<br />
50-
{ORG_COUNTRY}<br />
49+
{ORG_CITY}, {ORG_STATE_ABBR}&nbsp;{ORG_POSTAL_CODE}&nbsp; {ORG_COUNTRY}<br />
5150
{ORG_PHONE}<br />
5251

5352
<h2>Colorado nonprofit corporation registration</h2>

0 commit comments

Comments
 (0)