diff --git a/services/web/frontend/stories/page-layouts.stories.tsx b/services/web/frontend/stories/page-layouts.stories.tsx new file mode 100644 index 0000000000..d482fc641e --- /dev/null +++ b/services/web/frontend/stories/page-layouts.stories.tsx @@ -0,0 +1,297 @@ +import _ from 'lodash' +import { ComponentType } from 'react' +import { Navbar } from 'react-bootstrap' +import OLPageContentCard from '@/shared/components/ol/ol-page-content-card' +import OLRow from '@/shared/components/ol/ol-row' +import OLCol from '@/shared/components/ol/ol-col' +import OLButton from '@/shared/components/ol/ol-button' +import overleafLogo from '@/shared/svgs/overleaf-a-ds-solution-mallard.svg' + +const lorem = (n: number) => { + const quacks = ['quack', 'quack', 'quack', 'quak'] + let result = '' + if (n >= 1) result += 'Lorem' + if (n >= 2) result += ' epsom' + for (let i = 2; i < n; i++) { + const next = + result.at(-1) === '.' + ? ' ' + _.capitalize(quacks[Math.floor(Math.random() * quacks.length)]) + : quacks[Math.floor(Math.random() * (quacks.length + 1))] + result += next ? ' ' + next : '.' + } + if (result.at(-1) !== '.') result += '.' + return result +} + +const Nav = () => + +export const UnsuportedBrowser = () => ( +
+
+
+
+

Unsupported Browser

+

{lorem(60)}

+
+

{lorem(40)}

+
+
+
+
+) + +export const Error400 = () => ( +
+
+
+
+

Something went wrong, sorry.

+

{lorem(15)}

+
+
+
+
+) + +export const Error404 = () => ( + <> +