mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## Description This PR ensures that the default prettier config is used for examples and templates. This config is compatible with `prettier@3` as well (upgrading prettier is bigger change that can be a future PR). ## Changes - Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will be needed upgrading to prettier@3) - Added `examples/.prettierrc.json` with default config (this will change every example) - Added `packages/create-next-app/templates/.prettierrc.json` with default config (this will change every template) ## Related - Fixes #54402 - Closes #54409
79 lines
2.4 KiB
JavaScript
79 lines
2.4 KiB
JavaScript
import Image from "next/image";
|
|
|
|
export default function FooterSection({ mainMenu }) {
|
|
const links = mainMenu.map((link) => ({
|
|
...link,
|
|
url: link.url[0] === "#" ? `/${link.url}` : link.url,
|
|
}));
|
|
|
|
return (
|
|
<footer className="footer pt-120">
|
|
<div className="container">
|
|
<div className="row">
|
|
<div className="col-xl-3 col-lg-4 col-md-6 col-sm-10">
|
|
<div className="footer-widget">
|
|
<div className="logo">
|
|
<a href="https://buttercms.com">
|
|
<Image
|
|
width={200}
|
|
height={50}
|
|
src="https://cdn.buttercms.com/PBral0NQGmmFzV0uG7Q6"
|
|
alt="logo"
|
|
/>
|
|
</a>
|
|
</div>
|
|
<p className="desc">
|
|
ButterCMS is your content backend. Build better with Butter.
|
|
</p>
|
|
<ul className="social-links">
|
|
<li>
|
|
<a href="#0">
|
|
<i className="lni lni-facebook"></i>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#0">
|
|
<i className="lni lni-linkedin"></i>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#0">
|
|
<i className="lni lni-instagram"></i>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#0">
|
|
<i className="lni lni-twitter"></i>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div className="col-xl-5 col-lg-4 col-md-12 col-sm-12 offset-xl-1">
|
|
<div className="footer-widget">
|
|
<h3>About Us</h3>
|
|
<ul className="links">
|
|
{links.map((navLink) => (
|
|
<li key={navLink.url}>
|
|
<a href={navLink.url}>{navLink.label}</a>
|
|
</li>
|
|
))}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="col-xl-3 col-lg-4 col-md-6">
|
|
<div className="footer-widget">
|
|
<h3>Subscribe Newsletter</h3>
|
|
<form action="#">
|
|
<input type="email" placeholder="Email" />
|
|
<button className="main-btn btn-hover">Subscribe</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
);
|
|
}
|