-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74cb710
commit 61e1027
Showing
9 changed files
with
96 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
/* * */ | ||
|
||
import { OutstaticApi } from 'outstatic'; | ||
|
||
/* * */ | ||
|
||
export const GET = OutstaticApi.GET; | ||
|
||
/* * */ | ||
|
||
export const POST = OutstaticApi.POST; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
/* * */ | ||
|
||
import styles from './Homepage.module.css'; | ||
import AppWrapper from '@/components/AppWrapper/AppWrapper'; | ||
import HomepageLogo from '@/components/HomepageLogo/HomepageLogo'; | ||
import HomepageIntro from '@/components/HomepageIntro/HomepageIntro'; | ||
import HomepageNews from '@/components/HomepageNews/HomepageNews'; | ||
import HomepageLinks from '@/components/HomepageLinks/HomepageLinks'; | ||
import HomepageConcerts from '@/components/HomepageConcerts/HomepageConcerts'; | ||
import HomepageHistory from '@/components/HomepageHistory/HomepageHistory'; | ||
import HomepageFuture from '@/components/HomepageFuture/HomepageFuture'; | ||
import HomepageContacts from '@/components/HomepageContacts/HomepageContacts'; | ||
|
||
/* * */ | ||
|
||
export default function Homepage() { | ||
// | ||
|
||
// | ||
// A. Render components | ||
|
||
return ( | ||
<AppWrapper> | ||
<div className={styles.container}> | ||
<HomepageLogo /> | ||
<HomepageIntro /> | ||
<HomepageNews /> | ||
<HomepageLinks /> | ||
<HomepageConcerts /> | ||
<HomepageHistory /> | ||
<HomepageFuture /> | ||
<HomepageContacts /> | ||
</div> | ||
</AppWrapper> | ||
); | ||
|
||
// | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* * */ | ||
|
||
import { getDocuments } from 'outstatic/server'; | ||
import styles from './HomepageConcerts.module.css'; | ||
import LinkArticle from '@/components/LinkArticle/LinkArticle'; | ||
import SectionTitle from '@/components/SectionTitle/SectionTitle'; | ||
|
||
/* * */ | ||
|
||
async function getAllConcerts() { | ||
return getDocuments('concerts', ['slug', 'coverImage', 'title', 'description', 'externalUrl']); | ||
} | ||
|
||
/* * */ | ||
|
||
export default async function HomepageConcerts() { | ||
// | ||
|
||
// | ||
// A. Fetch data | ||
|
||
const allConcertsData = await getAllConcerts(); | ||
|
||
// | ||
// B. Render components | ||
|
||
return ( | ||
<div className={styles.container}> | ||
<SectionTitle pt="Concertos" en="Concerts" /> | ||
<div className={styles.articlesGrid}> | ||
{allConcertsData.map((article) => ( | ||
<LinkArticle key={article.slug} article={article} /> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
|
||
// | ||
} |
29 changes: 29 additions & 0 deletions
29
frontend/components/HomepageConcerts/HomepageConcerts.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* * */ | ||
/* CONTAINER */ | ||
|
||
.container { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: flex-start; | ||
gap: 30px; | ||
} | ||
|
||
/* * */ | ||
/* ARTICLES GRID */ | ||
|
||
.articlesGrid { | ||
width: 100%; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
align-items: flex-start; | ||
justify-content: flex-start; | ||
gap: 25px; | ||
} | ||
|
||
@media (max-width: 600px) { | ||
.articlesGrid { | ||
grid-template-columns: 1fr; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters