Skip to content

56 implement felvételi tájékoztató page#66

Open
Geroli205 wants to merge 3 commits intomainfrom
56-implement-felvételi-tájékoztató-page

Hidden character warning

The head ref may contain hidden characters: "56-implement-felv\u00e9teli-t\u00e1j\u00e9koztat\u00f3-page"
Open

56 implement felvételi tájékoztató page#66
Geroli205 wants to merge 3 commits intomainfrom
56-implement-felvételi-tájékoztató-page

Conversation

@Geroli205
Copy link
Contributor

No description provided.

@Geroli205 Geroli205 linked an issue Feb 9, 2026 that may be closed by this pull request
@vercel
Copy link

vercel bot commented Feb 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ehk Ready Ready Preview, Comment Feb 11, 2026 0:40am

Request Review

@Geroli205 Geroli205 requested a review from peterlipt February 9, 2026 21:31
Copy link
Member

@peterlipt peterlipt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requested some changes, but good work still!

Comment on lines 24 to 26
<Suspense fallback={<LoadingRegulationsGrid />}>
<DormitoryAdmissionInformationContent content={content}/>
</Suspense>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Suspense component is unnecessary here because the data is already fetched and awaited in the parent server component, so the child component receives the full content immediately as props and never needs to trigger a loading state.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each subsection should have its own card. By subsections I mean these: Férőhelyek, Jelentkezés menete, Elérhetőségek;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file currently contains multiple components/functions. Extract DormitoryCardsContainer, DormitoryCard, StudentUnionCardsContainer, and StudentUnionCard into their own separate files.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DormitoryCard and StudentUnionCard are almost identical. Refactor them into a single, reusable InfoCard or ImageCard component.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the typo from the filename. (double i)


)}

export function DormitoryCardsComtainer(){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the typo.

Suggested change
export function DormitoryCardsComtainer(){
export function DormitoryCardsContainer(){

{admission_information.capacity_p1}
</p>
<div>
{DormitoryCardsComtainer()}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace direct function calls (e.g., {DormitoryCardsContainer(...)}) with proper React JSX syntax (e.g., <DormitoryCardsContainer ... />).

</p>
<p className="text-gray-700 text-lg richtext text-justify">
{admission_information.application_p2}
<a href="http://kefir.bme.hu" target="_blank" rel="noopener noreferrer" className="font-bold text-lg leading-tight text-gray-900 hover:text-[#862633] transition-colors inline">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid hardcoding specific hex colors. You can use the ehk-dark-red Tailwind class for this color.

Suggested change
<a href="http://kefir.bme.hu" target="_blank" rel="noopener noreferrer" className="font-bold text-lg leading-tight text-gray-900 hover:text-[#862633] transition-colors inline">
<a href="http://kefir.bme.hu" target="_blank" rel="noopener noreferrer" className="font-bold text-lg leading-tight text-gray-900 hover:text-ehk-dark-red transition-colors inline">

export function StudentUnionCardsComtainer({ content }: Readonly<{ content: DormitoryAdmissionInformationContent }>){
const faculties = content.faculties;
return (
<div className="display-block sm:flex sm:flex-col sm:flex-row flex-wrap items-center justify-center gap-4 md:gap-0 flex-1" >
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Tailwind CSS, the correct class for display: block is simply block.

You have applied both sm:flex-col (vertical layout) and sm:flex-row (horizontal layout) to the same element at the same breakpoint (sm). This is contradictory, as an element cannot be both a row and a column at the same time. Determine the intended layout behavior.

@Geroli205
Copy link
Contributor Author

Thanks for both of the reviews! I fixed all the things you had requested (at least I think so). I have created the PageBlock component for future use as well, because it seems to me that basically every subpage contains something similar.

@Geroli205 Geroli205 requested a review from peterlipt February 11, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement "Felvételi tájékoztató" Page

3 participants