8000 Footers for tenants by rchlfryn · Pull Request #201 · NWACus/web · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Footers for tenants #201

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Footers for tenants #201

wants to merge 13 commits into from

Conversation

rchlfryn
Copy link
Collaborator

Description

Creates a customizable footer for each tenant. This PR does not include the subscribe form (Issue created #200)

Issue

Resolves #102

Screenshot

8052ac969eee6ae1452d8169db31f3b3

Copy link

Preview deployment: https://footer.preview.avy-fx.org

</div>
</div>
<div className="container text-center pb-8">
<p className="mb-2">All Content © 2017 – 2025 {name}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

How did we come up with these dates, and who owns the copyright? Do we want the end date to be dynamic from new Date() so we don't need to update it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These were in the mocks which appears to be taken from the current website. And it's common to use a span to show the years of publication. I typically just use new Date() to show the current year, but this might be a Rusty question.

Copy link
Contributor

Choose a reason for hiding this comment

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

Gotcha - yeah, let's check to see if we can be dynamic, that would be nice to have.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be nice to include this in a settings collection I think. Could default to just current year if there isn't a start year set. I don't know how we would refer to that. Content copyright starting year?

return {
tenant: tenant.id,
footerLogo: brandImages[tenant.slug]['logo'].id,
name: tenant.name,
Copy link
Contributor

Choose a reason for hiding this comment

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

Would we ever want the footer's name to be something other than the tenant's name? If not, we should imo remove the field and just look up the tenant's name for rendering.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am not sure - which is why I made this dynamic. I will ask Rusty and report back.

Copy link
Collaborator Author
A3D4

Choose a reason for hiding this comment

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

It looks like we can just import the tenants name. I will update this

@rchlfryn rchlfryn requested review from busbyk and stevekuznetsov May 22, 2025 19:09
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.

Customizable footer
3 participants
3174
0