Skip to content

Commit

Permalink
✨ replace assets
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <pgaikwad@redhat.com>
  • Loading branch information
pranavgaikwad committed Jan 4, 2024
1 parent 911d150 commit b3d9ef9
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 165 deletions.
10 changes: 0 additions & 10 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
Expand Down
2 changes: 1 addition & 1 deletion public/theme.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
window["THEME"] = "konveyor";
window["THEME"] = "default";
Binary file removed public/windup.png
Binary file not shown.
33 changes: 0 additions & 33 deletions src/images/avatar.svg

This file was deleted.

Binary file removed src/images/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion src/images/konveyor-favicon.svg

This file was deleted.

Binary file removed src/images/konveyor-logo.png
Binary file not shown.
29 changes: 17 additions & 12 deletions src/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
33 changes: 0 additions & 33 deletions src/images/navbar.svg

This file was deleted.

62 changes: 2 additions & 60 deletions src/layout/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@ import React from "react";

import {
AboutModal,
Flex,
FlexItem,
Grid,
GridItem,
List,
ListItem,
TextContent,
} from "@patternfly/react-core";
import GithubIcon from "@patternfly/react-icons/dist/esm/icons/github-icon";
import GlobeIcon from "@patternfly/react-icons/dist/esm/icons/globe-icon";
import InfoAltIcon from "@patternfly/react-icons/dist/esm/icons/info-alt-icon";

import { Theme } from "./theme-constants";

Expand All @@ -33,7 +28,6 @@ export const AboutApp: React.FC<IButtonAboutAppProps> = ({
onClose={onClose}
brandImageAlt="Brand Image"
brandImageSrc={Theme.logoSrc}
productName={Theme.name}
className="about-app__component"
>
<TextContent>
Expand Down Expand Up @@ -67,69 +61,17 @@ export const AboutApp: React.FC<IButtonAboutAppProps> = ({
Website
</a>
</ListItem>
{/* <ListItem>
<ListItem>
<a
href={Theme.documentationURL}
target="_blank"
rel="noopener noreferrer"
>
Documentation
</a>
</ListItem> */}
</ListItem>
</List>
</TextContent>
<div>
<Flex>
<FlexItem>
<a
href={Theme.sourceURL}
rel="noopener noreferrer"
target="_blank"
>
<i>
<GithubIcon />
</i>{" "}
Source
</a>
</FlexItem>
<FlexItem>
<a
href={Theme.discussionForumURL}
rel="noopener noreferrer"
target="_blank"
>
<i>
<GlobeIcon />
</i>{" "}
Discussion forum
</a>
</FlexItem>
{/* <FlexItem>
<a
href={Theme.mailingListURL}
rel="noopener noreferrer"
target="_blank"
>
<i>
<EnvelopeIcon />
</i>{" "}
Mailing list
</a>
</FlexItem> */}
<FlexItem>
<a
href={Theme.issueTrackingURL}
rel="noopener noreferrer"
target="_blank"
>
<i>
<InfoAltIcon />
</i>{" "}
Issue tracking
</a>
</FlexItem>
</Flex>
</div>
</AboutModal>
);
};
23 changes: 8 additions & 15 deletions src/layout/theme-constants.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import konveyorLogo from "@app/images/konveyor-logo.png";
import konveyorNavbarLogo from "@app/images/konveyor-navbar-logo.svg";
import logo from "@app/images/logo.svg";
import navbarLogo from "@app/images/navbar-logo.svg";

type ThemeType = "konveyor";
const defaultTheme: ThemeType = "konveyor";
type ThemeType = "default";
const defaultTheme: ThemeType = "default";

type ThemeListType = {
[key in ThemeType]: {
Expand All @@ -12,26 +12,19 @@ type ThemeListType = {
faviconSrc?: string;
websiteURL: string;
documentationURL: string;
sourceURL: string;
discussionForumURL: string;
mailingListURL: string;
issueTrackingURL: string;
};
};

const themeList: ThemeListType = {
"konveyor": {
"default": {
name: "Konveyor",
logoSrc: konveyorLogo,
logoNavbarSrc: konveyorNavbarLogo,
logoSrc: logo,
logoNavbarSrc: navbarLogo,
websiteURL: "https://konveyor.io/",
documentationURL: "https://konveyor.io/community",
sourceURL: "https://github.com/konveyor/static-report",
discussionForumURL: "https://kubernetes.slack.com/archives/CR85S82A2",
mailingListURL: "",
issueTrackingURL: "https://github.com/konveyor/community",
}
};


export const Theme =
themeList[((window as any)["THEME"] as ThemeType) || defaultTheme];

0 comments on commit b3d9ef9

Please sign in to comment.