Skip to content

Commit a82db18

Browse files
committed
Update layout and add new dependencies
1 parent 06027e2 commit a82db18

19 files changed

+774
-285
lines changed

Diff for: app/(routes)/dashboard/[slug]/page.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from "react";
2+
3+
const page = () => {
4+
return <div>page</div>;
5+
};
6+
7+
export default page;

Diff for: app/(routes)/dashboard/page.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from "react";
2+
3+
const page = () => {
4+
return <div className="text-white">DashBoard</div>;
5+
};
6+
7+
export default page;

Diff for: app/_components/Footer.tsx

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
import React from "react";
2+
import { footerLinks } from "./Footerlinks.json";
3+
import Image from "next/image";
4+
5+
const Footer = () => {
6+
return (
7+
<footer className="bg-neutral-900">
8+
<div className="mx-auto max-w-screen-xl space-y-8 px-4 py-16 sm:px-6 lg:space-y-16 lg:px-8">
9+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-3">
10+
<div>
11+
<Image
12+
src={"./footer_logo.svg"}
13+
alt="Eraser.io"
14+
height={130}
15+
width={130}
16+
/>
17+
<p className="mt-4 max-w-xs text-gray-500">
18+
Documents & diagrams for engineering teams
19+
</p>
20+
21+
<ul className="mt-8 flex gap-6">
22+
<li>
23+
<a
24+
href="#"
25+
rel="noreferrer"
26+
target="_blank"
27+
className="text-gray-500 transition hover:opacity-75"
28+
>
29+
<span className="sr-only">Facebook</span>
30+
31+
<svg
32+
className="h-6 w-6"
33+
fill="currentColor"
34+
viewBox="0 0 24 24"
35+
aria-hidden="true"
36+
>
37+
<path
38+
fillRule="evenodd"
39+
d="M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.094 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.562V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z"
40+
clipRule="evenodd"
41+
/>
42+
</svg>
43+
</a>
44+
</li>
45+
46+
<li>
47+
<a
48+
href="#"
49+
rel="noreferrer"
50+
target="_blank"
51+
className="text-gray-500 transition hover:opacity-75"
52+
>
53+
<span className="sr-only">Instagram</span>
54+
55+
<svg
56+
className="h-6 w-6"
57+
fill="currentColor"
58+
viewBox="0 0 24 24"
59+
aria-hidden="true"
60+
>
61+
<path
62+
fillRule="evenodd"
63+
d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.466.399.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z"
64+
clipRule="evenodd"
65+
/>
66+
</svg>
67+
</a>
68+
</li>
69+
70+
<li>
71+
<a
72+
href="#"
73+
rel="noreferrer"
74+
target="_blank"
75+
className="text-gray-500 transition hover:opacity-75"
76+
>
77+
<span className="sr-only">Twitter</span>
78+
79+
<svg
80+
className="h-6 w-6"
81+
fill="currentColor"
82+
viewBox="0 0 24 24"
83+
aria-hidden="true"
84+
>
85+
<path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />
86+
</svg>
87+
</a>
88+
</li>
89+
</ul>
90+
</div>
91+
92+
<div className="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:col-span-2 lg:grid-cols-4">
93+
{footerLinks.map((column: any, index: any) => (
94+
<div key={index}>
95+
<p className="font-medium text-gray-100">{column.title}</p>
96+
97+
<ul className="mt-6 space-y-4 text-sm">
98+
{column.links.map((link: any, index: any) => (
99+
<li key={index}>
100+
<a
101+
href={link.href}
102+
className="text-gray-300 transition hover:opacity-75"
103+
>
104+
{link.label}
105+
</a>
106+
</li>
107+
))}
108+
</ul>
109+
</div>
110+
))}
111+
</div>
112+
</div>
113+
114+
<p className="text-xs text-gray-500">© 2024 Dark, Inc.</p>
115+
</div>
116+
</footer>
117+
);
118+
};
119+
120+
export default Footer;

Diff for: app/_components/Footerlinks.json

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"footerLinks": [
3+
{
4+
"title": "Services",
5+
"links": [
6+
{
7+
"label": "1on1 Coaching",
8+
"href": "#"
9+
},
10+
{
11+
"label": "Company Review",
12+
"href": "#"
13+
},
14+
{
15+
"label": "Accounts Review",
16+
"href": "#"
17+
},
18+
{
19+
"label": "HR Consulting",
20+
"href": "#"
21+
},
22+
{
23+
"label": "SEO Optimisation",
24+
"href": "#"
25+
}
26+
]
27+
},
28+
{
29+
"title": "Company",
30+
"links": [
31+
{
32+
"label": "About",
33+
"href": "#"
34+
},
35+
{
36+
"label": "Meet the Team",
37+
"href": "#"
38+
},
39+
{
40+
"label": "Accounts Review",
41+
"href": "#"
42+
}
43+
]
44+
},
45+
{
46+
"title": "Helpful Links",
47+
"links": [
48+
{
49+
"label": "Contact",
50+
"href": "#"
51+
},
52+
{
53+
"label": "FAQs",
54+
"href": "#"
55+
},
56+
{
57+
"label": "Live Chat",
58+
"href": "#"
59+
}
60+
]
61+
}
62+
]
63+
}

Diff for: app/_components/Header.tsx

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
import Image from "next/image";
2+
import React from "react";
3+
4+
const Header = () => {
5+
return (
6+
<header className="z-10 backdrop-blur-xl w-full fixed">
7+
<div className="mx-auto flex h-16 max-w-screen-xl items-center gap-8 px-4 sm:px-6 lg:px-8">
8+
<a className="flex gap-2" href="#">
9+
<Image src={"./logo.svg"} alt="Eraser.io" width={30} height={30} />
10+
<p className="text-white font-semibold">eraser</p>
11+
</a>
12+
13+
<div className="flex flex-1 items-center justify-end md:justify-between">
14+
<nav aria-label="Global" className="hidden md:block">
15+
<ul className="flex items-center gap-6 text-sm">
16+
<li>
17+
<a
18+
className="text-white transition hover:text-white/75"
19+
href="#"
20+
>
21+
{" "}
22+
About{" "}
23+
</a>
24+
</li>
25+
26+
<li>
27+
<a
28+
className="text-white transition hover:text-white/75"
29+
href="#"
30+
>
31+
{" "}
32+
Careers{" "}
33+
</a>
34+
</li>
35+
36+
<li>
37+
<a
38+
className="text-white transition hover:text-white/75"
39+
href="#"
40+
>
41+
{" "}
42+
History{" "}
43+
</a>
44+
</li>
45+
46+
<li>
47+
<a
48+
className="text-white transition hover:text-white/75"
49+
href="#"
50+
>
51+
{" "}
52+
Services{" "}
53+
</a>
54+
</li>
55+
56+
<li>
57+
<a
58+
className="text-white transition hover:text-white/75"
59+
href="#"
60+
>
61+
{" "}
62+
Projects{" "}
63+
</a>
64+
</li>
65+
</ul>
66+
</nav>
67+
68+
<div className="flex items-center gap-4">
69+
<div className="sm:flex sm:gap-4">
70+
<a
71+
className="block rounded-lg px-5 py-2.5 text-sm font-medium text-white transition hover:bg-blue-500 "
72+
href="#"
73+
>
74+
Login
75+
</a>
76+
<a
77+
className="hidden md:block rounded-lg px-5 py-2.5 text-sm font-medium text-white transition hover:bg-gray-700"
78+
href="#"
79+
>
80+
Register
81+
</a>
82+
</div>
83+
84+
<button className="block rounded bg-gray-100 p-2.5 text-black transition hover:text-gray-500/75 md:hidden">
85+
<span className="sr-only">Toggle menu</span>
86+
<svg
87+
xmlns="http://www.w3.org/2000/svg"
88+
className="h-5 w-5"
89+
fill="none"
90+
viewBox="0 0 24 24"
91+
stroke="currentColor"
92+
strokeWidth="2"
93+
>
94+
<path
95+
strokeLinecap="round"
96+
strokeLinejoin="round"
97+
d="M4 6h16M4 12h16M4 18h16"
98+
/>
99+
</svg>
100+
</button>
101+
</div>
102+
</div>
103+
</div>
104+
</header>
105+
);
106+
};
107+
108+
export default Header;

Diff for: app/_components/Hero.tsx

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { ArrowRight } from "lucide-react";
2+
import React from "react";
3+
4+
const Hero = () => {
5+
return (
6+
<section className="relative bg-gradient-to-b from-neutral-900 via-gray-900 to-neutral-900 text-white">
7+
<div className="absolute top-28 w-full justify-center flex ">
8+
<div className="py-2 px-2 rounded-3xl border-t-[1.5px] border-l-2 border-white/20 bg-white/20 cursor-pointer shadow-lg">
9+
<p className="mx-auto text-white text-sm">
10+
See what's new |{" "}
11+
<span className="text-sky-500">AI Diagrams {">"} </span>
12+
</p>
13+
</div>
14+
</div>
15+
<div className="mx-auto max-w-screen-xl px-8 py-32 lg:flex lg:h-screen lg:items-center">
16+
<div className="mx-auto max-w-3xl mt-8 text-center">
17+
<h1 className="bg-gradient-to-r from-blue-300 via-blue-500 to-purple-600 bg-clip-text p-2 text-3xl font-extrabold text-transparent sm:text-5xl">
18+
Documents & diagrams
19+
</h1>
20+
<p className="sm:block text-5xl font-semibold">
21+
{" "}
22+
for engineering teams{" "}
23+
</p>
24+
25+
<p className="mx-auto mt-4 max-w-xl sm:text-xl/relaxed">
26+
All-in-one markdown editor, collaborative canvas, and
27+
diagram-as-code builder
28+
</p>
29+
30+
<div className="mt-8 flex flex-wrap justify-center gap-4">
31+
<a
32+
className="flex items-center w-full rounded-lg border border-white bg-neutral-100 px-4 py-2 text-sm font-medium text-black hover:bg-neutral-300 hover:text-neutral-900 focus:outline-none focus:ring active:text-opacity-75 sm:w-auto"
33+
href="#"
34+
>
35+
Get Started
36+
<p className="ml-2">
37+
<ArrowRight size={24} />
38+
</p>
39+
</a>
40+
</div>
41+
</div>
42+
</div>
43+
</section>
44+
);
45+
};
46+
47+
export default Hero;

0 commit comments

Comments
 (0)