Skip to content

Commit

Permalink
feat: story anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Catinaud Taris committed May 30, 2024
1 parent 74e94c9 commit a2a9c20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/app/[locale]/dashboard/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,30 +173,30 @@ const Dashboard = () => {
</section>

<section>
<TitleBlock title={t("sections.biodiversity.title")} />
<TitleBlock id="biodiversity-section" title={t("sections.biodiversity.title")} />
<DeforestationSection />
<EscapeSection />
</section>

<section>
<TitleBlock title={t("sections.health.title")} />
<TitleBlock id="health-section" title={t("sections.health.title")} />
<AntibioticSection />
<MicroplasticSection />
</section>

<section>
<TitleBlock title={t("sections.animals.title")} />
<TitleBlock id="animals-section" title={t("sections.animals.title")} />
<StressOnshoreSection />
<MortalityRateSection />
</section>

<section>
<TitleBlock title={t("sections.climate.title")} />
<TitleBlock id="climate-section" title={t("sections.climate.title")} />
<CarbonSection />
</section>

<section>
<TitleBlock title={t("sections.social.title")} />
<TitleBlock id="social-section" title={t("sections.social.title")} />
<SocialCarbonSection />
</section>

Expand Down
10 changes: 5 additions & 5 deletions src/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const EditoSection = () => {
{
title: t("edito.biodiversity.title"),
content: t("edito.biodiversity.content"),
link: "/dashboard#biodiversity",
link: "/dashboard#biodiversity-section",
image: {
small: "/images/storytelling/biodiversity-hd.webp",
medium: "/images/storytelling/biodiversity-hd.webp",
Expand All @@ -124,7 +124,7 @@ const EditoSection = () => {
{
title: t("edito.health.title"),
content: t("edito.health.content"),
link: "/dashboard#human-health",
link: "/dashboard#health-section",
image: {
small: "/images/storytelling/health-hd.webp",
medium: "/images/storytelling/health-hd.webp",
Expand All @@ -135,7 +135,7 @@ const EditoSection = () => {
{
title: t("edito.climat.title"),
content: t("edito.climat.content"),
link: "/dashboard#climate",
link: "/dashboard#climate-section",
image: {
small: "/images/storytelling/climat-400.jpg",
medium: "/images/storytelling/climat-600.jpg",
Expand All @@ -145,7 +145,7 @@ const EditoSection = () => {
{
title: t("edito.social.title"),
content: t("edito.social.content"),
link: "/dashboard#social",
link: "/dashboard#social-section",
image: {
small: "/images/storytelling/social-400.jpg",
medium: "/images/storytelling/social-600.jpg",
Expand All @@ -155,7 +155,7 @@ const EditoSection = () => {
{
title: t("edito.animals.title"),
content: t("edito.animals.content"),
link: "/dashboard#animal-welfare",
link: "/dashboard#animals-section",
image: {
small: "/images/storytelling/animals-hd.webp",
medium: "/images/storytelling/animals-hd.webp",
Expand Down

0 comments on commit a2a9c20

Please sign in to comment.