Skip to content

Commit

Permalink
adding the landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
alok-mishra143 committed Feb 8, 2024
1 parent c2e03dc commit 745d145
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 6 deletions.
11 changes: 10 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-icons": "^5.0.1"
},
"devDependencies": {
"@types/react": "^18.2.43",
Expand Down
7 changes: 7 additions & 0 deletions public/ochi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file removed src/App.css
Empty file.
10 changes: 6 additions & 4 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import "./App.css";
import LandingPage from "./components/LandingPage";
import Navbar from "./components/Navbar";

function App() {
return (
<>
<h1 className="text-3xl font-bold underline">Hello world!</h1>
</>
<div className="w-full h-screen text-white">
<Navbar />
<LandingPage />
</div>
);
}

Expand Down
45 changes: 45 additions & 0 deletions src/components/LandingPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { FaLongArrowAltUp } from "react-icons/fa";

const LandingPage = () => {
const titles = ["We Create", "Eye-opening", "presentations"];
const below_border = [
"For public and private companies",
"From the first pitch to IPO",
];
return (
<div className="w-full h-screen bg-zinc-900 pt-1">
<div className="TextStructure mt-52 px-20">
{titles.map((title, index) => (
<div key={index} className="Masker">
<div className="w-fit flex items-center">
<h1 className="font-['Test_Founders_Grotesk_X-Condensed'] uppercase text-[138px] leading-[104px] font-bold tracking-tight">
{title}
</h1>
</div>
</div>
))}
</div>

<div className="border-t-[1px] border-zinc-800 mt-32 flex justify-between items-center tracking-tight leading-none py-5 px-20">
{below_border.map((phrase, index) => (
<p key={index} className="text-md font-light ">
{phrase}
</p>
))}

<div className="start flex gap-5 items-center">
<div className="px-5 py-2 border-[1px] border-zinc-500 rounded-full uppercase font-light text-md ">
start the project
</div>
<div className="w-10 h-10 rounded-full border-[1px] border-zinc-500 flex items-center justify-center ">
<span className="rotate-[45deg]">
<FaLongArrowAltUp />
</span>
</div>
</div>
</div>
</div>
);
};

export default LandingPage;
27 changes: 27 additions & 0 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const Navbar = () => {
const links = ["Service", "Our Works", "About us", "Insights", "Contact us"];

return (
<div className="fixed z-[999] px-20 w-full py-8 font-[ 'Neue_Montreal_Regular'] flex justify-between items-center">
<div className="logo">
<img src="./ochi.svg" alt="ochi" />
</div>

<div className="links flex gap-10">
{links.map((item, index) => (
<a
href="#"
key={index}
className={`capitalize text-lg font-light ${
index === 4 ? "ml-32" : ""
}`}
>
{item}
</a>
))}
</div>
</div>
);
};

export default Navbar;

0 comments on commit 745d145

Please sign in to comment.