Skip to content

Commit de6ec7a

Browse files
authored
Replace static star history chart with responsive version
Updated star history chart to use responsive picture element.
1 parent 63af2eb commit de6ec7a

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,21 @@ For Nuxt users, check out [vue3-carousel-nuxt](https://github.com/gaetansenn/vue
8585

8686
## 🌟 Star History
8787

88-
[![Star History Chart](https://api.star-history.com/svg?repos=ismail9k/vue3-carousel&type=Date)](https://www.star-history.com/#ismail9k/vue3-carousel&Date)
89-
88+
<picture>
89+
<source
90+
media="(prefers-color-scheme: dark)"
91+
srcset="
92+
https://api.star-history.com/svg?repos=ismail9k/vue3-carousel&type=Date&theme=dark
93+
"
94+
/>
95+
<source
96+
media="(prefers-color-scheme: light)"
97+
srcset="
98+
https://api.star-history.com/svg?repos=ismail9k/vue3-carousel&type=Date
99+
"
100+
/>
101+
<img
102+
alt="Star History Chart"
103+
src="https://api.star-history.com/svg?repos=ismail9k/vue3-carousel&type=Date"
104+
/>
105+
</picture>

0 commit comments

Comments
 (0)