Skip to content

Commit

Permalink
Merge pull request #2414 from epam/feature/uui-site-new-start-page
Browse files Browse the repository at this point in the history
New UUI landing
  • Loading branch information
AlekseyManetov authored Jul 22, 2024
2 parents 1a3fe02 + a4cba2d commit 9ec6b31
Show file tree
Hide file tree
Showing 43 changed files with 8,774 additions and 74 deletions.
50 changes: 50 additions & 0 deletions app/public/static/svg-assets/intro-blur-light-theme.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 35 additions & 25 deletions app/src/common/AppFooter.module.scss
Original file line number Diff line number Diff line change
@@ -1,40 +1,50 @@
@use '~@epam/assets/theme/theme_promo' as *;
@use '~@epam/promo/assets/styles/colors.scss' as *;

.layout {
.root {
display: flex;
background-color: #222222;
height: 60px;
justify-content: center;
flex-shrink: 0;
height: 240px;
padding: 0 18px;

:global {
@include theme-promo();
}
.container {
display: flex;
flex-direction: row;
flex-basis: 1166px;
padding: 36px 0;

.footer {
max-width: 1200px;
width: 100%;
margin: 0 auto;
.first-block {
margin-top: 9px;
flex-basis: 50%;

:global(.uui-icon) {
padding-top: 3px;
}
.sponsor-text {
margin-top: 60px;
}

.copyright {
padding-left: 21px;
.bottom-links {
:global(.uui-text) {
padding-top: 0;
}
}
}
}

@media (max-width: 1280px) {
.footer {
max-width: 732px;
.second-block {
flex-basis: 50%;

.mail-button {
margin-top: 9px;
padding-inline-start: 18px;
padding-inline-end: 18px;
}
}
}

@media (max-width: 768px) {
.footer {
margin: 0 12px;
@media (max-width: 950px) {
& * {
max-width: fit-content;
margin: 0 auto;
}

.second-block {
display: none;
}
}
}
81 changes: 67 additions & 14 deletions app/src/common/AppFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,78 @@
import * as React from 'react';
import css from './AppFooter.module.scss';
import {
FlexRow, Text, Anchor, IconContainer,
} from '@epam/uui';
import { FlexRow, Text, Anchor, IconContainer, FlexCell, Button } from '@epam/uui';
import { getCurrentTheme } from '../helpers';
import { ReactComponent as EPAMIcon } from '../icons/EPAM.svg';
import { ReactComponent as CommunicationMailFillIcon } from '@epam/assets/icons/communication-mail-fill.svg';
import css from './AppFooter.module.scss';

const EPAM_LINK = 'https://www.epam.com';

export class AppFooter extends React.Component {
render() {
const footerLinks = {
resources: { caption: 'Resources',
links: [
{ href: 'https://uui.epam.com/documents', name: 'Docs' },
{ href: 'https://uui.epam.com/documents?category=components&id=accordion', name: 'Components' },
{ href: 'https://uui.epam.com/demo', name: 'Examples' },
] },
links: { caption: 'Links',
links: [
{ href: 'https://www.figma.com/community/file/1380452603479283689/epam-uui-v5-7', name: 'Figma' },
{ href: 'https://github.com/epam/UUI', name: 'GitHub' },
{ href: 'https://uui.epam.com/documents?id=releaseNotes', name: 'Release notes' },
] },
community: { caption: 'Community',
links: [
{ href: 'https://github.com/epam/UUI/discussions', name: 'Github Discussions' },
{ href: 'https://teams.microsoft.com/l/team/19%3Af9ce97808e1e419cb976f71d310ca74f%40thread.skype/conversations?groupId=726eb5c9-1516-4c6a-be33-0838d9a33b02&tenantId=b41b72d0-4e9f-4c26-8a69-f949f367c91d', name: 'Microsoft Teams' },
{ href: 'https://wearecommunity.io/communities/uui', name: 'We Are Community' },
] },
};

export function AppFooter() {
const theme = getCurrentTheme();

const getLinks = ({ caption, links }: { caption: string, links: { href: string, name: string }[] }) => {
return (
<div className={ css.layout }>
<FlexRow cx={ css.footer }>
<FlexCell width="auto">
<Text color="white" fontWeight="600" fontSize="18">{ caption }</Text>
{links.map((link) => (
<Anchor key={ link.href } href={ link.href } target="_blank">
<Text color="white">{ link.name }</Text>
</Anchor>
))}
</FlexCell>
);
};

return (
<div className={ css.root } style={ { backgroundColor: theme === 'electric' ? 'var(--uui-neutral-95)' : 'var(--uui-neutral-90)' } }>
<div className={ css.container }>
<FlexCell cx={ css.firstBlock } grow={ 1 }>
<Anchor rawProps={ { tabIndex: -1, 'aria-label': 'EPAM' } } href={ EPAM_LINK } target="_blank">
<IconContainer icon={ EPAMIcon } />
</Anchor>
<Text color="secondary" fontSize="14" lineHeight="24" cx={ css.copyright }>
{${new Date().getFullYear()} EPAM Systems. All Rights reserved`}
</Text>
</FlexRow>
<Text color="disabled" cx={ css.sponsorText }>Sponsored by EPAM Licensed under MIT License</Text>
<FlexRow columnGap={ 18 } cx={ css.bottomLinks }>
<Anchor href="/" target="_blank">
<Text color="white">Privacy Policy</Text>
</Anchor>
<Anchor href="/" target="_blank">
<Text color="white">Cookies Policy</Text>
</Anchor>
</FlexRow>
</FlexCell>
<FlexCell cx={ css.secondBlock } grow={ 1 }>
<FlexRow columnGap={ 48 } alignItems="top">
<FlexCell width="auto">
<Text color="white" fontWeight="600" fontSize="18">Have a question?</Text>
<Button href="mailto:[email protected]" cx={ css.mailButton } color="primary" caption="Contact us" icon={ CommunicationMailFillIcon } />
</FlexCell>
{getLinks(footerLinks.resources)}
{getLinks(footerLinks.links)}
{getLinks(footerLinks.community)}
</FlexRow>
</FlexCell>
</div>
);
}
</div>
);
}
90 changes: 87 additions & 3 deletions app/src/common/AppHeader.module.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,84 @@
.root {
--uui-tooltip-border-radius: 3px;
--uui-tooltip-border: #474A59;

.link-container {
display: flex;
padding-left: 18px;
padding-right: 18px;
padding-left: 9px;
padding-right: 9px;
align-items: center;
min-height: 60px;

&:hover {
background-color: var(--uui-neutral-90);
}

.link-caption {
padding-left: 6px;
color: var(--uui-main_menu-text);
white-space: nowrap;
}
}

.git-star-container {
position: relative;
display: flex;
padding: 0;
align-items: center;
min-height: 60px;
margin-inline-start: 8px;

&::after {
content: '';
display: block;
position: absolute;
width: 11px;
height: 11px;
left: -6px;
transform: translateY(0) rotate(45deg);
background-color: var(--uui-main_menu-bg);
border: 1px solid var(--uui-tooltip-border);
border-top: 0 none;
border-inline-end: 0 none;
z-index: 1000;
cursor: pointer;
transition: 0.2s ease;
}

.wrapper {
height: 24px;
display: flex;
padding: 3px 6px;
align-items: center;
border-radius: var(--uui-tooltip-border-radius);
border: 1px solid var(--uui-tooltip-border);
background-color: var(--uui-main_menu-bg);
cursor: pointer;
transition: 0.2s ease;

svg {
width: 12px;
height: 100%;
margin-inline-end: 3px;
fill: var(--uui-main_menu-text);
}

.star-caption {
color: var(--uui-main_menu-text);
}
}

&:hover {
&::after {
border-color: lighten(#474A59, 10%);
}

.wrapper {
border-color: lighten(#474A59, 10%);
}
}
}

.switcher {
padding-left: 24px;
}
Expand All @@ -21,8 +87,26 @@
min-width: 320px;
}

.git-icon, .logo-icon {
.icon {
height: 60px;
fill: var(--uui-main_menu-text);
padding-inline-start: 9px;
padding-inline-end: 9px;

&:global(.uui-button-box):global(.uui-link_button):hover {
fill: var(--uui-main_menu-text);
background-color: var(--uui-neutral-90);
}

svg {
width: 24px;
height: 24px;
}

&.logo svg {
width: 168px;
height: 60px;
}
}

.theme-switcher-button:hover {
Expand Down
Loading

0 comments on commit 9ec6b31

Please sign in to comment.