diff --git a/README.md b/README.md index 87a2f48..5a4e2d2 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,20 @@ ## What is it? -A simple but nice header image generator for your Github profile Readme. [Website Link](https://leviarista.github.io/github-profile-header-generator/). +A simple but nice header image generator for your __Github profile Readme__. +You can use it for your __repo banners__ too! + +[Create my banner!](https://leviarista.github.io/github-profile-header-generator/) ## How to use it? -1. Create a nice github header image. + +1. Create a nice github header image. 2. Create your GitHub profile README following [this guide](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme). 3. Upload your header to your profile repo. -4. Add this line to your README: - ```` Markdown - ![Header](./[Your header image]) - ```` +4. Add this line to your README: + ```Markdown + ![Header](./[Your header image]) + ``` ## Examples @@ -34,23 +38,27 @@ A simple but nice header image generator for your Github profile Readme. [Websit - Set background pattern image, its color, size and opacity. - Add decorations. - Upload your own decoration, octocat or profile pic. -- Toogle Github dark and light mode. +- Toogle between Github dark and light mode. - Download image as png. -- Randomize between predefined themes. +- Choose from predefined presets or get a random one. ## Tech used - [Vite](https://vitejs.dev/) -- [html2canvas](https://html2canvas.hertzen.com/) +- [snapdom](https://zumerlab.github.io/snapdom/) ## Get started - - `npm run dev`- starts dev server - - `npm run build` - builds for production - - `npm run preview` - locally previews production build +- `npm run dev`- starts dev server +- `npm run build` - builds for production +- `npm run preview` - locally previews production build ## Get started with Docker ```bash docker-compose up -d --build --force-recreate ``` + +## Contributing + +Check out our [Contributing guide](https://github.com/leviarista/github-profile-header-generator/blob/main/.github/CONTRIBUTING.md) diff --git a/index.html b/index.html index d101eba..48ba498 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@
@@ -125,10 +125,10 @@ 40
- - Subitle font size: + - 20 + 20
diff --git a/partials/toolbox/presets.html b/partials/toolbox/presets.html index 3346df3..82f29e6 100644 --- a/partials/toolbox/presets.html +++ b/partials/toolbox/presets.html @@ -1,5 +1,6 @@

Choose a preset theme or customize your own with the options above.

+

You can use it for your repo banners too!


diff --git a/partials/toolbox/result.html b/partials/toolbox/result.html index b92058b..79b3dcc 100644 --- a/partials/toolbox/result.html +++ b/partials/toolbox/result.html @@ -10,12 +10,16 @@
- GH Dark + Dark
Random
+
+ + Reset +
Download
-
\ No newline at end of file diff --git a/public/images/icons/reset-black.svg b/public/images/icons/reset-black.svg new file mode 100644 index 0000000..dd48ca9 --- /dev/null +++ b/public/images/icons/reset-black.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/images/icons/reset.svg b/public/images/icons/reset.svg new file mode 100644 index 0000000..69bf3a3 --- /dev/null +++ b/public/images/icons/reset.svg @@ -0,0 +1,5 @@ + + + diff --git a/styles/how-to.scss b/styles/how-to.scss index 4c03634..467072b 100644 --- a/styles/how-to.scss +++ b/styles/how-to.scss @@ -37,7 +37,7 @@ @media (max-width: 768px) { .how-to-section { - margin-top: 50px; - margin-bottom: 50px; + margin-top: 25px; + margin-bottom: 25px; } } diff --git a/styles/toolbox-main.scss b/styles/toolbox-main.scss index 71ff1fe..683772d 100644 --- a/styles/toolbox-main.scss +++ b/styles/toolbox-main.scss @@ -7,12 +7,14 @@ user-select: none; position: relative; z-index: 20; + border-bottom: solid 1px #373737; &.light-mode { background: var(--github-light-mode-color); .dark-mode-button, - .randomize-button { + .randomize-button, + .reset-button { color: black !important; &:hover { @@ -41,7 +43,7 @@ align-items: flex-start; justify-content: center; flex-direction: column; - background-color: #446BAF; + background-color: #62518d; color: white; border-radius: 7px; margin: 0 auto; @@ -79,7 +81,8 @@ .dark-mode-button, .randomize-button, - .download-button { + .download-button, + .reset-button { background-color: transparent; display: flex; gap: 7px; @@ -272,7 +275,7 @@ } } -@media (max-width: 360px) { +@media (max-width: 410px) { .toolbox-container { .result-box { .options-container { @@ -285,7 +288,6 @@ } } } - } } \ No newline at end of file