mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
FSL-1.0-Apache-2.0 grants us the code, not the name. "Sentry" is Functional Software's trademark, so every place the running app says it to a user -- page titles, onboarding, empty states, toasts, settings copy, the self-hosted footer -- now says Sentinel. Attribution is the other half of the deal and stays untouched: upstream copyright headers, LICENSE, NOTICE. So does anything where the mark is a fact rather than a brand -- @sentry/* packages, sentry-cli, the wizard and bundler plugins, docs.sentry.io, the whole gettingStartedDocs tree. Renaming those would leave instructions that no longer work. Nothing structural moved. No import, identifier, route path, feature flag, API field or test id changed; the diff is 312 lines in and 312 out. Colocated specs were updated in lockstep with the copy they assert. Marketing and community links point at hanzo.ai, only where a real page exists to point at. Co-authored-by: Hanzo Dev <[email protected]>
141 lines
3.4 KiB
TypeScript
141 lines
3.4 KiB
TypeScript
import {css} from '@emotion/react';
|
|
import styled from '@emotion/styled';
|
|
|
|
import habitsSuccessfulCustomer from 'sentry-images/spot/habitsSuccessfulCustomer.jpg';
|
|
|
|
import type {ModalRenderProps} from 'sentry/actionCreators/modal';
|
|
import {Button} from 'sentry/components/button';
|
|
import ButtonBar from 'sentry/components/buttonBar';
|
|
import HighlightCornerContainer from 'sentry/components/highlightCornerModal';
|
|
import {IconClose} from 'sentry/icons';
|
|
import {t} from 'sentry/locale';
|
|
import {space} from 'sentry/styles/space';
|
|
import {trackAnalytics} from 'sentry/utils/analytics';
|
|
import {extraQueryParameter, urlAttachQueryParams} from 'sentry/utils/demoMode';
|
|
|
|
type Props = ModalRenderProps;
|
|
|
|
function DemoSignUpModal({closeModal}: Props) {
|
|
const signupUrl = urlAttachQueryParams(
|
|
'https://hanzo.ai/signup',
|
|
extraQueryParameter()
|
|
);
|
|
const demoUrl = urlAttachQueryParams(
|
|
'https://sentry.io/_/demo/',
|
|
extraQueryParameter()
|
|
);
|
|
|
|
return (
|
|
<HighlightCornerContainer>
|
|
<CloseButton
|
|
icon={<IconClose />}
|
|
size="xs"
|
|
aria-label={t('Close')}
|
|
onClick={() => {
|
|
trackAnalytics('growth.demo_modal_clicked_close', {
|
|
organization: null,
|
|
});
|
|
closeModal();
|
|
}}
|
|
/>
|
|
<div>
|
|
<TrialCheckInfo>
|
|
<Subheader>{t('Sign Up')}</Subheader>
|
|
<h2>{t('Hey, like what you see?')}</h2>
|
|
<p>
|
|
{t(
|
|
"Start your free trial, and create your first project to see what's broken in your code and how to fix it."
|
|
)}
|
|
</p>
|
|
</TrialCheckInfo>
|
|
<StyledButtonBar gap={1}>
|
|
<Button
|
|
priority="primary"
|
|
href={signupUrl}
|
|
onClick={() =>
|
|
trackAnalytics('growth.demo_modal_clicked_signup', {
|
|
organization: null,
|
|
})
|
|
}
|
|
>
|
|
{t('Start free trial')}
|
|
</Button>
|
|
<Button
|
|
priority="default"
|
|
href={demoUrl}
|
|
onClick={() =>
|
|
trackAnalytics('growth.demo_modal_clicked_demo', {
|
|
organization: null,
|
|
})
|
|
}
|
|
>
|
|
{t('Request a demo')}
|
|
</Button>
|
|
</StyledButtonBar>
|
|
</div>
|
|
<ImagePosition>
|
|
<PositionRight src={habitsSuccessfulCustomer} />
|
|
</ImagePosition>
|
|
</HighlightCornerContainer>
|
|
);
|
|
}
|
|
|
|
const TrialCheckInfo = styled('div')`
|
|
padding: ${space(3)} 0;
|
|
p {
|
|
font-size: ${p => p.theme.fontSizeLarge};
|
|
margin: 0;
|
|
}
|
|
h2 {
|
|
font-size: 2em;
|
|
}
|
|
`;
|
|
|
|
export const modalCss = css`
|
|
width: 100%;
|
|
max-width: 1000px;
|
|
[role='document'] {
|
|
position: relative;
|
|
padding: 70px 80px;
|
|
overflow: visible;
|
|
display: flex;
|
|
gap: 30px;
|
|
}
|
|
`;
|
|
|
|
const Subheader = styled('h4')`
|
|
margin-bottom: ${space(2)};
|
|
text-transform: uppercase;
|
|
font-weight: bold;
|
|
color: ${p => p.theme.activeText};
|
|
font-size: ${p => p.theme.fontSizeMedium};
|
|
`;
|
|
|
|
const StyledButtonBar = styled(ButtonBar)`
|
|
margin-top: ${space(2)};
|
|
max-width: 250px;
|
|
`;
|
|
|
|
const ImagePosition = styled('div')`
|
|
max-width: 360px;
|
|
margin: auto;
|
|
`;
|
|
|
|
const PositionRight = styled('img')`
|
|
border-radius: 0.5rem;
|
|
pointer-events: none;
|
|
`;
|
|
|
|
const CloseButton = styled(Button)`
|
|
position: absolute;
|
|
top: -15px;
|
|
right: -15px;
|
|
height: 30px;
|
|
width: 30px;
|
|
border-radius: 50%;
|
|
background: ${p => p.theme.background};
|
|
color: ${p => p.theme.textColor};
|
|
`;
|
|
|
|
export default DemoSignUpModal;
|