Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions report-front-end/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
REACT_APP_BACKEND_URL=
REACT_APP_TITLE=
REACT_APP_LOGO=
REACT_APP_RIGHT_LOGO=
REACT_APP_SQL_DISPLAY=

# REACT_APP_BACKEND_URL=http://xxxxx/
# REACT_APP_TITLE=Guidance for Generative BI on Amazon Web Services
# REACT_APP_LOGO=/Amazoncom-yellow-arrow.png
# REACT_APP_RIGHT_LOGO=/Amazoncom-yellow-arrow.png
# REACT_APP_SQL_DISPLAY=yes
Binary file added report-front-end/public/amazon-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion report-front-end/src/components/top-navigation/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import React from "react";
import { TopNavigation } from "@cloudscape-design/components";
import "./style.scss"
import { APP_LOGO, APP_TITLE } from "../../tools/const";
import { APP_LOGO, APP_RIGHT_LOGO, APP_TITLE } from "../../tools/const";

const CustomTopNavigation = () => {

return (
<div className="top-nav" id="awsui-top-navigation">
{APP_RIGHT_LOGO && (
<img className="logo" src={APP_RIGHT_LOGO} alt="logo"/>
)
}
<TopNavigation
identity={{
href: "#",
Expand Down
9 changes: 9 additions & 0 deletions report-front-end/src/components/top-navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@
left: 0;
right: 0;
zIndex: 1002;
}

.logo {
height: 40px;
right: 0;
position:fixed;
text-align: center;
margin-top: 8px;
margin-right: 10px;
}
2 changes: 2 additions & 0 deletions report-front-end/src/tools/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export const APP_TITLE = process.env.REACT_APP_TITLE;

export const APP_LOGO = process.env.REACT_APP_LOGO || '';

export const APP_RIGHT_LOGO = process.env.REACT_APP_RIGHT_LOGO || '';

export const SQL_DISPLAY = process.env.REACT_APP_SQL_DISPLAY;

export const AMPLIFY_CONFIG_JSON = "__bi_demo_app_amplify_config_json__";
Expand Down