This repository was archived by the owner on Mar 18, 2025. It is now read-only.
forked from openedx/frontend-app-authn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLargeLayout.jsx
47 lines (42 loc) · 1.57 KB
/
LargeLayout.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import React from 'react';
import { getConfig } from '@edx/frontend-platform';
import { useIntl } from '@edx/frontend-platform/i18n';
import { Hyperlink, Image } from '@edx/paragon';
import classNames from 'classnames';
import messages from './messages';
const LargeLayout = () => {
const { formatMessage } = useIntl();
return (
<div className="w-50 d-flex">
<div className="col-md-9 dark-blueish-background-color">
<Hyperlink destination={getConfig().MARKETING_SITE_BASE_URL}>
<Image className="logo position-absolute" alt={getConfig().SITE_NAME} src={getConfig().LOGO_WHITE_URL} />
</Hyperlink>
<div className="min-vh-100 d-flex align-items-center">
<div className={classNames({ 'large-yellow-line mr-n4.5': getConfig().SITE_NAME === 'edX' })} />
<h1
className={classNames(
'text-white mw-xs',
{ 'ml-6': getConfig().SITE_NAME !== 'edX' },
)}
>
<div className='montserrat-font'>
<div className="bigger-text">
{formatMessage(messages['start.learning'])}
</div>
<div className="pumpkin-orange-text bigger-text">
{formatMessage(messages['with.site.name'], { siteName: getConfig().SITE_NAME })}
</div>
</div>
</h1>
</div>
</div>
<div className="col-md-3 bg-white p-0">
<div className='curve-container'>
<div className='curve-divider'></div>
</div>
</div>
</div>
);
};
export default LargeLayout;