Skip to content

Commit 671b05b

Browse files
committed
working on landingpage
1 parent af280db commit 671b05b

File tree

6 files changed

+39
-15
lines changed

6 files changed

+39
-15
lines changed

public/logo.png

-42.1 KB
Loading

src/components/Navbar/Navbar.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ const Navbar = () => {
3535
<div className="flex items-center">
3636
{/* Logo */}
3737
<div className="text-xl justify-start font-semibold w-1/6">
38-
<a href="#">MyLogo</a>
38+
<Link to="/">
39+
<img src={process.env.PUBLIC_URL + '/logo.png'} alt="Logo" className="h-[50px]"/>
40+
</Link>
3941
</div>
4042

4143
{/* Desktop Links */}
4244
<div className="hidden justify-end w-5/6 md:flex space-x-6">
43-
<Link className="hover:text-gray-500 p-2 rounded text-textcolor font-bold" to="/">Home</Link>
45+
<Link className="hover:text-gray-500 p-2 rounded text-textcolor font-bold" to="/docs">Docs</Link>
4446
<Link className="hover:text-gray-500 p-2 rounded text-textcolor font-bold" to="/blog">Blog</Link>
4547
<Link className="hover:text-gray-500 p-2 rounded text-textcolor font-bold" to="/about">About</Link>
4648
<button

src/index.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ body {
1616
}
1717

1818
.dark {
19-
--navbar: 189, 193, 198;
2019
--background: 21, 20, 26;
2120
--textcolor: 255, 255, 255;
2221
}
2322

2423
.light {
25-
--navbar: 91,91,102;
2624
--background: 229, 231, 235;
2725
--textcolor: 0, 0, 0;
2826
}

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Layout from "./pages/Layout";
44
import Home from "./pages/Home";
55
import Blog from "./pages/Blog";
66
import About from "./pages/About";
7+
import Docs from "./pages/Docs";
78
import NoPage from "./pages/NoPage";
89

910
import "./index.css";
@@ -16,6 +17,7 @@ export default function App() {
1617
<Route index element={<Home />} />
1718
<Route path="blog" element={<Blog />} />
1819
<Route path="about" element={<About />} />
20+
<Route path="docs" element={<Docs />} />
1921
<Route path="*" element={<NoPage />} />
2022
</Route>
2123
</Routes>

src/pages/Docs.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const Docs = () => {
2+
return (
3+
<div className="text-textcolor dark:text-textcolor">
4+
<h1>Docs</h1>
5+
</div>
6+
)
7+
};
8+
9+
export default Docs;
10+

src/pages/Home.js

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
1+
import { Link } from "react-router-dom";
2+
13
const Home = () => {
24
return (
35
<div className="text-textcolor dark:text-textcolor">
6+
<div className="pb-15">
7+
<div className="flex justify-center items-center content-center">
8+
<span>
9+
<img src={process.env.PUBLIC_URL + '/logo.png'} alt="Logo" className="h-[350px]"/>
10+
</span>
11+
<span className="text-5xl">
12+
owlMQ
13+
</span>
14+
</div>
15+
<div className="flex justify-center items-center content-center">
16+
<p className="text-4xl">
17+
Distributed message queuing service
18+
</p>
19+
</div>
20+
<div className="flex justify-center items-center content-center p-10">
21+
<button class="text-textcolor dark:text-textcolor py-2 px-4 border border-textcolor dark:border-textcolor rounded hover:bg-neutral-300 hover:dark:bg-neutral-800">
22+
<Link to="/docs#getting_started">Getting started</Link>
23+
</button>
24+
</div>
25+
26+
</div>
427
<p>
528
WORK IN PROGRESS
629
<br />
730
<br />
8-
<div
9-
style={{
10-
width: '300px',
11-
height: '200px',
12-
margin: '0 auto',
13-
textAlign: 'center',
14-
paddingTop: '90px'
15-
}}
16-
>
17-
<img src={process.env.PUBLIC_URL + '/logo.png'} alt="Logo" />
18-
</div>
1931
</p>
2032
</div>
2133
);

0 commit comments

Comments
 (0)