Skip to content

Commit

Permalink
fix: applied some changes after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
domysh committed Aug 23, 2024
1 parent 81809a5 commit 7014969
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,5 @@ declare module 'astro:content' {

type AnyEntryMap = ContentEntryMap & DataEntryMap;

export type ContentConfig = typeof import("./../src/content/config.js");
export type ContentConfig = typeof import("../src/content/config.js");
}
2 changes: 0 additions & 2 deletions src/components/Common/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ const lang = getLangFromUrl(Astro.url);
<Navbar transparentMode={navbarTrasparent} />

<main
id="swup"
class="main-content transition-fade flex flex-col items-stretch main-container px-4 pb-12 flex-1 "
data-swup="0"
>
<PageTitle title={pageUiTitle ?? pageTitle} subtitle={subtitle} />

Expand Down
2 changes: 0 additions & 2 deletions src/components/Common/LargeBaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ const { pageTitle, pageUiTitle, pageDescription, navbarTrasparent, subtitle } =
<Navbar transparentMode={navbarTrasparent} />

<main
id="swup"
class="main-content transition-fade flex flex-col items-stretch max-w-7xl lg:w-11/12 w-full m-auto px-4 pb-12 flex-1"
data-swup="0"
>
<PageTitle title={pageUiTitle ?? pageTitle} subtitle={subtitle} />

Expand Down
16 changes: 13 additions & 3 deletions src/components/Home/InfoContainer.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
---
import { WebsiteConfig } from "../../config";
import { getLangFromUrl, useTranslations } from "../../i18n/utils";
import { getSchedule, getSessions, getSpeakers } from "../../scripts/api/sessionize_api";
const lang = getLangFromUrl(Astro.url);
const t = useTranslations(lang);
const speakers = await getSpeakers();
const schedule = await getSchedule();
const sessions = await getSessions();
const categories = sessions.map(s => s.topics).flat()
.map(ele => ele.toLocaleLowerCase())
.filter((value, index, array) => array.indexOf(value) === index)
const tracks = schedule.map(s => s.rooms.length).reduce((a, b) => a + b, 0)
---

<div class="flex md:flex-row flex-col py-14 bg-red-pastel">
Expand All @@ -24,9 +34,9 @@ const t = useTranslations(lang);
{
[
[t('info.partecipants'), "community", WebsiteConfig.NUM_PARTECIPENTS],
[t('info.speakers'), "speakers", WebsiteConfig.NUM_SPEAKERS],
[t('info.categories'), "categories", WebsiteConfig.NUM_TALK_CATEGORIES],
[t('info.tracks'), "tracks", WebsiteConfig.NUM_TRACKS],
[t('info.speakers'), "speakers", speakers.length],
[t('info.categories'), "categories", categories.length],
[t('info.tracks'), "tracks", tracks],
].map(([name, icon, num]: [string, string, number]) => {
return (
<div class="flex text-xl items-center justify-center flex-col">
Expand Down
29 changes: 0 additions & 29 deletions src/components/Home/NumbersInfo.astro

This file was deleted.

2 changes: 0 additions & 2 deletions src/pages/en/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ import PageHead from "../../components/Common/PageHead.astro";
<Navbar />

<main
id="swup"
class="main-content transition-fadeh-screen flex flex-col justify-center max-w-6xl m-auto px-4 pb-12 flex-1"
data-swup="0"
>
<Navbar />
<h1 class="font-bold text-3xl text-center">Ops!</h1>
Expand Down
15 changes: 0 additions & 15 deletions src/scripts/links_helper.ts

This file was deleted.

0 comments on commit 7014969

Please sign in to comment.