feat: some more koikatsu (#56)

### Explanation

_No response_

### Issue

_No response_

### Attestations

- [ ] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/)
- [ ] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/).
- [ ] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/).

### Dependencies

- [ ] I have pinned the dependencies to a specific patch version.

### Style

- [ ] I have run the linter and resolved any errors.
- [ ] My pull request uses an appropriate title, matching the conventional commit standards.
- [ ] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request.

### Tests

- [ ] My contribution adds new code, and I have added tests to cover it.
- [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes.
- [ ] All new and existing tests pass locally with my changes.
- [ ] Code coverage remains at or above the configured threshold.

### Documentation

_No response_

### Versioning

_No response_

Reviewed-on: https://codeberg.org/nhcarrigan/portfolio/pulls/56
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
Naomi Carrigan 2024-11-29 19:59:29 +00:00 committed by Naomi the Technomancer
parent 12c81a7d40
commit cfbd21d843
2 changed files with 10 additions and 3 deletions

View File

@ -51,9 +51,9 @@ const adjustColorLuminosity
const generateColorPair = (): { background: string; color: string } => { const generateColorPair = (): { background: string; color: string } => {
const backgroundColor = generateRandomColor(); const backgroundColor = generateRandomColor();
const backgroundLuminance = getLuminance(backgroundColor); const backgroundLuminance = getLuminance(backgroundColor);
const textColor = backgroundLuminance > 0.5 ? const textColor = backgroundLuminance > 0.5
adjustColorLuminosity(backgroundColor, 0) : ? adjustColorLuminosity(backgroundColor, 0)
adjustColorLuminosity(backgroundColor, 5); : adjustColorLuminosity(backgroundColor, 5);
return { return {
background: backgroundColor, background: backgroundColor,

View File

@ -30,4 +30,11 @@ export const Koikatsu = [
"CharaStudio-2024-11-18-10-27-48-Render.png", "CharaStudio-2024-11-18-10-27-48-Render.png",
"CharaStudio-2024-11-18-10-29-25-Render.png", "CharaStudio-2024-11-18-10-29-25-Render.png",
"CharaStudio-2024-11-18-10-30-05-Render.png", "CharaStudio-2024-11-18-10-30-05-Render.png",
"CharaStudio-2024-11-22-19-12-18-Render.png",
"CharaStudio-2024-11-22-19-13-00-Render.png",
"CharaStudio-2024-11-22-19-13-44-Render.png",
"CharaStudio-2024-11-22-19-15-24-Render.png",
"CharaStudio-2024-11-22-19-16-16-Render.png",
"CharaStudio-2024-11-22-19-16-51-Render.png",
"CharaStudio-2024-11-28-11-11-56-Render.png",
]; ];