Skip to content

Commit

Permalink
feat: minor visual updates
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrBulanek authored Dec 16, 2024
1 parent 088a9c1 commit 13ca7ef
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ibmPlexSans = localFont({
});

export const metadata: Metadata = {
title: 'BeeAI Artifact',
title: 'BeeAI App',
icons: { icon: '//www.ibm.com/favicon.ico' },
};

Expand Down
1 change: 1 addition & 0 deletions src/modules/artifacts/BeeAI.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/modules/artifacts/BeeIcon.svg

This file was deleted.

18 changes: 11 additions & 7 deletions src/modules/artifacts/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Container } from '@/components/ui/Container';
import BeeIcon from './BeeIcon.svg';
import BeeAI from './BeeAI.svg';

interface Props {
showReportButton?: boolean;
Expand All @@ -10,19 +10,23 @@ export function Footer({ showReportButton }: Props) {
<footer className="sticky bottom-0 left-0 border-t border-t-subtle bg-background py-4">
<Container>
<div className="grid gap-x-4 gap-y-1 text-12 text-secondary md:flex md:items-center md:justify-between">
<p>
<span>Made with</span>{' '}
<span className="inline-flex items-center gap-x-0.5 align-top text-dark">
<BeeIcon className="h-3 w-3" />
<strong>BeeAI</strong>
<p className="flex items-baseline gap-x-1.5">
<span>Made with</span>
<span className="inline-flex shrink-0 text-dark">
<BeeAI />
</span>
</p>

{showReportButton && (
<p className="md:text-right">
Apps are user-generated and may contain unverified or potentially
unsafe content.{' '}
<a href="mailto:bee1@ibm.com" className="underline hover:no-underline">Report</a>
<a
href="mailto:bee1@ibm.com"
className="underline hover:no-underline"
>
Report
</a>
</p>
)}
</div>
Expand Down
11 changes: 2 additions & 9 deletions src/modules/artifacts/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { ArtifactShared } from '@/app/api/artifacts/types';
import { Button } from '@/components/ui/Button';
import { Container } from '@/components/ui/Container';
import { Tooltip } from '@/components/ui/Tooltip';
import { DirectionFork, Information } from '@carbon/icons-react';
import { ArtifactIcon } from './ArtifactIcon';
import { BEE_SITE_URL } from '@/utils/constants';
import { DirectionFork } from '@carbon/icons-react';
import { ArtifactIcon } from './ArtifactIcon';

interface Props {
artifact: ArtifactShared;
Expand All @@ -24,12 +23,6 @@ export function Header({ artifact, token }: Props) {
<h1 className="text-base font-semibold text-coolGray-100 dark:text-white">
{artifact.name}
</h1>

{artifact.description && (
<Tooltip content={artifact.description}>
<Information />
</Tooltip>
)}
</div>

<div className="justify-self-center whitespace-nowrap md:col-start-3 md:justify-self-end">
Expand Down
6 changes: 5 additions & 1 deletion src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
--text-light: theme('colors.white');
--text-secondary: theme('colors.gray.70');

--text-link: theme('colors.blue.60');

--bg-background: theme('colors.white');
--bg-layer: theme('colors.coolGray.10');
--bg-layer-inverse: theme('colors.coolGray.90');
Expand All @@ -21,6 +23,8 @@
--text-light: theme('colors.black');
--text-secondary: theme('colors.gray.30');

--text-link: theme('colors.white');

--bg-background: theme('colors.coolGray.90');
--bg-layer: theme('colors.coolGray.80');
--bg-layer-inverse: theme('colors.white');
Expand All @@ -42,7 +46,7 @@
@apply text-h2;
}
a {
@apply focus-base text-blue-60;
@apply focus-base text-link;
}
button {
@apply focus-base;
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default {
dark: 'var(--text-dark)',
light: 'var(--text-light)',
secondary: 'var(--text-secondary)',
link: 'var(--text-link)',
},
backgroundColor: {
background: 'var(--bg-background)',
Expand Down

0 comments on commit 13ca7ef

Please sign in to comment.