Skip to content

Commit 6d26fc4

Browse files
committed
style: icons
1 parent 6e658f3 commit 6d26fc4

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

src/components/CommandPalette.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import LiveClock from './LiveClock'; // Import LiveClock
1010
import GenerativeArt from './GenerativeArt'; // Import GenerativeArt
1111
import TextTransformer from './TextTransformer'; // Import TextTransformer
1212
import Stopwatch from './Stopwatch'; // Import Stopwatch
13-
import { filterItems } from '../utils/search'; // Import the search utility
13+
import { filterItems } from '../utils/search';
14+
import {TerminalWindowIcon} from "@phosphor-icons/react"; // Import the search utility
1415

1516
const CommandPalette = ({ isOpen, setIsOpen, openGenericModal, toggleDigitalRain }) => {
1617
const [searchTerm, setSearchTerm] = useState('');
@@ -262,16 +263,17 @@ const CommandPalette = ({ isOpen, setIsOpen, openGenericModal, toggleDigitalRain
262263
className="bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-gray-100 rounded-lg shadow-2xl w-full max-w-xl mx-4"
263264
onClick={e => e.stopPropagation()}
264265
>
265-
<div className="p-3">
266-
<input
267-
ref={inputRef}
268-
type="text"
269-
placeholder={isLoading ? "Loading data..." : "Search or type a command..."}
270-
className="w-full bg-transparent text-lg placeholder-gray-500 focus:outline-none"
271-
value={searchTerm}
272-
onChange={e => setSearchTerm(e.target.value)}
273-
disabled={isLoading}
274-
/>
266+
<div className="p-3 flex items-center justify-center">
267+
<TerminalWindowIcon size={36} weight="duotone" className="mr-2 text-gray-200 "/>
268+
<input
269+
ref={inputRef}
270+
type="text"
271+
placeholder={isLoading ? "Loading data..." : "Search or type a command..."}
272+
className="w-full bg-transparent text-lg placeholder-gray-500 focus:outline-none"
273+
value={searchTerm}
274+
onChange={e => setSearchTerm(e.target.value)}
275+
disabled={isLoading}
276+
/>
275277
</div>
276278
<div ref={resultsRef} className="border-t border-gray-200 dark:border-gray-700 p-2 max-h-[50vh] overflow-y-auto">
277279
{filteredItems.length > 0 ? (

src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ code {
136136
}
137137

138138
.single-app-color {
139-
color: #e88211 !important; /* Placeholder color for 'single-app' */
139+
color: #1167e8 !important; /* Placeholder color for 'single-app' */
140140
/*color: #A07B90 !important; !* Placeholder color for 'single-app' *!*/
141141
}
142142

src/pages/AppPage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import { Link } from 'react-router-dom';
33
import {
4+
AxeIcon,
45
ArrowLeftIcon,
56
CaretDown,
67
CaretRight,
@@ -113,6 +114,7 @@ function AppPage() {
113114
<ArrowLeftIcon size={24} /> Back to Home
114115
</Link>
115116
<h1 className="text-4xl font-bold tracking-tight sm:text-6xl mb-4 flex items-center">
117+
<AxeIcon size={48} weight="fill" className="mr-4 mt-2 text-gray-100 "/>
116118
<span className="codex-color">fc</span>
117119
<span className="separator-color">::</span>
118120
<span className="apps-color">apps</span>

src/pages/CommandsPage.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Link } from 'react-router-dom';
33
import {
4-
ArrowLeftIcon
4+
ArrowLeftIcon, TerminalWindowIcon
55
} from '@phosphor-icons/react';
66

77
import useSeo from '../hooks/useSeo';
@@ -41,8 +41,9 @@ function CommandsPage() {
4141
<ArrowLeftIcon size={24} /> Back to Home
4242
</Link>
4343
<div className="mx-auto max-w-2xl text-center">
44-
<h1 className="text-4xl font-semibold tracking-tight text-white sm:text-6xl">
45-
<span className="text-orange-300">Command</span> Palette
44+
<h1 className="text-4xl font-semibold tracking-tight text-white sm:text-6xl flex items-center justify-center">
45+
<TerminalWindowIcon size={48} weight="fill" className="mr-4 mt-1 text-gray-100 "/>
46+
<span className="text-orange-300">Command</span>&nbsp;Palette
4647
</h1>
4748
<p className="mt-6 text-lg leading-8 text-gray-300">
4849
See all available commands in Command Palette.

src/pages/LogsPage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {useState, useEffect} from 'react';
22
import {Link} from 'react-router-dom';
3-
import {ArrowLeftIcon, CaretDown, CaretUp, X} from '@phosphor-icons/react';
3+
import {ArrowLeftIcon, LogIcon, CaretDown, CaretUp, X} from '@phosphor-icons/react';
44
import LogCard from '../components/LogCard';
55
import ColorLegends, {categoryStyles} from '../components/ColorLegends';
66
import useSeo from '../hooks/useSeo';
@@ -123,6 +123,7 @@ const LogsPage = () => {
123123
<ArrowLeftIcon size={24}/> Back to Home
124124
</Link>
125125
<h1 className="text-4xl font-bold tracking-tight sm:text-6xl mb-4 flex items-center">
126+
<LogIcon size={48} weight="fill" className="mr-4 mt-2 text-gray-100 "/>
126127
<span className="codex-color">fc</span>
127128
<span className="separator-color">::</span>
128129
<span className="logs-color">logs</span>

0 commit comments

Comments
 (0)