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
e305d7ae
Commit
e305d7ae
authored
1 year ago
by
Manoa Harinjo
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://git.neogeo.fr/onegeo-suite/libs/gatsby-theme-onegeo
into feat/text
parents
fee8a3a8
e85fcda6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/Section.tsx
+8
-2
8 additions, 2 deletions
src/components/Section.tsx
src/components/Text.tsx
+1
-1
1 addition, 1 deletion
src/components/Text.tsx
src/components/section/component.tsx
+6
-1
6 additions, 1 deletion
src/components/section/component.tsx
with
15 additions
and
4 deletions
src/components/Section.tsx
+
8
−
2
View file @
e305d7ae
...
...
@@ -128,7 +128,12 @@ const Section = (props: ISection) => {
>
{
section
.
title
&&
(
<
h2
className
=
{
twMerge
(
"
text-3xl font-extrabold
"
,
oClass
.
title
)
}
className
=
{
twMerge
(
// "text-2xl font-extrabold sm:text-5xl",
// breakpoint can 'break' overrides in project (smeag)
"
text-5xl font-extrabold
"
,
oClass
.
title
)
}
>
{
section
.
title
}
</
h2
>
...
...
@@ -136,7 +141,8 @@ const Section = (props: ISection) => {
{
section
.
subtitle
&&
(
<
h4
className
=
{
twMerge
(
"
mt-2 text-2xl font-bold
"
,
// "mt-2 text-xl font-bold sm:text-3xl",
"
mt-2 text-3xl font-bold
"
,
oClass
.
subtitle
)
}
>
...
...
This diff is collapsed.
Click to expand it.
src/components/Text.tsx
+
1
−
1
View file @
e305d7ae
...
...
@@ -28,7 +28,7 @@ const Text = (props: IText) => {
{
title
&&
(
<
h2
className
=
{
twMerge
(
"
font-extrabold sm:text-4xl
"
,
"
text-2xl
font-extrabold sm:text-4xl
"
,
oClass
.
title
)
}
>
...
...
This diff is collapsed.
Click to expand it.
src/components/section/component.tsx
+
6
−
1
View file @
e305d7ae
...
...
@@ -169,7 +169,12 @@ const Component = (props: IComponent) => {
let
img
=
images
?.
length
?
images
[
0
].
src
:
undefined
var
oClass
=
restProps
.
options
?
restProps
.
options
.
class
: ""
return
<
Image
image
=
{
img
}
className
=
{
oClass
}
/
>
var
objectFit
=
restProps
.
options
?.
objectFit
?
restProps
.
options
.
objectFit
:
""
return
(
<
Image
image
=
{
img
}
className
=
{
oClass
}
objectFit
=
{
objectFit
}
/>
)
case
"
mapgl
"
:
return
<
div
>
Carte Maplibre
</
div
>
case
"
geoportal
"
:
...
...
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