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
fec71550
Commit
fec71550
authored
2 years ago
by
Tojo
Browse files
Options
Downloads
Patches
Plain Diff
add menu mobile on doc core
parent
c4744733
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
index.d.ts
+3
-0
3 additions, 0 deletions
index.d.ts
index.js
+3
-0
3 additions, 0 deletions
index.js
src/pages-doc/doc/core/menu.tsx
+13
-3
13 additions, 3 deletions
src/pages-doc/doc/core/menu.tsx
with
19 additions
and
3 deletions
index.d.ts
+
3
−
0
View file @
fec71550
...
...
@@ -70,6 +70,9 @@ export function Search(props: SearchProps): JSX.Element;
interface
IMenu
{}
export
function
Menu
(
props
:
IMenu
):
JSX
.
Element
;
interface
IMenuMobile
{}
export
function
MenuMobile
(
props
:
IMenu
):
JSX
.
Element
;
interface
Ilogo
{
to
?:
string
;
className
?:
string
;
...
...
This diff is collapsed.
Click to expand it.
index.js
+
3
−
0
View file @
fec71550
...
...
@@ -21,3 +21,6 @@ export { default as Logo } from "./src/components/core/Logo";
// Menu components
export
{
default
as
Menu
}
from
"
./src/components/core/Menu
"
;
// Menu components
export
{
default
as
MenuMobile
}
from
"
./src/components/core/MenuMobile
"
;
This diff is collapsed.
Click to expand it.
src/pages-doc/doc/core/menu.tsx
+
13
−
3
View file @
fec71550
import
React
from
'
react
'
import
{
Content
}
from
"
@onegeo/gatsby-theme-onegeo
"
;
import
{
Menu
}
from
"
@onegeo/gatsby-theme-onegeo
"
;
import
{
Menu
,
MenuMobile
}
from
"
@onegeo/gatsby-theme-onegeo
"
;
import
{
Link
}
from
"
gatsby
"
;
const
menu
=
()
=>
{
...
...
@@ -45,8 +45,18 @@ const menu = () => {
<
h2
>
Example
</
h2
>
</
div
>
<
div
className
=
"flex gap-6 m-4"
>
<
Menu
/>
<
div
className
=
'mt-5'
>
<
h3
className
=
'underline underline-offset-1'
>
Menu classique
</
h3
>
<
div
className
=
"flex gap-6 m-4"
>
<
Menu
/>
</
div
>
</
div
>
<
div
>
<
h3
className
=
'underline underline-offset-1'
>
Menu mobile
</
h3
>
<
div
className
=
"flex gap-6 m-4"
>
<
MenuMobile
/>
</
div
>
</
div
>
</
Content
>
)
...
...
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