Skip to content

Commit 1910db9

Browse files
Copilotneilime
andcommitted
Restructure terms and contact pages to folder-based pattern
Co-authored-by: neilime <314088+neilime@users.noreply.github.com>
1 parent a0a2561 commit 1910db9

12 files changed

Lines changed: 196 additions & 200 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
import HeroText from '~/components/widgets/HeroText.astro';
3+
import Features2 from '~/components/widgets/Features2.astro';
4+
5+
export interface Props {
6+
tagline: string;
7+
title: string;
8+
featuresTitle: string;
9+
items: readonly any[];
10+
}
11+
12+
const { tagline, title, featuresTitle, items } = Astro.props;
13+
---
14+
15+
<HeroText tagline={tagline} title={title} />
16+
17+
<Features2
18+
title={featuresTitle}
19+
items={[...items]}
20+
/>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
export default {
2+
metadata: {
3+
title: 'Contact',
4+
},
5+
tagline: 'Contact',
6+
title: 'Let\'s get in touch!',
7+
featuresTitle: 'Useful contacts',
8+
items: [
9+
{
10+
title: 'General support',
11+
description: `For any questions about the event, participation, or logistics.`,
12+
},
13+
{
14+
title: 'Sponsoring',
15+
description: 'For more info on sponsorship options or to propose a partnership idea.',
16+
},
17+
{
18+
title: 'Community',
19+
description: 'Join the organization or propose a workshop, conference or community booth.',
20+
},
21+
{
22+
title: 'Email',
23+
description: 'info@cloudnative-provence.fr',
24+
icon: 'tabler:mail',
25+
},
26+
{
27+
title: 'Event location',
28+
description: 'Aix-en-Provence (exact location to be announced soon)',
29+
icon: 'tabler:map-pin',
30+
},
31+
],
32+
} as const;
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
export default {
2+
metadata: {
3+
title: 'Contact',
4+
},
5+
tagline: 'Contact',
6+
title: 'Entrons en contact !',
7+
featuresTitle: 'Coordonnées utiles',
8+
items: [
9+
{
10+
title: 'Support général',
11+
description: `Pour toute question sur l'événement, la participation, ou la logistique.`,
12+
},
13+
{
14+
title: 'Sponsoring',
15+
description: 'Pour plus d\'infos sur les options de sponsoring ou pour proposer une idée partenaire.',
16+
},
17+
{
18+
title: 'Communauté',
19+
description: 'Rejoignez l\'organisation ou proposez un atelier, une conférence ou un stand communautaire.',
20+
},
21+
{
22+
title: 'Email',
23+
description: 'info@cloudnative-provence.fr',
24+
icon: 'tabler:mail',
25+
},
26+
{
27+
title: 'Lieu de l\'événement',
28+
description: 'Aix-en-Provence (lieu exact communiqué prochainement)',
29+
icon: 'tabler:map-pin',
30+
},
31+
],
32+
} as const;
Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,14 @@
11
---
22
import Layout from '~/layouts/PageLayout.astro';
3-
import HeroText from '~/components/widgets/HeroText.astro';
4-
import Features2 from '~/components/widgets/Features2.astro';
5-
6-
const metadata = {
7-
title: 'Contact',
8-
};
3+
import t from '../contact/en';
4+
import Content from '../contact/content.astro';
95
---
106

11-
<Layout metadata={metadata}>
12-
<!-- HeroText Widget ******************* -->
13-
14-
<HeroText tagline="Contact" title="Let's get in touch!" />
15-
16-
<!-- Features2 Widget ************** -->
17-
18-
<Features2
19-
title="Useful contacts"
20-
items={[
21-
{
22-
title: 'General support',
23-
description: `For any questions about the event, participation, or logistics.`,
24-
},
25-
{
26-
title: 'Sponsoring',
27-
description: 'For more info on sponsorship options or to propose a partnership idea.',
28-
},
29-
{
30-
title: 'Community',
31-
description: 'Join the organization or propose a workshop, conference or community booth.',
32-
},
33-
{
34-
title: 'Email',
35-
description: 'info@cloudnative-provence.fr',
36-
icon: 'tabler:mail',
37-
},
38-
{
39-
title: 'Event location',
40-
description: 'Aix-en-Provence (exact location to be announced soon)',
41-
icon: 'tabler:map-pin',
42-
},
43-
]}
7+
<Layout metadata={t.metadata}>
8+
<Content
9+
tagline={t.tagline}
10+
title={t.title}
11+
featuresTitle={t.featuresTitle}
12+
items={t.items}
4413
/>
4514
</Layout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
import MarkdownLayout from '~/layouts/MarkdownLayout.astro';
3+
import t from '../terms/en';
4+
import Content from '../terms/content.md';
5+
6+
const frontmatter = {
7+
title: t.title,
8+
};
9+
---
10+
11+
<MarkdownLayout frontmatter={frontmatter}>
12+
<p><em>Last updated: {t.lastUpdated}</em></p>
13+
<Content />
14+
</MarkdownLayout>

application/src/pages/en/terms.md

Lines changed: 0 additions & 61 deletions
This file was deleted.
Lines changed: 8 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,14 @@
11
---
22
import Layout from '~/layouts/PageLayout.astro';
3-
import HeroText from '~/components/widgets/HeroText.astro';
4-
import Features2 from '~/components/widgets/Features2.astro';
5-
6-
const metadata = {
7-
title: 'Contact',
8-
};
3+
import t from '../contact/fr';
4+
import Content from '../contact/content.astro';
95
---
106

11-
<Layout metadata={metadata}>
12-
<!-- HeroText Widget ******************* -->
13-
14-
<HeroText tagline="Contact" title="Entrons en contact !" />
15-
16-
<!-- Features2 Widget ************** -->
17-
18-
<Features2
19-
title="Coordonnées utiles"
20-
items={[
21-
{
22-
title: 'Support général',
23-
description: `Pour toute question sur l’événement, la participation, ou la logistique.`,
24-
},
25-
{
26-
title: 'Sponsoring',
27-
description: 'Pour plus d’infos sur les options de sponsoring ou pour proposer une idée partenaire.',
28-
},
29-
{
30-
title: 'Communauté',
31-
description: 'Rejoignez l’organisation ou proposez un atelier, une conférence ou un stand communautaire.',
32-
},
33-
{
34-
title: 'Email',
35-
description: 'info@cloudnative-provence.fr',
36-
icon: 'tabler:mail',
37-
},
38-
{
39-
title: 'Lieu de l’événement',
40-
description: 'Aix-en-Provence (lieu exact communiqué prochainement)',
41-
icon: 'tabler:map-pin',
42-
},
43-
]}
7+
<Layout metadata={t.metadata}>
8+
<Content
9+
tagline={t.tagline}
10+
title={t.title}
11+
featuresTitle={t.featuresTitle}
12+
items={t.items}
4413
/>
4514
</Layout>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
import MarkdownLayout from '~/layouts/MarkdownLayout.astro';
3+
import t from '../terms/fr';
4+
import Content from '../terms/content.md';
5+
6+
const frontmatter = {
7+
title: t.title,
8+
};
9+
---
10+
11+
<MarkdownLayout frontmatter={frontmatter}>
12+
<p><em>Dernière mise à jour : {t.lastUpdated}</em></p>
13+
<Content />
14+
</MarkdownLayout>

application/src/pages/fr/terms.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)