Skip to content

Commit

Permalink
wip: webp
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaBosak233 committed Nov 16, 2024
1 parent 27f3bc0 commit 8c94d43
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image" href="/api/configs/icon" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CdsCTF</title>
</head>
Expand Down
Binary file removed public/dm3.png
Binary file not shown.
Binary file added public/icon.webp
Binary file not shown.
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

9 changes: 4 additions & 5 deletions src/components/modals/ChallengeModal/ChallengeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ import { Challenge, ChallengeStatus } from "@/models/challenge";
import { useCategoryStore } from "@/stores/category";
import styles from "./ChallengeModal.module.scss";
import chroma from "chroma-js";
import { CSSProperties, ReactNode, useEffect, useState } from "react";
import React, { CSSProperties, useEffect, useState } from "react";
import { TextInput } from "../../core/TextInput/TextInput";
import { Button } from "../../core/Button/Button";
import Plain2Bold from "~icons/solar/plain-2-bold";
import Book2Bold from "~icons/solar/book-2-bold";
import SledgehammerBold from "~icons/solar/sledgehammer-bold";
import Server2Bold from "~icons/solar/server-2-bold";
import FolderWithFilesBold from "~icons/solar/folder-with-files-bold";
import FlagBold from "~icons/solar/flag-bold";
import { Icon } from "@/components/core/Icon";
import { Tooltip } from "@/components/core";
Expand Down Expand Up @@ -88,8 +87,8 @@ export function ChallengeModal(props: ChallengeModalProps) {
</div>
<div className={styles["tabs"]}>
{tabs?.map((tab, index) => (
<>
<Tooltip content={tab.name} key={tab.id}>
<React.Fragment key={tab.id}>
<Tooltip content={tab.name}>
<button
className={styles["tab"]}
onClick={() => setActiveTab(tab.id)}
Expand All @@ -107,7 +106,7 @@ export function ChallengeModal(props: ChallengeModalProps) {
/
</span>
)}
</>
</React.Fragment>
))}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function Navbar() {
<div className={styles["info"]}>
<div className={styles["logo"]}>
<img
src="dm3.png"
src="/api/configs/icon"
alt="icon"
draggable={false}
/>
Expand Down

0 comments on commit 8c94d43

Please sign in to comment.