Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dashboard PV278
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Martin Polaško
Dashboard PV278
Commits
fc275da1
There was an error fetching the commit references. Please try again later.
Commit
fc275da1
authored
3 months ago
by
polasudo
Browse files
Options
Downloads
Patches
Plain Diff
add landing page
parent
d8a7eaff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/pozadie.png
+0
-0
0 additions, 0 deletions
public/pozadie.png
src/LandingPage.tsx
+42
-15
42 additions, 15 deletions
src/LandingPage.tsx
with
42 additions
and
15 deletions
public/pozadie.png
0 → 100644
+
0
−
0
View file @
fc275da1
5.05 MiB
This diff is collapsed.
Click to expand it.
src/LandingPage.tsx
+
42
−
15
View file @
fc275da1
import
{
useAuth0
}
from
'
@auth0/auth0-react
'
;
import
{
Box
,
Button
,
Typography
}
from
'
@mui/material
'
;
import
React
,
{
useEffect
}
from
'
react
'
;
import
{
useNavigate
}
from
'
react-router-dom
'
;
const
LandingPage
=
()
=>
{
const
navigate
=
useNavigate
();
const
{
user
}
=
useAuth0
();
useEffect
(()
=>
{
if
(
user
)
{
navigate
(
'
/home-page
'
);
}
},
[
user
]);
},
[
user
,
navigate
]);
return
user
?
null
:
(
<
Box
sx
=
{
{
width
:
'
100%
'
,
maxWidth
:
500
}
}
>
<
Typography
variant
=
"h2"
gutterBottom
>
Landing page
</
Typography
>
<
Button
variant
=
"outlined"
onClick
=
{
()
=>
{
navigate
(
'
/home-page
'
);
}
}
>
To home page
</
Button
>
</
Box
>
<
div
className
=
"h-screen relative text-white flex flex-col items-center justify-center"
style
=
{
{
backgroundImage
:
"
url('/pozadie.png')
"
,
backgroundSize
:
'
cover
'
,
backgroundPosition
:
'
center
'
,
}
}
>
{
/* Overlay */
}
<
div
className
=
"absolute inset-0 bg-black bg-opacity-70 z-0"
></
div
>
{
/* Navigation Bar */
}
<
div
className
=
"absolute top-0 left-0 w-full flex justify-between items-center px-6 py-4 z-10"
>
<
div
className
=
"text-lg font-bold"
>
People+
</
div
>
<
div
className
=
"space-x-6"
>
<
a
href
=
"#about"
className
=
"text-sm hover:underline"
>
About us
</
a
>
<
a
href
=
"#contact"
className
=
"text-sm hover:underline"
>
Contact
</
a
>
</
div
>
</
div
>
{
/* Main Content */
}
<
div
className
=
"text-center z-10"
>
<
h1
className
=
"text-3xl md:text-4xl font-bold mb-6"
>
Welcome to new marketing platform.
</
h1
>
<
div
className
=
"space-x-4"
>
<
button
onClick
=
{
()
=>
navigate
(
'
/home-page
'
)
}
className
=
"px-6 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg shadow-md transition"
>
Login
</
button
>
<
button
className
=
"px-6 py-2 bg-transparent border border-blue-600 hover:bg-blue-600 hover:text-white text-blue-600 rounded-lg shadow-md transition"
>
Sign up
</
button
>
</
div
>
</
div
>
</
div
>
);
};
...
...
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