Skip to content

Commit

Permalink
fix rgb
Browse files Browse the repository at this point in the history
  • Loading branch information
gholi-dev committed Aug 12, 2024
1 parent 53f46a5 commit a02d5dc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 17 deletions.
38 changes: 25 additions & 13 deletions src/components/Common/icons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,26 +109,30 @@ const types = [
{ logo: nodeIcon, alt: "nodejs" },
{ logo: reactIcon, alt: "react" },
{ logo: staticIcon, alt: "HTML5" },
{ logo: staticIcon, alt: "static" },
{ logo: dockerIcon, alt: "docker" },
{ logo: djangoIcon, alt: "django" },
{ logo: laravelIcon, alt: "laravel" },
{ logo: netcoreIcon, alt: "netcore" },
{ logo: netcoreIcon, alt: "dotnet" },
{ logo: angularIcon, alt: "angularjs" },
{ logo: angularIcon, alt: "angular" },
{ logo: jsonIcon, alt: "json" },
// One-click-apps
{ logo: n8nIcon, alt: "n8n" },
{ logo: odooIcon, alt: "odoo" },
{ logo: ghostIcon, alt: "ghost" },
{ logo: giteaIcon, alt: "gitea" },
{ logo: vscodeIcon, alt: "vscode" },
// { logo: pusherIcon, alt: "pusher" },
// { logo: pusherIcon, alt: "pusher" },
{ logo: kibanaIcon, alt: "kibana" },
{ logo: chromeIcon, alt: "chrome" },
{ logo: grafanaIcon, alt: "grafana" },
{ logo: imgproxyIcon, alt: "imgproxy" },
{ logo: metabaseIcon, alt: "metabase" },
{ logo: nextcloudIcon, alt: "nextcloud" },
{ logo: wordpressIcon, alt: "wordpress" },
{ logo: wordpressIcon, alt: "wordpressplus" },
{ logo: pocketbaseIcon, alt: "pocketbase" },
{ logo: prestashopIcon, alt: "prestashop" },
{ logo: mattermostIcon, alt: "mattermost" },
Expand All @@ -137,9 +141,12 @@ const types = [
{ logo: matomoIcon, alt: "matomo" },
{ logo: unleashIcon, alt: "unleash" },
{ logo: uptimekumaIcon, alt: "uptimekuma" },
{ logo: uptimekumaIcon, alt: "uptime-kuma" },
// { logo: ackeeIcon, alt: "ackee" },
{ logo: appsmithIcon, alt: "appsmith" },
{ logo: varnishIcon, alt: "varnish" },
{ logo: apacheanswerIcon, alt: "apacheanswer" },
{ logo: apacheanswerIcon, alt: "apache-answer" },
{ logo: nocodbIcon, alt: "nocodb" },
{ logo: chromaIcon, alt: "chroma" },
{ logo: meilisearchIcon, alt: "meilisearch" },
Expand All @@ -152,10 +159,11 @@ const types = [
{ logo: yiiIcon, alt: "yii" },
{ logo: nestIcon, alt: "nest" },
{ logo: nextIcon, alt: "next" },
{ logo: nextIcon, alt: "nextjs" },
{ logo: hugoIcon, alt: "hugo" },
{ logo: nuxtIcon, alt: "nuxt" },
{ logo: nginxIcon, alt: "nginx" },
// { logo: lumenIcon, alt: "lumen" },
// { logo: lumenIcon, alt: "lumen" },
{ logo: remixIcon, alt: "remix" },
{ logo: pythonIcon, alt: "python" },
{ logo: prismaIcon, alt: "prisma" },
Expand Down Expand Up @@ -183,7 +191,9 @@ const types = [
{ logo: mariadbIcon, alt: "mariadb" },
{ logo: mongodbIcon, alt: "mongodb" },
{ logo: elasticIcon, alt: "elastic" },
{ logo: elasticIcon, alt: "elastic-search" },
{ logo: postgresIcon, alt: "postgres" },
{ logo: postgresIcon, alt: "postgresql" },
{ logo: rabbitmqIcon, alt: "rabbitmq" },
{ logo: arangodbIcon, alt: "arangodb" },
{ logo: sqliteIcon, alt: "sqlite" },
Expand All @@ -197,15 +207,17 @@ const types = [
export default function PlatformIcon({ platform, style = {} }) {
const type = types.find(type => type.alt === platform);

return (
<img
className="page-icon"
src={type.logo.src}
alt={type.alt}
style={{
...style,
pointerEvents: "none"
}}
/>
);
if(type?.logo?.src ) {
return (
<img
className="page-icon"
src={type.logo.src}
alt={type.alt}
style={{
...style,
pointerEvents: "none"
}}
/>
);
}
}
8 changes: 6 additions & 2 deletions src/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import UAParser from "ua-parser-js";
import Link from "next/link";

const client = new MeiliSearch({
host: "https://search.liara.ir",
apiKey: "99d6377d6dc5499ecc31451349b8957ebb2e29e67a5d92eb445737e25c1e7bb2"
host: "https://the-new-meilisearch-ezinhi8-wa.liara.run",
apiKey: "53c93d9ce3308e48a7ad701d4b402d3190324a09e1607f14baae9bd4f805bb11"
});

const Header = ({ setShowSidebar }) => {
Expand Down Expand Up @@ -227,6 +227,10 @@ const Header = ({ setShowSidebar }) => {
</div>}
<p className="">
{item.title}
{item.type === "video" &&
<Fragment>
{" "}- <span className="bg-[#2563eb22] px-2 text-[12px] py-1 rounded-lg">همراه ویدیو</span>
</Fragment>}
</p>
</div>
<img
Expand Down
4 changes: 2 additions & 2 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
/* --background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0; */
}
}

Expand Down

0 comments on commit a02d5dc

Please sign in to comment.