Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Gatsby Theme Onegeo
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
OneGeo Suite
Libs
Gatsby Theme Onegeo
Commits
493abb2f
Commit
493abb2f
authored
2 years ago
by
Tojo
Browse files
Options
Downloads
Patches
Plain Diff
add profil on header
parent
e35a9ce1
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
src/components/core/Header.tsx
+5
-1
5 additions, 1 deletion
src/components/core/Header.tsx
src/components/core/Profil.tsx
+37
-0
37 additions, 0 deletions
src/components/core/Profil.tsx
with
42 additions
and
1 deletion
src/components/core/Header.tsx
+
5
−
1
View file @
493abb2f
...
...
@@ -3,6 +3,7 @@ import Logo from "./Logo";
import
Menu
from
"
./Menu
"
;
import
logoSig
from
"
../../images/logo-egeo.png
"
;
import
MenuMobile
from
"
./menuMobile
"
;
import
Profil
from
"
./Profil
"
;
const
Header
=
()
=>
{
return
(
...
...
@@ -26,7 +27,9 @@ const Header = () => {
/>
</
svg
>
</
label
>
{
/* ---------------MENU MOBILE------------------ */
}
<
MenuMobile
/>
{
/* ---------------END MENU MOBILE------------------ */
}
</
div
>
{
/*----------------- LOGO --------------------------*/
}
<
div
className
=
"flex-shrink-0 flex items-center"
>
...
...
@@ -38,6 +41,7 @@ const Header = () => {
<
div
className
=
"navbar-center hidden lg:flex"
>
<
Menu
/>
</
div
>
{
/* ---------------END MENU------------------ */
}
<
div
className
=
"navbar-end"
>
<
div
className
=
"form-control hidden sm:block"
>
<
input
...
...
@@ -47,7 +51,7 @@ const Header = () => {
/>
</
div
>
{
/* ---------------PROFIL------------------ */
}
{
/*
<Profil />
*/
}
<
Profil
/>
{
/* ---------------END PROFIL------------------ */
}
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/components/core/Profil.tsx
0 → 100644
+
37
−
0
View file @
493abb2f
import
React
from
"
react
"
;
interface
Props
{
imgProfile
?:
string
}
const
Profil
=
(
props
:
Props
)
=>
{
const
{
imgProfile
=
"
https://placeimg.com/80/80/people
"
}
=
props
return
(
<
div
className
=
"dropdown dropdown-end"
>
<
label
tabIndex
=
{
0
}
className
=
"btn btn-ghost btn-circle avatar"
>
<
div
className
=
"w-10 rounded-full"
>
<
img
src
=
{
imgProfile
}
/>
</
div
>
</
label
>
<
ul
tabIndex
=
{
0
}
className
=
"mt-3 p-2 shadow menu menu-compact dropdown-content bg-base-100 rounded-box w-52"
>
<
li
>
<
a
className
=
"justify-between"
>
Profile
<
span
className
=
"badge"
>
Actualité
</
span
>
</
a
>
</
li
>
<
li
>
<
a
>
Paramètre
</
a
>
</
li
>
<
li
>
<
a
>
Déconnexion
</
a
>
</
li
>
</
ul
>
</
div
>
);
};
export
default
Profil
;
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