Skip to content

Commit

Permalink
🎨 Style: Add light and dark versions for the icon
Browse files Browse the repository at this point in the history
- Rename icon.png to icon-dark.png
- Add icon-light.png
  • Loading branch information
danielbakas committed Jul 5, 2024
1 parent ed0bac9 commit f3a2f36
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@
<h1 align='center'>Client | Semantyk</h1>
<h3 align='center'><i>Ideas Wonder</i></h3>
<p align='center'>
<img alt='Semantyk' src='https://www.semantyk.com/icon.png' width='250'/>
<picture>
<source srcset="https://www.semantyk.com/icon-dark.png" media="
(prefers-color-scheme: dark)" />
<source srcset="https://www.semantyk.com/icon-light.png" media="
(prefers-color-scheme: light)" />
<img src="https://www.semantyk.com/icon-light.png" alt="Semantyk"
width="250" />
</picture>
</p>

## License
Expand Down
File renamed without changes
Binary file added src/app/icon-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/backend/logic/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function getMetadata() {
href: "/",
icons: {
apple: "/apple-icon.png",
icon: "/icon.png",
icon: "/icon-dark.png",
shortcut: "/favicon.ico"
},
keywords: app.keywords,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import React from "react";
//* Local Imports
import Link from "next/link";
import Image from "next/image";
import icon from "@semantyk/app/icon.png";
import icon from "@semantyk/app/icon-dark.png";

//* Main
export default function IconButton(props) {
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/ui/components/molecules/NavBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { Nav, Navbar } from "react-bootstrap";
import Image from "next/image";
//* Local Imports
import useNavLinks from "@semantyk/frontend/hooks/useNavLinks";
import icon from "@semantyk/app/icon.png";
import icon from "@semantyk/app/icon-dark.png";

//* Main
export default function NavBar() {
Expand Down

0 comments on commit f3a2f36

Please sign in to comment.