Skip to content

Commit

Permalink
cleanup and fix for build error
Browse files Browse the repository at this point in the history
  • Loading branch information
PBillingsby committed Dec 18, 2024
1 parent 6692002 commit 1cb208f
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 45 deletions.
6 changes: 3 additions & 3 deletions apps/website/public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://lilypad.tech/about-us</loc><lastmod>2024-11-11T04:33:04.331Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://lilypad.tech</loc><lastmod>2024-11-11T04:33:04.331Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://lilypad.tech/team</loc><lastmod>2024-11-11T04:33:04.331Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://lilypad.tech/about-us</loc><lastmod>2024-12-18T20:47:52.732Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://lilypad.tech/team</loc><lastmod>2024-12-18T20:47:52.739Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://lilypad.tech</loc><lastmod>2024-12-18T20:47:52.739Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
1 change: 1 addition & 0 deletions apps/website/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://lilypad.tech/sitemap-0.xml</loc></sitemap>
</sitemapindex>
11 changes: 1 addition & 10 deletions apps/website/src/app/clientLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function ClientLayout({
);
const pathname = usePathname();
const { strapi, isLoading: isCmsLoading } = useStrapi({ pathname });
console.log(strapi, isCmsLoading);

const resourcesArray = [
{
title: "Discord",
Expand Down Expand Up @@ -296,9 +296,6 @@ export default function ClientLayout({
(item, index) => (
<_NavMenuItem
key={index}
description={
item.description
}
title={item.title}
iconUrl={
item.iconUrl
Expand All @@ -323,9 +320,6 @@ export default function ClientLayout({
(item, index) => (
<_NavMenuItem
key={index}
description={
item.description
}
title={
item.title
}
Expand Down Expand Up @@ -365,9 +359,6 @@ export default function ClientLayout({
(item, index) => (
<_NavMenuItem
key={index}
description={
item.description
}
title={
item.title
}
Expand Down
16 changes: 4 additions & 12 deletions apps/website/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,14 @@ const INTER = Inter({ subsets: ["latin"] });
// metadata isn't allowed on a client layout
export const metadata: Metadata = {
title: "Lilypad Network",
description: "Lilypad Network: Experience the Power of Decentralized Computing",
icons: {
icon: "/favicon.ico",
},
description:
"Lilypad Network: Experience the Power of Decentralized Computing",
};

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={INTER.className}>
<ClientLayout>{children}</ClientLayout>
</body>
</html>
);
}
return <ClientLayout>{children}</ClientLayout>;
}
9 changes: 8 additions & 1 deletion apps/website/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ import useFade from "./hooks/UseFade";
import useFadeInView from "./hooks/UseFadeInView";
import { PageContext } from "./clientLayout";
import { HomePageCmsInfo } from "./hooks/strapi/types";
import { Player } from '@lottiefiles/react-lottie-player';
import RoadmapFull from "@/components/Roadmap/RoadmapFull";
import { CallToActions } from "@/components/FooterBlock/CallToActions";
// import { sendEmail } from "@/utils/sendEmail";
import { ToastContainer, toast } from 'react-toastify';
import dynamic from 'next/dynamic'

const Player = dynamic(
() => import('@lottiefiles/react-lottie-player').then((mod) => mod.Player),
{
ssr: false,
loading: () => <div>Loading...</div>
}
);
export default function Home() {
const [loading, setLoading] = useState<boolean>(false);
const [email, setEmail] = useState("");
Expand Down
1 change: 1 addition & 0 deletions apps/website/src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default function NavBar({
>
{/* Add mr-auto and ml-uui-none to the sectionContainer className with double ampersend to place the navbar logo on the left side */}
<SectionContainer>
{/* TODO update this href to go to the lilypad homepage in the future */}
<div className="flex gap-uui-xl items-center">
{logo}
<div className="gap-uui-xs hidden uui-desktop:flex">
Expand Down
14 changes: 7 additions & 7 deletions apps/website/src/components/_TeamMember/_Advisor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ const Advisor = ({

{socialIcons && socialIcons.length > 0 && (
<div className="flex items-center justify-center space-x-uui-xl mt-uui-xl">
{socialIcons
.filter((icon) => icon.href !== null)
.map((icon, index) => (
<a
{socialIcons.map((icon, index) =>
icon.iconUrl ? (
<a
key={index}
href={icon.href}
target="_blank"
rel="noopener noreferrer"
>
>
<SocialIcon iconUrl={icon.iconUrl} />
</a>
))}
</a>
) : null
)}
</div>
)}
</div>
Expand Down
24 changes: 12 additions & 12 deletions apps/website/src/components/_TeamMember/_TeamMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ const TeamMember = ({

{socialIcons && socialIcons.length > 0 && (
<div className="flex items-center justify-center space-x-uui-xl mt-uui-xl">
{socialIcons
.filter((icon) => icon.href !== null)
.map((icon, index) => (
<a
key={index}
href={icon.href}
target="_blank"
rel="noopener noreferrer"
>
<SocialIcon iconUrl={icon.iconUrl} />
</a>
))}
{socialIcons.map((icon, index) =>
icon.iconUrl ? (
<a
key={index}
href={icon.href}
target="_blank"
rel="noopener noreferrer"
>
<SocialIcon iconUrl={icon.iconUrl} />
</a>
) : null
)}
</div>
)}
</div>
Expand Down

0 comments on commit 1cb208f

Please sign in to comment.