Skip to content

Commit

Permalink
Alert bar
Browse files Browse the repository at this point in the history
  • Loading branch information
gvorbeck committed Jan 16, 2024
1 parent 66e631e commit 2e5aab4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion src/components/PageLayout/PageLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, FloatButton, Layout } from "antd";
import { Alert, Flex, FloatButton, Layout } from "antd";
import React from "react";
import PageHeader from "./PageHeader/PageHeader";
import PageFooter from "./PageFooter/PageFooter";
Expand Down Expand Up @@ -26,6 +26,22 @@ const PageLayout: React.FC<PageLayoutProps> = ({ user }) => {
<Layout.Header className="flex items-center">
<PageHeader user={user} className={contentWidthClassName} />
</Layout.Header>
<Alert
banner
message={
<span>
Welcome to v2.0! If you see something isn't working, comment{" "}
<a
target="_blank"
href="https://github.com/gvorbeck/codex-quest/issues/216"
>
HERE
</a>
, create an issue, or make a Pull Request in my GitHub.
</span>
}
type="info"
/>
<Layout.Content className={layoutContentClassName}>
<Flex vertical gap={16}>
{isHomePage && (
Expand Down
2 changes: 1 addition & 1 deletion src/support/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const cqTheme = {
},
components: {
Alert: {
colorInfoBg: ColorScheme.SPRINGWOOD,
colorInfoBg: darkenHexColor(ColorScheme.SPRINGWOOD, 15),
},
Badge: {
colorBgContainer: ColorScheme.SPRINGWOOD,
Expand Down

0 comments on commit 2e5aab4

Please sign in to comment.