Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/samples/mediaco/components/AppShell/AppShell.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.mc-app-shell {
display: flex;
width: 100%;
min-height: 100vh;
background-color: #fff;
}
1 change: 1 addition & 0 deletions src/samples/mediaco/components/AppShell/AppShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
import { TodoPortalProvider } from '../../utils/TodoPortalContext';
import WssNavBar from '../WssNavBar';
import '../../mediaCoStyles.scss';
import './AppShell.scss';

interface IPage {
pxPageViewIcon: string;
Expand Down
185 changes: 185 additions & 0 deletions src/samples/mediaco/components/Banner/Banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
.mc-banner-root {
width: 100%;
background-color: #fff;
}

.mc-banner-header {
position: sticky;
top: 64px;
background-color: #fff;
z-index: 10;
padding-bottom: 2rem;
width: 100%;
}

.mc-banner-header-inner {
width: 100%;
text-align: center;
}

.mc-banner-header-stack {
display: flex;
flex-direction: column;
padding-top: 5rem;
gap: 0.5rem;
}

.mc-banner-header-content {
justify-content: center;
display: inline-grid;
}

.mc-banner-title {
margin: 0;
font-size: 36px;
color: #46185a;
font-weight: 700;
}

.mc-banner-message {
font-size: 14px;
margin-top: 16px;
color: #49454f;
}

.mc-banner-survey-wrap {
display: flex;
justify-content: center;
width: 100%;
padding: 1rem 0;
}

.mc-banner-survey-card {
display: flex;
align-items: center;
gap: 24px;
background: linear-gradient(135deg, rgb(103, 80, 164) 0%, rgb(248, 20, 227) 50%, rgb(0, 201, 255) 100%);
background-size: 200% 200%;
border-radius: 24px;
padding: 24px 32px;
width: 670px;
max-width: 100%;
color: #fff;
box-shadow: 0 8px 20px rgba(94, 75, 159, 0.25);
font-family: 'Roboto', sans-serif;
text-align: left;
}

.mc-banner-survey-icon-wrap {
flex-shrink: 0;
}

.mc-banner-survey-icon-box {
display: flex;
align-items: center;
justify-content: center;
width: 72px;
height: 72px;
border-radius: 16px;
background-color: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(4px);
}

.mc-banner-survey-icon-image {
height: 35px;
filter: brightness(0) saturate(100%) invert(100%);
}

.mc-banner-survey-text {
flex-grow: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
}

.mc-banner-survey-title {
margin: 0 0 6px;
font-size: 22px;
font-weight: 400;
}

.mc-banner-survey-message {
margin: 0;
font-size: 15px;
opacity: 0.9;
font-weight: 400;
line-height: 1.4;
}

.mc-banner-survey-action {
flex-shrink: 0;
}

.mc-banner-survey-button {
background-color: #fff;
color: #5c4498;
border: none;
padding: 12px 28px;
border-radius: 50px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
letter-spacing: 0.1px;
font-size: 14px;
font-weight: 500;
line-height: 20px;
text-transform: none;
}

.mc-banner-survey-button:hover {
background-color: #f0f0f0;
}

.mc-banner-survey-button-icon {
font-size: 20px;
}

.mc-banner-content {
position: relative;
z-index: 1;
display: grid;
column-gap: 1rem;
gap: 1.5rem;
align-items: start;
background: #fff;
padding: 40px 44px 16px;
border-top-left-radius: 28px;
grid-template-columns: 1fr;
}

.mc-banner-content--two-column,
.mc-banner-content--wide-narrow,
.mc-banner-content--narrow-wide {
grid-template-columns: 1fr;
}

.mc-banner-region {
min-width: 0;
}

@media (min-width: 1200px) {
.mc-banner-content--two-column {
grid-template-columns: repeat(2, 1fr);
}

.mc-banner-content--wide-narrow {
grid-template-columns: 7fr 3fr;
}

.mc-banner-content--narrow-wide {
grid-template-columns: 3fr 7fr;
}
}

@media (max-width: 768px) {
.mc-banner-survey-card {
flex-direction: column;
text-align: center;
padding: 32px 24px;
}

.mc-banner-survey-text {
align-items: center;
}
}
1 change: 1 addition & 0 deletions src/samples/mediaco/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ArrowForwardIcon from '@mui/icons-material/ArrowForward';
import Banner from '@pega/react-sdk-components/lib/components/designSystemExtension/Banner';
import Utils from '@pega/react-sdk-components/lib/components/helpers/utils';
import { useTodoPortal } from '../../utils/TodoPortalContext';
import './Banner.scss';

/**
* Banner is called by BannerPage/DefaultPage via getComponentFromMap('Banner').
Expand Down
89 changes: 89 additions & 0 deletions src/samples/mediaco/components/Carousel/Carousel.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
.mc-carousel-root {
width: 100%;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
}

.mc-carousel-track {
display: flex;
align-items: center;
width: 100%;
max-width: 100%;
overflow-x: auto;
overflow-y: hidden;
scroll-behavior: auto;
border-radius: 12px;
scrollbar-width: none;
}

.mc-carousel-track::-webkit-scrollbar {
display: none;
}

.mc-carousel-item,
.mc-carousel-skeleton-item {
flex: 0 0 200px;
height: 350px;
margin: 0 10px;
border-radius: 8px;
}

.mc-carousel-item {
transition:
flex-basis 0.1s linear,
min-width 0.1s linear;
will-change: flex-basis, min-width;
min-width: 0;
}

.mc-carousel-skeleton-item {
background: linear-gradient(90deg, #e0e0e0 25%, #ececec 50%, #e0e0e0 75%);
background-size: 200% 100%;
animation: mc-carousel-shimmer 1.5s infinite;
}

@keyframes mc-carousel-shimmer {
0% {
background-position: 200% 0;
}

100% {
background-position: -200% 0;
}
}

.mc-carousel-card {
width: 100%;
height: 100%;
padding: 0;
overflow: hidden;
position: relative;
background: #000;
border-radius: 8px;
}

.mc-carousel-image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.mc-carousel-overlay {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 16px;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
color: #fff;
}

.mc-carousel-title {
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
1 change: 1 addition & 0 deletions src/samples/mediaco/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useEffect, useRef, useState } from 'react';
import Box from '@mui/material/Box';
import Card from '@mui/material/Card';
import Typography from '@mui/material/Typography';
import './Carousel.scss';

interface CarouselItem {
Carouselheading?: string;
Expand Down
Loading
Loading