Skip to content

Commit 857bbd5

Browse files
committed
footer
1 parent bc0432b commit 857bbd5

11 files changed

Lines changed: 88 additions & 12 deletions

File tree

components/Footer.jsx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import React from 'react';
2+
import { Github } from 'lucide-react';
3+
4+
const Footer = () => {
5+
const handleFeedbackClick = () => {
6+
window.location.href = 'mailto:dheerajjha451@gmail.com?subject=Feedback';
7+
};
8+
9+
return (
10+
<footer className="border-t border-gray-200 bg-white p-6">
11+
<div className="container mx-auto max-w-6xl flex flex-col md:flex-row justify-between items-center">
12+
<p className="text-center md:text-left mb-4 md:mb-0">&copy; {new Date().getFullYear()} All rights reserved.</p>
13+
<div className="flex items-center space-x-4">
14+
<a
15+
href="https://github.com/Dheerajjha451/Design2Code"
16+
target="_blank"
17+
rel="noopener noreferrer"
18+
className="text-black hover:text-bold"
19+
>
20+
<Github size={30} />
21+
</a>
22+
<p
23+
className="text-blue-400 hover:text-blue-500 cursor-pointer"
24+
onClick={handleFeedbackClick}
25+
>
26+
Feedback
27+
</p>
28+
</div>
29+
</div>
30+
</footer>
31+
);
32+
};
33+
34+
export default Footer;

components/Header.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const Header = () => {
1515
}
1616

1717
return (
18-
<nav className="border-b border-gray-200 sticky top-0 z-50 bg-white">
19-
<div className="flex flex-wrap items-center justify-between mx-auto p-4">
18+
<nav className="border-b border-gray-200 sticky top-0 z-50 bg-white ">
19+
<div className="flex flex-wrap items-center justify-between mx-auto p-4 max-w-[1440px] mx-auto">
2020
<Link href={'/'} className='flex items-center space-x-3 text-primary font-bold'>
2121
<img src='/Designer.png' width={32} height={32} alt="Logo" />
2222
<span className="self-center text-2xl font-semibold whitespace-nowrap">

components/Hero.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useSession } from 'next-auth/react';
55
const Hero = () => {
66
const { data: session } = useSession();
77
return <>
8-
<div className="relative overflow-hidden">
8+
<div className="relative overflow-hidden max-w-[1440px] mx-auto">
99
<div className="pb-16 pt-20 sm:pt-24 lg:pb-24 lg:pt-24">
1010
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
1111
<div className="text-center">

components/Templates.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Templates = () => {
2727

2828
return (
2929
<>
30-
<header className="border-b mb-3">
30+
<header className="border-b mb-3 max-w-[1440px] mx-auto">
3131
<div className="mx-auto px-4 py-4 sm:px-6 lg:px-8">
3232
<div className="flex flex-wrap items-center justify-between gap-4 sm:gap-6 lg:gap-8">
3333
<div className="text-center sm:text-left">
@@ -48,7 +48,7 @@ const Templates = () => {
4848
</header>
4949

5050
{loading && templates.length === 0 && (
51-
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 lg:gap-8">
51+
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 lg:gap-8 ">
5252
{[...Array(8)].map((_, index) => (
5353
<div className="flex flex-col space-y-3" key={index}>
5454
<Skeleton className="h-[125px] w-full rounded-xl" />
@@ -61,7 +61,7 @@ const Templates = () => {
6161
</div>
6262
)}
6363

64-
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 lg:gap-8">
64+
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 lg:gap-8 max-w-[1440px] mx-auto">
6565
{filterTemplates.map((template) => (
6666
<TemplateItem key={template.id} template={template} />
6767
))}

components/dashboard/DashboardHeader.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const DashboardHeader = () => {
3737
</button>
3838
</div>
3939

40-
<aside className={`fixed z-40 w-80 h-full bg-gray-50 transition-transform ${isSidebarOpen ? 'translate-x-0' : '-translate-x-full'} sm:translate-x-0`}>
40+
<aside className={`fixed z-40 w-80 h-100 bg-gray-50 transition-transform ${isSidebarOpen ? 'translate-x-0' : '-translate-x-full'} sm:translate-x-0`}>
4141
<div className="h-full px-3 py-4 overflow-y-auto relative">
4242
<button
4343
className="absolute top-4 right-4 text-gray-500 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-gray-200 rounded-lg p-2 sm:hidden"

data.js

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,18 @@ export const webFrameworkNames = [
66
'Python',
77
'Angular',
88
'Nuxt',
9-
'Other'
10-
9+
'Other',
10+
'Gatsby',
11+
'Ember.js',
12+
'Backbone.js',
13+
'Laravel',
14+
'Django',
15+
'Flask',
16+
'Ruby on Rails',
17+
'ASP.NET',
18+
'Express.js',
19+
'Meteor',
20+
'Other'
1121
];
1222

1323
export const cssPackages = [
@@ -22,7 +32,18 @@ export const cssPackages = [
2232
'UIKit',
2333
'Skeleton',
2434
'Styled Components',
25-
'Others'
35+
'Others',
36+
'LESS',
37+
'Sass',
38+
'PostCSS',
39+
'Tachyons',
40+
'Milligram',
41+
'Pure CSS',
42+
'Stylus',
43+
'CSS Modules',
44+
'Emotion',
45+
'Radium',
46+
'Other'
2647
];
2748

2849
export const useCases = [
@@ -43,4 +64,15 @@ export const useCases = [
4364
'Real-time Apps',
4465
'SaaS',
4566
'Virtual Events',
67+
'Business Websites',
68+
'News Websites',
69+
'Personal Blogs',
70+
'Forums',
71+
'Learning Management Systems (LMS)',
72+
'Social Media Platforms',
73+
'Job Boards',
74+
'Q&A Websites',
75+
'Crowdfunding Platforms',
76+
'Streaming Services',
77+
'Other'
4678
];

pages/_app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ import { SpeedInsights } from '@vercel/speed-insights/next';
44
import { SessionProvider } from "next-auth/react"
55
import { Analytics } from '@vercel/analytics/react';
66
import { Poppins } from "next/font/google";
7+
import Footer from "@/components/Footer";
78

89
const poppins = Poppins({ subsets: ["latin"], weight: ["400", "500", "600", "700"] });
910

1011
export default function App({ Component, pageProps: { session, ...pageProps } }) {
1112
return <>
1213
<SessionProvider>
13-
<main className={`${poppins.className} max-w-[1440px] mx-auto`}>
14+
<main className={`${poppins.className} `}>
1415
<Header />
1516
<Component {...pageProps} />
17+
<Footer/>
1618
</main>
1719
</SessionProvider>
1820
<SpeedInsights />

pages/dashboard/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import React from 'react'
55

66
const Dashboard = () => {
77
return <>
8+
<div className=' max-w-[1440px] mx-auto'>
89
<DashboardLayout>
910
<DashboardContent />
1011
</DashboardLayout>
12+
</div>
1113
</>
1214
}
1315

pages/dashboard/projects/edit/[...id].js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ const EditTemplate = () => {
1919
}, [id]);
2020

2121
return <>
22+
<div className=' max-w-[1440px] mx-auto'>
2223
<DashboardLayout>
2324
{templateInfo && (
2425
<TemplateForm {...templateInfo} />
2526
)}
2627
</DashboardLayout>
28+
</div>
2729
</>
2830
}
2931

pages/dashboard/projects/new/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import React from 'react'
44

55
const NewTemplate = () => {
66
return <>
7+
<div className=' max-w-[1440px] mx-auto'>
78
<DashboardLayout>
89
<TemplateForm />
910
</DashboardLayout>
11+
</div>
1012
</>
1113
}
1214

0 commit comments

Comments
 (0)