Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ompoi_landing page
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mubarak S
ompoi_landing page
Commits
5bcfcb4b
Commit
5bcfcb4b
authored
1 month ago
by
Mubarak S
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
368a392f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
navbar.jsx
+104
-0
104 additions, 0 deletions
navbar.jsx
with
104 additions
and
0 deletions
navbar.jsx
0 → 100644
+
104
−
0
View file @
5bcfcb4b
import
React
,
{
useState
}
from
"
react
"
;
import
{
FaBars
,
FaTimes
}
from
"
react-icons/fa
"
;
import
backgd
from
"
./hero_section.png
"
;
import
boy
from
"
./vendor_boy_girl.png
"
;
function
Navbar
()
{
const
[
menuOpen
,
setMenuOpen
]
=
useState
(
false
);
return
(
<
div
className
=
"min-h-screen bg-cover"
style
=
{
{
backgroundImage
:
`url(
${
backgd
}
)`
}
}
>
{
/* Navbar */
}
<
div
className
=
"bg-[#28409C] h-[55px] flex items-center justify-between rounded-3xl mx-4 sm:mx-8 mt-6 p-4 sm:p-6 relative"
>
{
/* Logo */
}
<
h1
className
=
"text-white font-semibold text-2xl sm:text-3xl"
>
OMPOI
</
h1
>
{
/* Hamburger Menu Icon (Visible on small screens) */
}
<
div
className
=
"md:hidden cursor-pointer text-white text-2xl"
onClick
=
{
()
=>
setMenuOpen
(
!
menuOpen
)
}
>
{
menuOpen
?
<
FaTimes
/>
:
<
FaBars
/>
}
</
div
>
{
/* Navigation Menu */
}
<
div
className
=
{
`absolute md:static top-16 right-0 w-full bg-transparent backdrop-filter backdrop-blur-md md:bg-transparent transition-transform duration-100 ease-in-out
${
menuOpen
?
"
translate-x-0
"
:
"
-translate-x-full md:translate-x-0
"
}
`
}
>
<
nav
className
=
"flex flex-col md:flex-row items-center justify-center gap-4 md:gap-12 py-4 md:py-0"
>
<
a
className
=
"text-black md:text-white font-bold text-lg md:text-2xl hover:text-[#FFBD69] transition-colors duration-300"
href
=
"#"
>
Home
</
a
>
<
a
className
=
"text-black md:text-white font-bold text-lg md:text-2xl hover:text-[#FFBD69] transition-colors duration-300"
href
=
"#"
>
Profile
</
a
>
<
a
className
=
"text-black md:text-white font-bold text-lg md:text-2xl hover:text-[#FFBD69] transition-colors duration-300"
href
=
"#"
>
Contact
</
a
>
</
nav
>
</
div
>
{
/* Get Started Button */
}
<
button
className
=
"hidden md:block bg-[#FFBD69] text-black font-bold text-sm md:text-base rounded-lg w-[160px] h-[37px] hover:bg-yellow-400 transition-colors duration-300"
>
Get Started
</
button
>
</
div
>
{
/* Hero Section */
}
<
div
className
=
"text-4xl font-bold mt-10 mx-4 sm:mx-10"
>
<
div
>
<
span
className
=
"text-[#FF8C00] text-4xl sm:text-[4rem]"
>
O
</
span
>
<
span
className
=
"text-blue-900 text-3xl sm:text-[3rem]"
>
nline
</
span
>
{
"
"
}
<
span
className
=
"text-[#FF8C00] text-4xl sm:text-[4rem]"
>
M
</
span
>
<
span
className
=
"text-blue-900 text-3xl sm:text-[3rem]"
>
arket
</
span
>
{
"
"
}
<
span
className
=
"text-[#FF8C00] text-4xl sm:text-[4rem]"
>
P
</
span
>
<
span
className
=
"text-blue-900 text-3xl sm:text-[3rem]"
>
lace
</
span
>
{
"
"
}
<
br
/>
<
span
className
=
"text-[#FF8C00] text-4xl sm:text-[4rem]"
>
O
</
span
>
<
span
className
=
"text-blue-900 text-3xl sm:text-[3rem]"
>
f
</
span
>
{
"
"
}
<
span
className
=
"text-[#FF8C00] text-4xl sm:text-[4rem]"
>
I
</
span
>
<
span
className
=
"text-blue-900 text-3xl sm:text-[3rem]"
>
ndia
</
span
>
</
div
>
<
div
className
=
"text-xl sm:text-2xl font-bold mt-8"
>
<
span
className
=
"text-black"
>
To bring 'utmost good satisfaction' to our clients by
</
span
>
<
br
/>
<
span
className
=
"text-black"
>
offering right products at competitive rates
</
span
>
</
div
>
<
div
className
=
"mt-6"
>
<
button
className
=
"flex items-center gap-2 px-3 py-2 text-black font-semibold bg-orange-300 rounded-full shadow-md hover:bg-orange-400 transition-all duration-300"
>
<
span
className
=
"text-lg border rounded-[50rem] w-12 h-12 flex items-center justify-center bg-black text-white"
>
➜
</
span
>
Get Started
</
button
>
<
div
className
=
"flex justify-center md:justify-end mt-6 md:-mt-[300px] "
>
<
div
className
=
" "
>
<
img
src
=
{
boy
}
alt
=
"Vendor"
className
=
"size-[350px] md:size-[550px] "
/>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
);
}
export
default
Navbar
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment