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

feature(website): sections for new landing page #791

Merged
merged 19 commits into from
Apr 23, 2024
Merged

Conversation

DarkMenacer
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Mar 30, 2024

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

Name Status Preview Comments Updated (UTC)
public ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2024 2:10am

Copy link

github-actions bot commented Mar 30, 2024

Visit the preview URL for this PR (updated for commit 581f629):

https://si-admin-staging--pr791-pranav-new-landing-p-xevh9bsb.web.app

(expires Tue, 30 Apr 2024 02:11:55 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: b7b0969384059dce6ea8fad1ee1d1737e54e6676

@DarkMenacer
Copy link
Contributor Author

@mkue
I'm done with the FAQ section, could you have a look at it?
If everything is fine, I'll move on to the Quotes section

@DarkMenacer
Copy link
Contributor Author

@mkue @ssandino
Worked on the quotes section. Most of it is complete but I didn't add the translations code because I have a doubt there (regarding the avatar image data). I'm waiting for now, I'll get these two reviewed and then continue working on the other sections.

{questions.map((question, index) => (
<AccordionItem key={index} value={`item-${index}`}>
<AccordionTrigger>
<Typography size="lg" className="text-left">
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the "text-left" required? Seems to me that this should be the default and part of the AccordionTrigger.

<hr />
<Accordion type="single" collapsible className="mb-10 w-full">
{questions.map((question, index) => (
<AccordionItem key={index} value={`item-${index}`}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Using the index for the key is apparently bad practice (https://react.dev/learn/tutorial-tic-tac-toe#picking-a-key). I know, I did this everywhere🙈 I just learned recently that it should be avoided...

@mkue
Copy link
Contributor

mkue commented Apr 12, 2024

looks good to me🙌🏼

@DarkMenacer
Copy link
Contributor Author

@mkue @ssandino
Added two more sections
overview.tsx and approach.tsx

Could you review these sections as well?

@@ -92,17 +92,22 @@
"section-7": {
"title-1": "Social Income combines three approaches to change."
},
"section-8": {
"section-x": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this intended?

@mkue mkue marked this pull request as ready for review April 21, 2024 08:28
Copy link
Contributor

@mkue mkue left a comment

Choose a reason for hiding this comment

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

Looks good! Let's merge it and do the next sessions in a new PR, ok? This makes it a little easier to review.

@DarkMenacer
Copy link
Contributor Author

Works

@DarkMenacer
Copy link
Contributor Author

DarkMenacer commented Apr 22, 2024

@mkue Can you merge this PR, I'll quickly take up the next sections...
We plan to present the new landing page during the coming townhall on the 1st of May

Copy link
Member

@ssandino ssandino left a comment

Choose a reason for hiding this comment

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

@DarkMenacer, I think you should be able to merge this yourself, as @mkue has already reviewed it and one approval should make it mergeable for you. Please let me know if this option is somehow not available to you.

@DarkMenacer
Copy link
Contributor Author

Okay, got it
I'll merge the PR then

@DarkMenacer
Copy link
Contributor Author

@ssandino
Screenshot 2024-04-23 at 07 50 44

It says this
I am not able to merge it

@ssandino ssandino disabled auto-merge April 23, 2024 06:11
@ssandino
Copy link
Member

@DarkMenacer ah I know why, when things change in the UI folder @renestalder is asked an additional review. @renestalder could you click "approved" (no review required). Thanks

Copy link
Contributor

@renestalder renestalder left a comment

Choose a reason for hiding this comment

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

@ssandino @DarkMenacer You might wanna remove me from all code owner assignments and code review tasks. I'm so out of the loop, looking at the code I feel like you are doing anything in the code style we have in that project, but I would anyway disagree with many things because that's not the way I'd consider it best practice. My reviews only lead to many comments that are not particular helpful in this code base. I've become a very picky code reviewer as I look very closely at things like accessibility and performance. And I lead teams with focus of sustainability of code bases, that remove Tailwind and unnecessary third-party React dependencies. Nothing of that is particilar useful for Social Income at the moment.

));
AccordionContent.displayName = AccordionPrimitive.Content.displayName;

export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
Copy link
Contributor

Choose a reason for hiding this comment

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

Add the export directly to the corresponding functions/const declarations. There is no benefit of collecting them at the end of the file.

Copy link
Member

Choose a reason for hiding this comment

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

@DarkMenacer thank you for considering this for a future PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is definitely fine as the code directly comes from https://ui.shadcn.com/docs/components/accordion and does not need to be changed apart from the tailwind styling...

@@ -0,0 +1,56 @@
'use client';

import * as AccordionPrimitive from '@radix-ui/react-accordion';
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider using the native <details> element with additional group closing handlers instead of adding a dependency on top that is probably already obsolete.

We benefit from using what is already there in HTML.

Copy link
Member

Choose a reason for hiding this comment

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

@DarkMenacer thank you for considering this for a future PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like that this is just called accordion2. That is not a semantically useful name and I smell that there is probably already an accordion that could have been extended instead of adding another component with a not so descriptive name.

Copy link
Member

@ssandino ssandino Apr 23, 2024

Choose a reason for hiding this comment

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

@renestalder yes, renaming to the standard name accordion is planned following the migration of the new design.

@ssandino ssandino merged commit 7900038 into main Apr 23, 2024
18 checks passed
@ssandino ssandino deleted the pranav/new-landing-page branch April 23, 2024 09:34
socialincome-dev added a commit that referenced this pull request Apr 23, 2024
As discussed in #791 with Rene: he requested to be replaced as code owner. I added instead the three regular code owners until further notice. Additionally, I have added our private GitHub dev account (account used for this PR) as a code owner for the website and shared folder, enabling quicker fixes, such as typos and similar issues.
ssandino pushed a commit that referenced this pull request Apr 23, 2024
As discussed in #791 with Rene: he requested to be replaced as code owner. I added instead the three regular code owners until further notice. Additionally, I have added our private GitHub dev account (account used for this PR) as a code owner for the website and shared folder, enabling quicker fixes, such as typos and similar issues.
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.

[Website Feature]: Landing page with new design
4 participants