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
1e7a406f
Commit
1e7a406f
authored
1 year ago
by
Julien MARGAIL
Browse files
Options
Downloads
Patches
Plain Diff
up Carousel options (v0.9.14)
parent
28498e55
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
CHANGELOG.md
+6
-0
6 additions, 0 deletions
CHANGELOG.md
package.json
+1
-1
1 addition, 1 deletion
package.json
src/components/core/Carousel.tsx
+7
-5
7 additions, 5 deletions
src/components/core/Carousel.tsx
with
14 additions
and
6 deletions
CHANGELOG.md
+
6
−
0
View file @
1e7a406f
...
...
@@ -7,6 +7,12 @@ All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
https://keepachangelog.com/en/1.0.0/
)
,
and this project adheres to
[
Semantic Versioning
](
https://semver.org/spec/v2.0.0.html
)
.
## [0.9.14] - 2023-10-27
### Fix
-
Carousel use options.delay, options.animation
## [0.9.12] - 2023-10-27
### Changed
...
...
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
1e7a406f
{
"name"
:
"@onegeo-suite/gatsby-theme-onegeo"
,
"version"
:
"0.9.1
2
"
,
"version"
:
"0.9.1
4
"
,
"main"
:
"index.js"
,
"types"
:
"index.d.ts"
,
"author"
:
"NEOGEO"
,
...
...
This diff is collapsed.
Click to expand it.
src/components/core/Carousel.tsx
+
7
−
5
View file @
1e7a406f
...
...
@@ -30,22 +30,24 @@ const Carousel = (props: Props) => {
const
options
=
props
.
options
??
{}
const
oClass
=
options
.
class
|| {}
const
animationType
=
options
.
animation
||
animation
return
(
<
div
className
=
{
twMerge
(
"
overflow-hidden
"
,
oClass
.
body
)
}
>
<
Swiper
slidesPerView
=
{
isLogo
?
2
:
"
auto
"
}
spaceBetween
=
{
isLogo
?
10
:
0
}
autoplay
=
{
{
delay
:
delay
,
delay
:
options
.
delay
||
delay
,
disableOnInteraction
:
false
,
}
}
loop
=
{
true
}
speed
=
{
animation
==
"
slide
"
||
animation
==
"
coverflow
"
animation
Type
==
"
slide
"
||
animation
Type
==
"
coverflow
"
?
1500
:
3000
}
effect
=
{
animation
}
effect
=
{
animation
Type
}
breakpoints
=
{
{
640
:
{
slidesPerView
:
isLogo
?
3
:
"
auto
"
,
...
...
@@ -102,7 +104,7 @@ const Carousel = (props: Props) => {
target
=
"_blank"
className
=
{
twMerge
(
"
w-full
"
,
height
,
options
.
height
||
height
,
// Hack
// Sometimes on build mode GastbyImage is converted to simple 'img'
// need to pass extra CSS to manage image resize
...
...
@@ -116,7 +118,7 @@ const Carousel = (props: Props) => {
image
=
{
item
.
src
}
className
=
{
twMerge
(
"
w-full
"
,
height
,
options
.
height
||
height
,
// Hack
// Sometimes on build mode GastbyImage is converted to simple 'img'
// need to pass extra CSS to manage image resize
...
...
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