-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sc 23124 #829
Sc 23124 #829
Changes from all commits
503b627
21308a2
7af197e
234724a
bc43de2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Trans } from '@lingui/macro'; | ||
|
||
import { EXTERNAL_LINKS } from '@/application'; | ||
import Alert from '@/components/common/Alert/Alert'; | ||
|
||
function SandboxBanner() { | ||
return ( | ||
<Alert> | ||
<div className="flex h-auto w-full flex-col items-center justify-center gap-x-4 bg-[#EBF5FF] py-6 text-center font-bold text-[#1D65A6] lg:flex-row"> | ||
<p> | ||
<Trans> | ||
You are using the Ensign Sandbox. Ready to deploy your models to production? | ||
</Trans> | ||
</p> | ||
<a | ||
href={EXTERNAL_LINKS.ENSIGN_PRICING} | ||
target="_blank" | ||
rel="noreferrer" | ||
className="mt-4 rounded-md border border-white bg-[#1D65A6] px-4 py-1.5 text-white hover:bg-[#1D65A6/50] lg:mt-0" | ||
> | ||
<Trans>Upgrade</Trans> | ||
</a> | ||
</div> | ||
</Alert> | ||
); | ||
} | ||
|
||
export default SandboxBanner; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import MobileFooter from './MobileFooter'; | ||
import SandboxSidebar from './Sidebar/SandboxSidebar'; | ||
|
||
type SandboxLayoutProps = { | ||
children?: React.ReactNode; | ||
}; | ||
|
||
function SandboxLayout({ children }: SandboxLayoutProps) { | ||
return ( | ||
<div className="flex flex-col md:pl-[250px]"> | ||
<SandboxSidebar className="hidden md:block" /> | ||
<div>{children}</div> | ||
<MobileFooter /> | ||
</div> | ||
); | ||
} | ||
|
||
export default SandboxLayout; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,9 @@ import { TbPlayFootball } from 'react-icons/tb'; | |
import { EXTERNAL_LINKS, PATH_DASHBOARD } from '@/application'; | ||
import { MenuItem } from '@/types/MenuItem'; | ||
|
||
export const SIDEBAR_WIDTH = 250; | ||
export const TOPBAR_HEIGHT = 60; | ||
/* TODO: Verify if styles are used and remove if not. */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After setting these styles to |
||
export const SIDEBAR_WIDTH = 0; | ||
export const TOPBAR_HEIGHT = 0; | ||
|
||
export const menuItems: MenuItem[] = [ | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A condition will be added in a future story to display this component to the correct user.