lengthylyova / gh-contrib-graph

GitHub Contribution Graph Element for your WebSite
Apache License 2.0
11 stars 1 forks source link

Configurations and documentation #14

Closed lamb0tiana closed 1 week ago

lamb0tiana commented 4 months ago

Hi! Thank you for your great work. It would be even better if there were options for customization, such as setting up a date filter and applying custom styles.

lengthylyova commented 3 months ago

Hi @lamb0tiana!

How do you imagine this? As some html attributes or complete buttons for the client?

lamb0tiana commented 3 months ago

@lengthylyova , I thought initializing with some configurations like this:

gh({...some_config})

would allow customization of the theme (dark/light), for example. Otherwise, you would need to modify gh.css in the assets.

lengthylyova commented 3 months ago

@lengthylyova , I thought initializing with some configurations like this:

gh({...some_config})

would allow customization of the theme (dark/light), for example. Otherwise, you would need to modify gh.css in the assets.

What do you think about realization using HTML attributes?


html

<!-- for example theme attribute with "light" or "dark" options -->
<div id="gh" data-login="YOUR_GITHUB_LOGIN" theme="light"></div>

css

#gh[theme="light"] {
    something: value;
}
lengthylyova commented 1 week ago
408 Request Timeout