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
13b60470
Commit
13b60470
authored
1 year ago
by
Manoa Harinjo
Browse files
Options
Downloads
Patches
Plain Diff
add logo in stats
parent
811265b9
Branches
feat/stats
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Stats.tsx
+17
-0
17 additions, 0 deletions
src/components/Stats.tsx
with
17 additions
and
0 deletions
src/components/Stats.tsx
+
17
−
0
View file @
13b60470
import
{
graphql
,
useStaticQuery
}
from
"
gatsby
"
import
React
from
"
react
"
import
{
twMerge
}
from
"
tailwind-merge
"
import
{
Logo
}
from
"
@onegeo-suite/gatsby-theme-onegeo
"
interface
Props
{
children
?:
React
.
ReactNode
...
...
@@ -23,6 +24,16 @@ const Stats = (props: Props) => {
value
description
sort
image {
imageFile {
childImageSharp {
gatsbyImageData
}
name
publicURL
}
id
}
}
}
}
...
...
@@ -83,6 +94,12 @@ const Stats = (props: Props) => {
)
:
(
<></>
)
}
{
stat
.
image
&&
(
<
Logo
image
=
{
stat
.
image
.
imageFile
}
className
=
"my-6"
/>
)
}
<
div
className
=
{
twMerge
(
"
stat-title text-base-100 text-2xl
"
,
...
...
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