From a87f399df474ad75fd07cfdeb4c4c0268860d47a Mon Sep 17 00:00:00 2001 From: GlizzyHacker Date: Fri, 23 Jan 2026 10:26:19 +0100 Subject: [PATCH 1/7] added content to dictionaries --- src/dictionaries/en.json | 60 ++++++++++++++++++++++++++++++++++++++++ src/dictionaries/hu.json | 60 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) diff --git a/src/dictionaries/en.json b/src/dictionaries/en.json index 1a875e7..9fa99c4 100644 --- a/src/dictionaries/en.json +++ b/src/dictionaries/en.json @@ -146,6 +146,66 @@ }, "more_info": "For more information, please visit the website of the University Social Committee (ESZB): ", "eszb_website": "ESZB website" + }, + "ehk": { + "ehk": { + "items": [ + { + "title": "University Student Union Scholarship", + "paragraphs": [ + "Members of the University Student Union are rewarded through this scholarship for carrying out the tasks defined in the Rules and Regulations of the BME Students’ and Doctoral Students’ Union. Reports submitted by the representatives are published on the website of the University Student Union." + ] + }, + { + "title": "University Doctoral Student Union Scholarship", + "paragraphs": [ + "Members of the University Doctoral Student Union are rewarded through this scholarship for carrying out the tasks defined in the Rules and Regulations of the BME Students’ and Doctoral Students’ Union. Reports submitted by the representatives are published on the website of the University Doctoral Student Union." + ] + }, + { + "title": "University BME Scholarship", + "paragraphs": [ + "The University BME Scholarship is one of the highest-level recognitions based on professional and scientific achievements that go beyond the requirements defined in the model curricula. Through this scholarship, the University Student Union rewards the most outstanding students who achieved exceptional professional or scientific results during the previous semester." + ] + }, + { + "title": "National Higher Education Scholarship", + "paragraphs": [ + "For students with outstanding academic results and exceptional professional achievements, the minister responsible for higher education awards the National Higher Education Scholarship for the duration of one academic year. The procedure and details of the evaluation are defined by the Rector’s Instruction issued for the given year." + ] + }, + { + "title": "University Public Life Scholarship", + "paragraphs": [ + "The University Public Life Scholarship is intended for students who carry out public life activities supporting the work of the University Student Union, such as assisting in the organization of events." + ] + }, + { + "title": "University Community Scholarship", + "paragraphs": [ + "The University Community Scholarship is intended for students who actively participate in community life at BME. Applications may be submitted for activities carried out in university self-organizing student groups and colleges for advanced studies, in the BME Racing Teams Community, or in the Student International Relations Committee. The aim of the scholarship is to recognize students who create value at the university through their community work alongside their studies." + ] + }, + { + "title": "Sports Scholarship", + "paragraphs": [ + "Within the framework of the Sports Scholarship, the University Student Union rewards students who, in addition to physical education classes and their university studies, have demonstrated outstanding athletic performance." + ] + }, + { + "title": "BME “Good Student, Good Athlete” Scholarship", + "paragraphs": [ + "The “Good Student, Good Athlete” Scholarship not only rewards outstanding athletic performance but also takes into account successful academic achievements alongside competitive sports activities. To submit a valid application, the student’s credit index must reach a value of 3.00." + ] + }, + { + "title": "Scientific Students’ Conference Scholarship", + "paragraphs": [ + "The aim of the scholarship is to recognize outstanding work performed at the Scientific Students’ Conference. Students may apply if they participated in the Scientific Students’ Conference organized at BME and achieved 1st, 2nd or 3rd place, or received a special prize or commendation." + ] + } + ] + } } }, "language_education": { diff --git a/src/dictionaries/hu.json b/src/dictionaries/hu.json index fd46211..166e90e 100644 --- a/src/dictionaries/hu.json +++ b/src/dictionaries/hu.json @@ -146,6 +146,66 @@ }, "more_info": "Bővebb információkat az Egyetemi Szociális Bizottság (ESZB) honlapján olvashattok: ", "eszb_website": "ESZB honlapja" + }, + "ehk": { + "ehk": { + "items": [ + { + "title": "Egyetemi Hallgatói Képviselet ösztöndíj", + "paragraphs": [ + "Az Egyetemi Hallgatói Képviselet tagjai a BME Hallgatói és Doktorandusz Önkormányzat Alapszabályában rögzített feladatok végrehajtásáért ezen ösztöndíjon belül kerülnek jutalmazásra. A képviselők beszámolói az EHK honlapján publikálásra kerülnek." + ] + }, + { + "title": "Egyetemi Doktorandusz Képviselet ösztöndíj", + "paragraphs": [ + "Az Egyetemi Doktorandusz Képviselet tagjai a BME Hallgatói és Doktorandusz Önkormányzat Alapszabályában rögzített feladatok végrehajtásáért ezen ösztöndíjon belül kerülnek jutalmazásra. A képviselők beszámolói az EDK honlapján publikálásra kerülnek" + ] + }, + { + "title": "Egyetemi BME ösztöndíj", + "paragraphs": [ + "Az Egyetemi BME ösztöndíj a mintatantervekben meghatározott követelményeken túlmutató szakmai és tudományos teljesítményen alapuló legmagasabb szintű elismerések egyike. Az ösztöndíjjal az Egyetemi Hallgatói Képviselet a legkiválóbb hallgatókat jutalmazza, akik kimagasló szakmai vagy tudományos eredményt értek el az előző félévük során." + ] + }, + { + "title": "Nemzeti felsőoktatási ösztöndíj", + "paragraphs": [ + "A kiemelkedő tanulmányi eredményű, szakmai téren kimagasló teljesítményt nyújtó hallgatók részére a felsőoktatásért felelős miniszter nemzeti felsőoktatási ösztöndíjat adományoz egy tanév időtartamára. Az ösztöndíj elbírálásának menetét, részleteit az adott évben kiadott Rektori Utasítás határozza meg." + ] + }, + { + "title": "Egyetemi közéleti ösztöndíj", + "paragraphs": [ + "Az Egyetemi közéleti ösztöndíj azoknak a hallgatóknak szól, akik az EHK munkáját segítő közéleti tevékenységet végeznek, például rendezvények szervezésében való segédkezés." + ] + }, + { + "title": "Egyetemi közösségi ösztöndíj", + "paragraphs": [ + "Az Egyetemi közösségi ösztöndíj azoknak a hallgatóknak szól, akik a BME közösségi életében aktívan részt vesz. Pályázni lehet egyetemi öntevékeny körben és szakkollégiumban, a Műegyetemi Versenycsapat Közösségben vagy a Hallgatói Külügyi Testületben végzett tevékenységgel. Az ösztöndíj célja, hogy elismerje azokat a hallgatókat, akik tanulmányaik mellett közösségi munkájukkal is értéket teremtenek az egyetemen." + ] + }, + { + "title": "Sportösztöndíj", + "paragraphs": [ + "A Sportösztöndíj keretein belül az Egyetemi Hallgatói Képviselet azokat a hallgatókat jutalmazza, akik a testnevelési órákon felül és az egyetemi tanulmányaik mellett kimagasló sportteljesítményt nyújtottak." + ] + }, + { + "title": "BME “Jó tanuló, jó sportoló” ösztöndíj", + "paragraphs": [ + "A “Jó tanuló, jó sportoló” ösztöndíj nem csak a kimagasló sportteljesítményt díjazó ösztöndíj, hanem a versenyszerű sportolás mellett sikeresen teljesített tanulmányi eredményeket is figyelembe veszi. Az érvényes pályázáshoz a hallgató kreditindexének el kell érnie a 3,00 értékét." + ] + }, + { + "title": "Tudományos Diákköri Konferencia ösztöndíj", + "paragraphs": [ + "Az ösztöndíj célja, hogy elismerje a Tudományos Diákköri Konferencián nyújtott kiemelkedő munkát. Azok a hallgatók pályázhatnak, akik részt vettek a BME-n megrendezésre kerülő TDK Konferencián, és azon 1., 2., vagy 3. helyezést ért el, különdíjban vagy dicséretben részesültek." + ] + } + ] + } } }, "language_education": { From 429be198e81e2c9e0dcf15ee1903f8f3126bdecc Mon Sep 17 00:00:00 2001 From: GlizzyHacker Date: Fri, 23 Jan 2026 10:36:18 +0100 Subject: [PATCH 2/7] removed redundant nesting --- src/dictionaries/en.json | 114 +++++++++++++++++++-------------------- src/dictionaries/hu.json | 114 +++++++++++++++++++-------------------- 2 files changed, 112 insertions(+), 116 deletions(-) diff --git a/src/dictionaries/en.json b/src/dictionaries/en.json index 9fa99c4..5849b55 100644 --- a/src/dictionaries/en.json +++ b/src/dictionaries/en.json @@ -148,64 +148,62 @@ "eszb_website": "ESZB website" }, "ehk": { - "ehk": { - "items": [ - { - "title": "University Student Union Scholarship", - "paragraphs": [ - "Members of the University Student Union are rewarded through this scholarship for carrying out the tasks defined in the Rules and Regulations of the BME Students’ and Doctoral Students’ Union. Reports submitted by the representatives are published on the website of the University Student Union." - ] - }, - { - "title": "University Doctoral Student Union Scholarship", - "paragraphs": [ - "Members of the University Doctoral Student Union are rewarded through this scholarship for carrying out the tasks defined in the Rules and Regulations of the BME Students’ and Doctoral Students’ Union. Reports submitted by the representatives are published on the website of the University Doctoral Student Union." - ] - }, - { - "title": "University BME Scholarship", - "paragraphs": [ - "The University BME Scholarship is one of the highest-level recognitions based on professional and scientific achievements that go beyond the requirements defined in the model curricula. Through this scholarship, the University Student Union rewards the most outstanding students who achieved exceptional professional or scientific results during the previous semester." - ] - }, - { - "title": "National Higher Education Scholarship", - "paragraphs": [ - "For students with outstanding academic results and exceptional professional achievements, the minister responsible for higher education awards the National Higher Education Scholarship for the duration of one academic year. The procedure and details of the evaluation are defined by the Rector’s Instruction issued for the given year." - ] - }, - { - "title": "University Public Life Scholarship", - "paragraphs": [ - "The University Public Life Scholarship is intended for students who carry out public life activities supporting the work of the University Student Union, such as assisting in the organization of events." - ] - }, - { - "title": "University Community Scholarship", - "paragraphs": [ - "The University Community Scholarship is intended for students who actively participate in community life at BME. Applications may be submitted for activities carried out in university self-organizing student groups and colleges for advanced studies, in the BME Racing Teams Community, or in the Student International Relations Committee. The aim of the scholarship is to recognize students who create value at the university through their community work alongside their studies." - ] - }, - { - "title": "Sports Scholarship", - "paragraphs": [ - "Within the framework of the Sports Scholarship, the University Student Union rewards students who, in addition to physical education classes and their university studies, have demonstrated outstanding athletic performance." - ] - }, - { - "title": "BME “Good Student, Good Athlete” Scholarship", - "paragraphs": [ - "The “Good Student, Good Athlete” Scholarship not only rewards outstanding athletic performance but also takes into account successful academic achievements alongside competitive sports activities. To submit a valid application, the student’s credit index must reach a value of 3.00." - ] - }, - { - "title": "Scientific Students’ Conference Scholarship", - "paragraphs": [ - "The aim of the scholarship is to recognize outstanding work performed at the Scientific Students’ Conference. Students may apply if they participated in the Scientific Students’ Conference organized at BME and achieved 1st, 2nd or 3rd place, or received a special prize or commendation." - ] - } - ] - } + "items": [ + { + "title": "University Student Union Scholarship", + "paragraphs": [ + "Members of the University Student Union are rewarded through this scholarship for carrying out the tasks defined in the Rules and Regulations of the BME Students’ and Doctoral Students’ Union. Reports submitted by the representatives are published on the website of the University Student Union." + ] + }, + { + "title": "University Doctoral Student Union Scholarship", + "paragraphs": [ + "Members of the University Doctoral Student Union are rewarded through this scholarship for carrying out the tasks defined in the Rules and Regulations of the BME Students’ and Doctoral Students’ Union. Reports submitted by the representatives are published on the website of the University Doctoral Student Union." + ] + }, + { + "title": "University BME Scholarship", + "paragraphs": [ + "The University BME Scholarship is one of the highest-level recognitions based on professional and scientific achievements that go beyond the requirements defined in the model curricula. Through this scholarship, the University Student Union rewards the most outstanding students who achieved exceptional professional or scientific results during the previous semester." + ] + }, + { + "title": "National Higher Education Scholarship", + "paragraphs": [ + "For students with outstanding academic results and exceptional professional achievements, the minister responsible for higher education awards the National Higher Education Scholarship for the duration of one academic year. The procedure and details of the evaluation are defined by the Rector’s Instruction issued for the given year." + ] + }, + { + "title": "University Public Life Scholarship", + "paragraphs": [ + "The University Public Life Scholarship is intended for students who carry out public life activities supporting the work of the University Student Union, such as assisting in the organization of events." + ] + }, + { + "title": "University Community Scholarship", + "paragraphs": [ + "The University Community Scholarship is intended for students who actively participate in community life at BME. Applications may be submitted for activities carried out in university self-organizing student groups and colleges for advanced studies, in the BME Racing Teams Community, or in the Student International Relations Committee. The aim of the scholarship is to recognize students who create value at the university through their community work alongside their studies." + ] + }, + { + "title": "Sports Scholarship", + "paragraphs": [ + "Within the framework of the Sports Scholarship, the University Student Union rewards students who, in addition to physical education classes and their university studies, have demonstrated outstanding athletic performance." + ] + }, + { + "title": "BME “Good Student, Good Athlete” Scholarship", + "paragraphs": [ + "The “Good Student, Good Athlete” Scholarship not only rewards outstanding athletic performance but also takes into account successful academic achievements alongside competitive sports activities. To submit a valid application, the student’s credit index must reach a value of 3.00." + ] + }, + { + "title": "Scientific Students’ Conference Scholarship", + "paragraphs": [ + "The aim of the scholarship is to recognize outstanding work performed at the Scientific Students’ Conference. Students may apply if they participated in the Scientific Students’ Conference organized at BME and achieved 1st, 2nd or 3rd place, or received a special prize or commendation." + ] + } + ] } }, "language_education": { diff --git a/src/dictionaries/hu.json b/src/dictionaries/hu.json index 166e90e..9b54a3e 100644 --- a/src/dictionaries/hu.json +++ b/src/dictionaries/hu.json @@ -148,64 +148,62 @@ "eszb_website": "ESZB honlapja" }, "ehk": { - "ehk": { - "items": [ - { - "title": "Egyetemi Hallgatói Képviselet ösztöndíj", - "paragraphs": [ - "Az Egyetemi Hallgatói Képviselet tagjai a BME Hallgatói és Doktorandusz Önkormányzat Alapszabályában rögzített feladatok végrehajtásáért ezen ösztöndíjon belül kerülnek jutalmazásra. A képviselők beszámolói az EHK honlapján publikálásra kerülnek." - ] - }, - { - "title": "Egyetemi Doktorandusz Képviselet ösztöndíj", - "paragraphs": [ - "Az Egyetemi Doktorandusz Képviselet tagjai a BME Hallgatói és Doktorandusz Önkormányzat Alapszabályában rögzített feladatok végrehajtásáért ezen ösztöndíjon belül kerülnek jutalmazásra. A képviselők beszámolói az EDK honlapján publikálásra kerülnek" - ] - }, - { - "title": "Egyetemi BME ösztöndíj", - "paragraphs": [ - "Az Egyetemi BME ösztöndíj a mintatantervekben meghatározott követelményeken túlmutató szakmai és tudományos teljesítményen alapuló legmagasabb szintű elismerések egyike. Az ösztöndíjjal az Egyetemi Hallgatói Képviselet a legkiválóbb hallgatókat jutalmazza, akik kimagasló szakmai vagy tudományos eredményt értek el az előző félévük során." - ] - }, - { - "title": "Nemzeti felsőoktatási ösztöndíj", - "paragraphs": [ - "A kiemelkedő tanulmányi eredményű, szakmai téren kimagasló teljesítményt nyújtó hallgatók részére a felsőoktatásért felelős miniszter nemzeti felsőoktatási ösztöndíjat adományoz egy tanév időtartamára. Az ösztöndíj elbírálásának menetét, részleteit az adott évben kiadott Rektori Utasítás határozza meg." - ] - }, - { - "title": "Egyetemi közéleti ösztöndíj", - "paragraphs": [ - "Az Egyetemi közéleti ösztöndíj azoknak a hallgatóknak szól, akik az EHK munkáját segítő közéleti tevékenységet végeznek, például rendezvények szervezésében való segédkezés." - ] - }, - { - "title": "Egyetemi közösségi ösztöndíj", - "paragraphs": [ - "Az Egyetemi közösségi ösztöndíj azoknak a hallgatóknak szól, akik a BME közösségi életében aktívan részt vesz. Pályázni lehet egyetemi öntevékeny körben és szakkollégiumban, a Műegyetemi Versenycsapat Közösségben vagy a Hallgatói Külügyi Testületben végzett tevékenységgel. Az ösztöndíj célja, hogy elismerje azokat a hallgatókat, akik tanulmányaik mellett közösségi munkájukkal is értéket teremtenek az egyetemen." - ] - }, - { - "title": "Sportösztöndíj", - "paragraphs": [ - "A Sportösztöndíj keretein belül az Egyetemi Hallgatói Képviselet azokat a hallgatókat jutalmazza, akik a testnevelési órákon felül és az egyetemi tanulmányaik mellett kimagasló sportteljesítményt nyújtottak." - ] - }, - { - "title": "BME “Jó tanuló, jó sportoló” ösztöndíj", - "paragraphs": [ - "A “Jó tanuló, jó sportoló” ösztöndíj nem csak a kimagasló sportteljesítményt díjazó ösztöndíj, hanem a versenyszerű sportolás mellett sikeresen teljesített tanulmányi eredményeket is figyelembe veszi. Az érvényes pályázáshoz a hallgató kreditindexének el kell érnie a 3,00 értékét." - ] - }, - { - "title": "Tudományos Diákköri Konferencia ösztöndíj", - "paragraphs": [ - "Az ösztöndíj célja, hogy elismerje a Tudományos Diákköri Konferencián nyújtott kiemelkedő munkát. Azok a hallgatók pályázhatnak, akik részt vettek a BME-n megrendezésre kerülő TDK Konferencián, és azon 1., 2., vagy 3. helyezést ért el, különdíjban vagy dicséretben részesültek." - ] - } - ] - } + "items": [ + { + "title": "Egyetemi Hallgatói Képviselet ösztöndíj", + "paragraphs": [ + "Az Egyetemi Hallgatói Képviselet tagjai a BME Hallgatói és Doktorandusz Önkormányzat Alapszabályában rögzített feladatok végrehajtásáért ezen ösztöndíjon belül kerülnek jutalmazásra. A képviselők beszámolói az EHK honlapján publikálásra kerülnek." + ] + }, + { + "title": "Egyetemi Doktorandusz Képviselet ösztöndíj", + "paragraphs": [ + "Az Egyetemi Doktorandusz Képviselet tagjai a BME Hallgatói és Doktorandusz Önkormányzat Alapszabályában rögzített feladatok végrehajtásáért ezen ösztöndíjon belül kerülnek jutalmazásra. A képviselők beszámolói az EDK honlapján publikálásra kerülnek" + ] + }, + { + "title": "Egyetemi BME ösztöndíj", + "paragraphs": [ + "Az Egyetemi BME ösztöndíj a mintatantervekben meghatározott követelményeken túlmutató szakmai és tudományos teljesítményen alapuló legmagasabb szintű elismerések egyike. Az ösztöndíjjal az Egyetemi Hallgatói Képviselet a legkiválóbb hallgatókat jutalmazza, akik kimagasló szakmai vagy tudományos eredményt értek el az előző félévük során." + ] + }, + { + "title": "Nemzeti felsőoktatási ösztöndíj", + "paragraphs": [ + "A kiemelkedő tanulmányi eredményű, szakmai téren kimagasló teljesítményt nyújtó hallgatók részére a felsőoktatásért felelős miniszter nemzeti felsőoktatási ösztöndíjat adományoz egy tanév időtartamára. Az ösztöndíj elbírálásának menetét, részleteit az adott évben kiadott Rektori Utasítás határozza meg." + ] + }, + { + "title": "Egyetemi közéleti ösztöndíj", + "paragraphs": [ + "Az Egyetemi közéleti ösztöndíj azoknak a hallgatóknak szól, akik az EHK munkáját segítő közéleti tevékenységet végeznek, például rendezvények szervezésében való segédkezés." + ] + }, + { + "title": "Egyetemi közösségi ösztöndíj", + "paragraphs": [ + "Az Egyetemi közösségi ösztöndíj azoknak a hallgatóknak szól, akik a BME közösségi életében aktívan részt vesz. Pályázni lehet egyetemi öntevékeny körben és szakkollégiumban, a Műegyetemi Versenycsapat Közösségben vagy a Hallgatói Külügyi Testületben végzett tevékenységgel. Az ösztöndíj célja, hogy elismerje azokat a hallgatókat, akik tanulmányaik mellett közösségi munkájukkal is értéket teremtenek az egyetemen." + ] + }, + { + "title": "Sportösztöndíj", + "paragraphs": [ + "A Sportösztöndíj keretein belül az Egyetemi Hallgatói Képviselet azokat a hallgatókat jutalmazza, akik a testnevelési órákon felül és az egyetemi tanulmányaik mellett kimagasló sportteljesítményt nyújtottak." + ] + }, + { + "title": "BME “Jó tanuló, jó sportoló” ösztöndíj", + "paragraphs": [ + "A “Jó tanuló, jó sportoló” ösztöndíj nem csak a kimagasló sportteljesítményt díjazó ösztöndíj, hanem a versenyszerű sportolás mellett sikeresen teljesített tanulmányi eredményeket is figyelembe veszi. Az érvényes pályázáshoz a hallgató kreditindexének el kell érnie a 3,00 értékét." + ] + }, + { + "title": "Tudományos Diákköri Konferencia ösztöndíj", + "paragraphs": [ + "Az ösztöndíj célja, hogy elismerje a Tudományos Diákköri Konferencián nyújtott kiemelkedő munkát. Azok a hallgatók pályázhatnak, akik részt vettek a BME-n megrendezésre kerülő TDK Konferencián, és azon 1., 2., vagy 3. helyezést ért el, különdíjban vagy dicséretben részesültek." + ] + } + ] } }, "language_education": { From bd95d661f72c63ede5e78cc656ab1beaa77afa78 Mon Sep 17 00:00:00 2001 From: GlizzyHacker Date: Fri, 23 Jan 2026 14:50:53 +0100 Subject: [PATCH 3/7] added title to dictionary --- src/dictionaries/en.json | 1 + src/dictionaries/hu.json | 1 + 2 files changed, 2 insertions(+) diff --git a/src/dictionaries/en.json b/src/dictionaries/en.json index 5849b55..03bc292 100644 --- a/src/dictionaries/en.json +++ b/src/dictionaries/en.json @@ -148,6 +148,7 @@ "eszb_website": "ESZB website" }, "ehk": { + "title" : "EHK scholarships", "items": [ { "title": "University Student Union Scholarship", diff --git a/src/dictionaries/hu.json b/src/dictionaries/hu.json index 9b54a3e..b914d12 100644 --- a/src/dictionaries/hu.json +++ b/src/dictionaries/hu.json @@ -148,6 +148,7 @@ "eszb_website": "ESZB honlapja" }, "ehk": { + "title" : "EHK ösztöndíjak", "items": [ { "title": "Egyetemi Hallgatói Képviselet ösztöndíj", From b56fa9910f7f1c1c6d382043f11e246f02f6898d Mon Sep 17 00:00:00 2001 From: GlizzyHacker Date: Fri, 23 Jan 2026 14:51:38 +0100 Subject: [PATCH 4/7] created ehk scholarships page --- .../components/EHKScholarshipsContent.tsx | 41 +++++++++++++++++++ src/app/(app)/[lang]/ehk-osztondij/page.tsx | 23 +++++++++++ 2 files changed, 64 insertions(+) create mode 100644 src/app/(app)/[lang]/ehk-osztondij/components/EHKScholarshipsContent.tsx create mode 100644 src/app/(app)/[lang]/ehk-osztondij/page.tsx diff --git a/src/app/(app)/[lang]/ehk-osztondij/components/EHKScholarshipsContent.tsx b/src/app/(app)/[lang]/ehk-osztondij/components/EHKScholarshipsContent.tsx new file mode 100644 index 0000000..402a55e --- /dev/null +++ b/src/app/(app)/[lang]/ehk-osztondij/components/EHKScholarshipsContent.tsx @@ -0,0 +1,41 @@ +import { Card, CardContent } from "@/components/ui/card"; +import { ReactNode } from "react"; + +interface EHKScholarshipsContents { + items : { + title:string; + paragraphs: string[]; + }[]; +} + +export default function EHKScholarshipsContent({ content }: { content: EHKScholarshipsContents }) { + return ( +
+ {content.items.map((item) => ( + + +
+
+

+ {item.title} +

+
+ {item.paragraphs.map((para, i) => ( + {para} + ))} +
+
+
+
+
))} +
+ ); +} + +function Paragraph({children} : {children:ReactNode}){ + return( +
+

{children}

+
+ ); +} \ No newline at end of file diff --git a/src/app/(app)/[lang]/ehk-osztondij/page.tsx b/src/app/(app)/[lang]/ehk-osztondij/page.tsx new file mode 100644 index 0000000..ced5269 --- /dev/null +++ b/src/app/(app)/[lang]/ehk-osztondij/page.tsx @@ -0,0 +1,23 @@ +import { LoadingRegulationsGrid } from "@/components/common/LoadingSpinner"; +import { PageHeader } from "@/components/common/PageHeader"; +import { getDictionary } from "@/get-dictionary"; +import { Locale } from "@/i18n-config"; +import { Suspense } from "react"; +import EHKScholarshipContent from "./components/EHKScholarshipsContent"; + +export default async function EHKScholarshipPage({ + params }: { params: Promise<{ lang: Locale }> }){ + const { lang } = await params; + const dictionary = await getDictionary(lang); + + return ( +
+
+ + }> + + +
+
+ ); +} \ No newline at end of file From 5b67e918da6a730c10761643acf38b740f21c585 Mon Sep 17 00:00:00 2001 From: GlizzyHacker Date: Fri, 23 Jan 2026 14:58:59 +0100 Subject: [PATCH 5/7] set path to page in navigation items --- src/app/(app)/components/navigation-items.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(app)/components/navigation-items.ts b/src/app/(app)/components/navigation-items.ts index 4d67347..ccac2ad 100644 --- a/src/app/(app)/components/navigation-items.ts +++ b/src/app/(app)/components/navigation-items.ts @@ -105,7 +105,7 @@ export function getNavigationItems(lang: string): NavigationItem[] { }, { label: t("EHK ösztöndíjak", "EHK scholarships"), - href: "#", + href: "/ehk-osztondij", targetBlank: false, }, { From 097b3c49fcd1bea395acaaa921d3961c6961062f Mon Sep 17 00:00:00 2001 From: GlizzyHacker Date: Tue, 10 Feb 2026 17:59:40 +0100 Subject: [PATCH 6/7] fixed navigation link --- src/app/(app)/components/navigation-items.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(app)/components/navigation-items.ts b/src/app/(app)/components/navigation-items.ts index ccac2ad..677aac4 100644 --- a/src/app/(app)/components/navigation-items.ts +++ b/src/app/(app)/components/navigation-items.ts @@ -105,7 +105,7 @@ export function getNavigationItems(lang: string): NavigationItem[] { }, { label: t("EHK ösztöndíjak", "EHK scholarships"), - href: "/ehk-osztondij", + href: link("/ehk-osztondij"), targetBlank: false, }, { From 478636bfe817eb013960102e53dfaa12ec252242 Mon Sep 17 00:00:00 2001 From: GlizzyHacker Date: Tue, 10 Feb 2026 18:03:49 +0100 Subject: [PATCH 7/7] removed unnecessary content component --- .../components/EHKScholarshipsContent.tsx | 41 ------------- src/app/(app)/[lang]/ehk-osztondij/page.tsx | 58 ++++++++++++++----- 2 files changed, 44 insertions(+), 55 deletions(-) delete mode 100644 src/app/(app)/[lang]/ehk-osztondij/components/EHKScholarshipsContent.tsx diff --git a/src/app/(app)/[lang]/ehk-osztondij/components/EHKScholarshipsContent.tsx b/src/app/(app)/[lang]/ehk-osztondij/components/EHKScholarshipsContent.tsx deleted file mode 100644 index 402a55e..0000000 --- a/src/app/(app)/[lang]/ehk-osztondij/components/EHKScholarshipsContent.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import { Card, CardContent } from "@/components/ui/card"; -import { ReactNode } from "react"; - -interface EHKScholarshipsContents { - items : { - title:string; - paragraphs: string[]; - }[]; -} - -export default function EHKScholarshipsContent({ content }: { content: EHKScholarshipsContents }) { - return ( -
- {content.items.map((item) => ( - - -
-
-

- {item.title} -

-
- {item.paragraphs.map((para, i) => ( - {para} - ))} -
-
-
-
-
))} -
- ); -} - -function Paragraph({children} : {children:ReactNode}){ - return( -
-

{children}

-
- ); -} \ No newline at end of file diff --git a/src/app/(app)/[lang]/ehk-osztondij/page.tsx b/src/app/(app)/[lang]/ehk-osztondij/page.tsx index ced5269..fcb69c1 100644 --- a/src/app/(app)/[lang]/ehk-osztondij/page.tsx +++ b/src/app/(app)/[lang]/ehk-osztondij/page.tsx @@ -1,23 +1,53 @@ -import { LoadingRegulationsGrid } from "@/components/common/LoadingSpinner"; import { PageHeader } from "@/components/common/PageHeader"; +import { Card, CardContent } from "@/components/ui/card"; import { getDictionary } from "@/get-dictionary"; import { Locale } from "@/i18n-config"; -import { Suspense } from "react"; -import EHKScholarshipContent from "./components/EHKScholarshipsContent"; +import { ReactNode } from "react"; export default async function EHKScholarshipPage({ - params }: { params: Promise<{ lang: Locale }> }){ + params, +}: { + params: Promise<{ lang: Locale }>; +}) { const { lang } = await params; const dictionary = await getDictionary(lang); - return ( -
-
- - }> - - -
+ return ( +
+
+ {" "} +
+ {dictionary.scholarships.ehk.items.map((item) => ( + + +
+
+

+ {item.title} +

+
+ {item.paragraphs.map((para, i) => ( + {para} + ))} +
+
+
+
+
+ ))}
- ); -} \ No newline at end of file +
+
+ ); +} + +function Paragraph({ children }: { children: ReactNode }) { + return ( +
+

{children}

+
+ ); +}