-
Notifications
You must be signed in to change notification settings - Fork 29
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
Adding Footer #46
Adding Footer #46
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to Our repository.🎊 Thank you so much for taking the time to point this out.
@sristy17 add the tag insrc/app/layout.tsx file at the end of tag and remove it from other files. This will keep the footer on every page since it will then be defined in the layout.
|
I have tested it on my machine and it is working |
Thanks will try for sure! |
M still not getting! How to add this just a hint! |
Just add footer.tsx in _components and add that footer in the layout file. Also, the footer will be visible after scrolling to the bottom only. import "~/styles/globals.css";
import { Inter } from "next/font/google";
// import { TRPCReactProvider } from "~/trpc/react";
const inter = Inter({
subsets: ["latin"],
variable: "--font-sans",
});
export const metadata = {
title: "AutoMarket",
description: "The Web Platform for Micro-automations",
icons: [{ rel: "icon", url: "/favicon.ico" }],
};
import Footer from "./_components/footer";
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body className={`font-sans ${inter.variable}`}>
<>{children}</>
<Footer/>
</body>
</html>
);
} |
Hey i need a help, if you dont mind can we connect on discord? |
sure, just ping on this username: pratham
|
Description
Adding Footer
Fixes #35
Type of change
Checklist: