-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow installer to pull the installerId from searchParams
this required a refactor of the root layout and modifications to the way we handle `Metadata`. - [ ] figure out how to use `searchParams` in the `generateMetadata` - [ ] ensure the metadata is generated well regardless of what method we use to get the installerId.
- Loading branch information
Showing
6 changed files
with
120 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Link, PoweredByNuon } from "@/components"; | ||
import { Markdown } from "@/components/Markdown"; | ||
|
||
const missingData = { | ||
orgName: "Nuon", | ||
}; | ||
|
||
export const Footer = (metadata: any) => ( | ||
<footer className="flex items-center justify-between"> | ||
<div className="flex gap-2 items-center"> | ||
{metadata.copyright_markdown ? ( | ||
<Markdown content={metadata.copyright_markdown} /> | ||
) : ( | ||
<> | ||
<span className="text-xs">© {new Date().getFullYear()}</span> | ||
<Link | ||
href={metadata.homepage_url} | ||
className="text-xs" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
{missingData.orgName} | ||
</Link> | ||
</> | ||
)} | ||
</div> | ||
<div className="flex gap-6 items-center"> | ||
{metadata.footer_markdown ? ( | ||
<Markdown content={metadata.footer_markdown} /> | ||
) : ( | ||
<PoweredByNuon /> | ||
)} | ||
</div> | ||
</footer> | ||
); |