Skip to content

Commit

Permalink
new css logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hatchibombotar committed Dec 16, 2024
1 parent cca43d8 commit 46304ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions public/assets/icon/css.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/components/SkillIcons.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { createSignal } from "solid-js";
import skills from "../data/skills";



export default function SkillIcons() {
return <div class="grid xs:grid-cols-2 sm:grid-cols-3">
{
Expand All @@ -25,7 +23,8 @@ export default function SkillIcons() {
<div
class="transition duration-[0.1s] ease-[cubic-bezier(1,1,0,0)]"
classList={{
"grayscale brightness-[0.2]": !lightsOn()
"brightness-[0.2]": !lightsOn() && skill.iconType != "image",
"grayscale": !lightsOn()
}}
>
{skill.iconType == "image" ? (
Expand Down
5 changes: 3 additions & 2 deletions src/data/skills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from "solid-icons/si";
const SolidIcon = "/assets/icon/solidIcon.svg";
const MCIcon = "/assets/icon/minecraft.svg";
const CSSLogo = "/assets/icon/css.svg";

export default [
{
Expand Down Expand Up @@ -45,8 +46,8 @@ export default [
},
{
name: "CSS",
icon: SiCss3,
colour: "#51A4EE",
iconType: "image",
icon: CSSLogo,
},
{
name: "Tailwind CSS",
Expand Down

0 comments on commit 46304ba

Please sign in to comment.