Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tca 23/event details #16

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from
Open

Tca 23/event details #16

wants to merge 20 commits into from

Conversation

CodeLeom
Copy link
Collaborator

Event details page with hero section, about event section, host and speaker details, demography, tags, and contact. A new component was also created for Icon

Copy link

vercel bot commented Feb 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
techconfafrica ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 2:33pm

Copy link
Owner

@codejagaban codejagaban left a comment

Choose a reason for hiding this comment

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

@CodeLeom Thanks for the good work.

I requested some changes to be fixed,

Cheers

width: string;
height: string;
bgColor: string;
rounded: string;
Copy link
Owner

Choose a reason for hiding this comment

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

Can we change the rounded property to an enum to catch more errors effectively?

src/styles/global.css Show resolved Hide resolved
src/styles/global.css Outdated Show resolved Hide resolved
height={height}
viewBox="0 0 24 24"
fill="none">
{svgPaths.map((path) => (
Copy link
Owner

Choose a reason for hiding this comment

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

@CodeLeom, help me understand why we have to loop through an SVG path here.

Are we doing something special with the SVGs?

Copy link
Owner

Choose a reason for hiding this comment

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

This is one hell of a long file. Can we break it down into bits and small components?

Copy link
Owner

Choose a reason for hiding this comment

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

Most of the font sizes here are not following the design so also spacings

</div>

<!-- event details content for location, attendance, dates, and cost -->
<div class="w-[352px] h-[576px] sm:order-2 order-1">
Copy link
Owner

Choose a reason for hiding this comment

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

This can be a component on its own

</div>
</section>

<!-- Host & Speakers -->
Copy link
Owner

Choose a reason for hiding this comment

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

This can also be a component

</svg>
</a>
<a href="#">
<svg
Copy link
Owner

Choose a reason for hiding this comment

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

SVGs still happening here again

<!-- Who can attend? -->
<section class="flex justify-between items-center sm:w-[1142px] w-[375px] mx-4 mt-16">
<div class="w-[704px] sm:ml-[149px]">
<p class="text-xl font-medium mb-4 text-gray-500">Who can attend?</p>
Copy link
Owner

Choose a reason for hiding this comment

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

Again this can be a component of it's own

@codejagaban
Copy link
Owner

@CodeLeom is this the PR ready for review?

@codejagaban
Copy link
Owner

@CodeLeom did you pull changes from develop into this your branch?

I can see Next.js changes here?

@CodeLeom
Copy link
Collaborator Author

CodeLeom commented May 7, 2024 via email

Copy link
Owner

@codejagaban codejagaban left a comment

Choose a reason for hiding this comment

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

There are a couple of fixes needed but I'll fix them when I need this page

<!-- Date & Time -->
<div class="flex mt-8">
<!-- using the icon component -->
<Fragment set:html={CalenderSVG} />
Copy link
Owner

Choose a reason for hiding this comment

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

Why are we still using this?🤔

We should import icons normally without Fragment

---
import Button from "../../components/elements/Button.astro";
import LocationSVG from "../../../public/location.svg?raw";
import AttendeeSVG from "../../../public/attendee.svg?raw";
Copy link
Owner

Choose a reason for hiding this comment

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

any reason why we are importing svgs with ?raw query?

import regIcon from "../../../public/regIcon.svg?raw";
---

<section
Copy link
Owner

Choose a reason for hiding this comment

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

All components should follow this pattern:

<section class="py-20">
  <div class="container mx-auto max-w-screen-xl p-5">
  ...
</div>
<section>

<div class="mr-16">
<div class="flex items-center">
<span class="mr-2 inline-flex items-center">
<Fragment set:html={phone} />
Copy link
Owner

Choose a reason for hiding this comment

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

Same icon fragment

---

<section class="flex justify-between items-center sm:w-[1142px] w-[375px] mx-4 my-16">
<div class="w-[704px] sm:ml-[149px]">
Copy link
Owner

Choose a reason for hiding this comment

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

I see so many custom pixel values here, we should considering using percentage instead for more responsiveness

Copy link
Owner

Choose a reason for hiding this comment

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

We don't need this file here😁

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.

2 participants