@prosistemas/sca-web-kit 2.4.2 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/accordion/accordion.module.scss +3 -1
- package/package.json +1 -1
- package/dist/components/layout/topnav/mobile-nav/mobile-nav.d.ts +0 -1
- package/dist/components/layout/topnav/mobile-nav/mobile-nav.js +0 -11
- package/dist/components/layout/topnav/mobile-nav/mobile-nav.module.scss +0 -128
- package/dist/components/layout/topnav/mobile-nav/nav-accordion/nav-accordion-link/nav-accordion-link.d.ts +0 -4
- package/dist/components/layout/topnav/mobile-nav/nav-accordion/nav-accordion-link/nav-accordion-link.js +0 -5
- package/dist/components/layout/topnav/mobile-nav/nav-accordion/nav-accordion-link/nav-accordion-link.module.scss +0 -5
- package/dist/components/layout/topnav/mobile-nav/nav-accordion/nav-accordion.d.ts +0 -4
- package/dist/components/layout/topnav/mobile-nav/nav-accordion/nav-accordion.js +0 -7
- package/dist/components/layout/topnav/mobile-nav/nav-accordion/nav-accordion.module.scss +0 -125
- package/dist/components/layout/topnav/navlinks/card/card.d.ts +0 -6
- package/dist/components/layout/topnav/navlinks/card/card.js +0 -7
- package/dist/components/layout/topnav/navlinks/card/card.module.scss +0 -34
- package/dist/components/layout/topnav/navlinks/dropdown-menu-trigger/dropdown-menu-trigger.d.ts +0 -6
- package/dist/components/layout/topnav/navlinks/dropdown-menu-trigger/dropdown-menu-trigger.js +0 -13
- package/dist/components/layout/topnav/navlinks/dropdown-menu-trigger/dropdown-menu-trigger.module.scss +0 -33
- package/dist/components/layout/topnav/navlinks/more/more.d.ts +0 -5
- package/dist/components/layout/topnav/navlinks/more/more.js +0 -14
- package/dist/components/layout/topnav/navlinks/more/more.module.scss +0 -60
- package/dist/components/layout/topnav/navlinks/navlinks.d.ts +0 -1
- package/dist/components/layout/topnav/navlinks/navlinks.js +0 -29
- package/dist/components/layout/topnav/navlinks/resources/resources-card/resources-card.d.ts +0 -6
- package/dist/components/layout/topnav/navlinks/resources/resources-card/resources-card.js +0 -6
- package/dist/components/layout/topnav/navlinks/resources/resources-card/resources-card.module.scss +0 -26
- package/dist/components/layout/topnav/navlinks/resources/resources.d.ts +0 -5
- package/dist/components/layout/topnav/navlinks/resources/resources.js +0 -63
- package/dist/components/layout/topnav/navlinks/resources/resources.module.scss +0 -132
- package/dist/components/layout/topnav/navlinks/segments/segments.d.ts +0 -5
- package/dist/components/layout/topnav/navlinks/segments/segments.js +0 -13
- package/dist/components/layout/topnav/navlinks/segments/segments.module.scss +0 -62
- package/dist/components/layout/topnav/navtrailing/navtrailing.d.ts +0 -1
- package/dist/components/layout/topnav/navtrailing/navtrailing.js +0 -8
- package/dist/components/layout/topnav/navtrailing/navtrailing.module.scss +0 -51
- package/dist/components/layout/topnav/topnav.d.ts +0 -1
- package/dist/components/layout/topnav/topnav.js +0 -10
- package/dist/components/layout/topnav/topnav.module.scss +0 -56
- package/dist/components/shared/autoplayer/autoplayer-row/autoplayer-row.d.ts +0 -8
- package/dist/components/shared/autoplayer/autoplayer-row/autoplayer-row.js +0 -11
- package/dist/components/shared/autoplayer/autoplayer-row/autoplayer-row.module.scss +0 -43
- package/dist/components/shared/autoplayer/autoplayer.d.ts +0 -1
- package/dist/components/shared/autoplayer/autoplayer.js +0 -16
- package/dist/components/shared/autoplayer/autoplayer.module.scss +0 -20
- package/dist/components/shared/feature-card/feature-card.d.ts +0 -13
- package/dist/components/shared/feature-card/feature-card.js +0 -9
- package/dist/components/shared/feature-card/feature-card.module.scss +0 -15
- package/dist/components/shared/footer-banner/footer-banner.d.ts +0 -1
- package/dist/components/shared/footer-banner/footer-banner.js +0 -9
- package/dist/components/shared/footer-banner/footer-banner.module.scss +0 -103
- package/dist/components/shared/footer-banner-autoplayer/footer-banner-autoplayer.d.ts +0 -3
- package/dist/components/shared/footer-banner-autoplayer/footer-banner-autoplayer.js +0 -10
- package/dist/components/shared/footer-banner-autoplayer/footer-banner-autoplayer.module.scss +0 -108
- package/dist/components/shared/index-header/index-header.d.ts +0 -2
- package/dist/components/shared/index-header/index-header.js +0 -35
- package/dist/components/shared/index-header/index-header.module.scss +0 -17
- package/dist/components/shared/index-header/indexed-section-button/indexed-section-button.d.ts +0 -6
- package/dist/components/shared/index-header/indexed-section-button/indexed-section-button.js +0 -8
- package/dist/components/shared/index-header/indexed-section-button/indexed-section-button.module.scss +0 -38
- package/dist/components/shared/phone/phone.d.ts +0 -6
- package/dist/components/shared/phone/phone.js +0 -16
- package/dist/components/shared/phone/phone.module.scss +0 -322
- package/dist/components/shared/success-cases/success-cases-swiper/success-case-card/success-case-card.d.ts +0 -10
- package/dist/components/shared/success-cases/success-cases-swiper/success-case-card/success-case-card.js +0 -9
- package/dist/components/shared/success-cases/success-cases-swiper/success-case-card/success-case-card.module.scss +0 -154
- package/dist/components/shared/success-cases/success-cases-swiper/success-cases-swiper.d.ts +0 -3
- package/dist/components/shared/success-cases/success-cases-swiper/success-cases-swiper.js +0 -15
- package/dist/components/shared/success-cases/success-cases-swiper/success-cases-swiper.module.scss +0 -81
- package/dist/components/shared/success-cases/success-cases.d.ts +0 -1
- package/dist/components/shared/success-cases/success-cases.js +0 -9
- package/dist/components/shared/success-cases/success-cases.module.scss +0 -60
- package/dist/components/shared/support-sticky-button/support-sticky-button.d.ts +0 -1
- package/dist/components/shared/support-sticky-button/support-sticky-button.js +0 -7
- package/dist/components/shared/support-sticky-button/support-sticky-button.module.scss +0 -63
- package/dist/components/ui/button/default-button.module.scss +0 -22
- package/dist/components/ui/decal/decal.d.ts +0 -6
- package/dist/components/ui/decal/decal.js +0 -9
- package/dist/components/ui/decal/decal.module.scss +0 -7
- package/dist/components/ui/progress-bar/progress-bar.d.ts +0 -5
- package/dist/components/ui/progress-bar/progress-bar.js +0 -9
- package/dist/components/ui/progress-bar/progress-bar.module.scss +0 -12
- package/dist/components/ui/pulse-effect/pulse-effect.d.ts +0 -1
- package/dist/components/ui/pulse-effect/pulse-effect.js +0 -5
- package/dist/components/ui/pulse-effect/pulse-effect.module.scss +0 -63
- package/dist/components/ui/span-label/span-label.d.ts +0 -5
- package/dist/components/ui/span-label/span-label.js +0 -15
- package/dist/components/ui/span-label/span-label.module.scss +0 -11
- package/dist/components/ui/stacks/stacks.d.ts +0 -1
- package/dist/components/ui/stacks/stacks.js +0 -5
- package/dist/components/ui/stacks/stacks.module.scss +0 -32
- package/dist/components/ui/three-dots/three-dots.d.ts +0 -3
- package/dist/components/ui/three-dots/three-dots.js +0 -5
- package/dist/components/ui/three-dots/three-dots.module.scss +0 -28
- package/dist/index.js.map +0 -1
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
.footer-banner {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
gap: 32px;
|
|
6
|
-
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
|
|
10
|
-
background: var(--dark900);
|
|
11
|
-
|
|
12
|
-
border-radius: 24px 24px 0 0;
|
|
13
|
-
padding: var(--global-padding);
|
|
14
|
-
|
|
15
|
-
@media(max-width: 1024px) {
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
gap: 64px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.footer-banner-info-header {
|
|
21
|
-
align-items: flex-start;
|
|
22
|
-
text-align: start;
|
|
23
|
-
max-width: 33%;
|
|
24
|
-
|
|
25
|
-
@media(max-width: 1024px) {
|
|
26
|
-
max-width: 75%;
|
|
27
|
-
align-items: center;
|
|
28
|
-
text-align: center;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.image-person-wrapper {
|
|
33
|
-
width: 33%;
|
|
34
|
-
height: 330px;
|
|
35
|
-
position: relative;
|
|
36
|
-
z-index: 0;
|
|
37
|
-
|
|
38
|
-
@media(max-width: 1024px) {
|
|
39
|
-
max-width: 75%;
|
|
40
|
-
width: 75%;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.image {
|
|
44
|
-
border-radius: 24px;
|
|
45
|
-
z-index: -1;
|
|
46
|
-
position: relative;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.person {
|
|
50
|
-
z-index: 1;
|
|
51
|
-
position: absolute;
|
|
52
|
-
bottom: 0;
|
|
53
|
-
left: 50%;
|
|
54
|
-
transform: translateX(-50%);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.bullet-list-wrapper {
|
|
59
|
-
display: flex;
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
gap: 32px;
|
|
62
|
-
|
|
63
|
-
@media(max-width: 1024px) {
|
|
64
|
-
max-width: 75%;
|
|
65
|
-
width: 75%;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.title {
|
|
69
|
-
color: #FFF;
|
|
70
|
-
font-size: 32px;
|
|
71
|
-
font-weight: 600;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.bullet-list {
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
gap: 24px;
|
|
78
|
-
|
|
79
|
-
.list-item {
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
gap: 8px;
|
|
83
|
-
|
|
84
|
-
.text {
|
|
85
|
-
color: var(--neutral000);
|
|
86
|
-
font-size: 16px;
|
|
87
|
-
font-weight: 400;
|
|
88
|
-
line-height: 150%;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.separator {
|
|
93
|
-
width: 100%;
|
|
94
|
-
height: 1px;
|
|
95
|
-
|
|
96
|
-
opacity: 0.5;
|
|
97
|
-
background: var(--light600);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import styles from './footer-banner-autoplayer.module.scss';
|
|
3
|
-
import { montserrat } from '../../../fonts';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import InfoHeader from '../info-header/info-header';
|
|
6
|
-
import Autoplayer from '../autoplayer/autoplayer';
|
|
7
|
-
import Button from '../../ui/button/button';
|
|
8
|
-
export default function FooterBannerAutoplayer({ className = '' }) {
|
|
9
|
-
return (_jsxs("div", { className: `${styles['footer-banner-autoplayer']} ${className}`, children: [_jsxs("div", { className: styles['left'], children: [_jsx(InfoHeader, { tagLabel: 'SISTEMA COMPLETO', title: 'Plano ideal para o seu negócio', className: styles['info-header'], dark: true }), _jsxs("p", { className: `${styles['monthly-fee']} ${montserrat.className}`, children: ["R$", _jsx("span", { className: `${styles['price']}`, children: "178,00" }), "/m\u00EAs"] }), _jsxs("p", { children: ["Menos de R$6,00 por dia ou em at\u00E9 6x sem juros no anual com ", _jsx("b", { children: "20% de desconto" }), "!"] }), _jsx("a", { href: 'https://app.sistemasca.com/cadastro', target: '_blank', style: { marginTop: `12px` }, children: _jsx(Button, { label: 'Teste agora', className: styles['button'] }) })] }), _jsxs("div", { className: styles['middle'], children: [_jsx(Image, { src: '/gym/stock-gym-blurred.webp', alt: 'Foto borrada de uma academia.', className: styles['image'], fill: true }), _jsx(Image, { src: '/people/person_15.webp', alt: 'Imagem de uma pessoa segurando um celular.', width: 400, height: 400, className: styles['person'] })] }), _jsx("div", { className: styles['right'], children: _jsx(Autoplayer, {}) })] }));
|
|
10
|
-
}
|
package/dist/components/shared/footer-banner-autoplayer/footer-banner-autoplayer.module.scss
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
.footer-banner-autoplayer {
|
|
2
|
-
width: 100%;
|
|
3
|
-
padding: var(--global-padding);
|
|
4
|
-
|
|
5
|
-
display: flex;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
align-items: flex-end;
|
|
8
|
-
gap: 62px;
|
|
9
|
-
|
|
10
|
-
background: var(--dark800);
|
|
11
|
-
border-radius: 24px 24px 0 0;
|
|
12
|
-
|
|
13
|
-
@media (max-width: 1024px) {
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
align-items: center;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.left {
|
|
19
|
-
width: 33%;
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
gap: 16px;
|
|
23
|
-
color: var(--neutral000);
|
|
24
|
-
|
|
25
|
-
@media (max-width: 1024px) {
|
|
26
|
-
width: 100%;
|
|
27
|
-
align-items: center;
|
|
28
|
-
text-align: center;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@media (max-width: 768px) {
|
|
32
|
-
width: 100%;
|
|
33
|
-
align-items: flex-start;
|
|
34
|
-
text-align: start;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.info-header {
|
|
38
|
-
text-align: start;
|
|
39
|
-
align-items: flex-start;
|
|
40
|
-
gap: 16px;
|
|
41
|
-
|
|
42
|
-
@media (max-width: 1024px) {
|
|
43
|
-
align-items: center;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@media (max-width: 768px) {
|
|
47
|
-
align-items: flex-start;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.monthly-fee {
|
|
52
|
-
font-size: 24px;
|
|
53
|
-
font-weight: 600;
|
|
54
|
-
letter-spacing: 1.2px;
|
|
55
|
-
margin-top: 32px;
|
|
56
|
-
|
|
57
|
-
.price {
|
|
58
|
-
font-size: 40px;
|
|
59
|
-
font-weight: 600;
|
|
60
|
-
letter-spacing: 2px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.button {
|
|
65
|
-
padding: 16px 64px;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.middle {
|
|
70
|
-
position: relative;
|
|
71
|
-
min-height: 351px;
|
|
72
|
-
width: 33%;
|
|
73
|
-
height: 100%;
|
|
74
|
-
|
|
75
|
-
@media (max-width: 1024px) {
|
|
76
|
-
width: 100%;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.image {
|
|
80
|
-
border-radius: 16px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.person {
|
|
84
|
-
position: absolute;
|
|
85
|
-
bottom: 0;
|
|
86
|
-
left: 50%;
|
|
87
|
-
transform: translateX(-50%);
|
|
88
|
-
|
|
89
|
-
@media (max-width: 1330px) {
|
|
90
|
-
scale: 90%;
|
|
91
|
-
transform-origin: bottom left;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@media (max-width: 1024px) {
|
|
95
|
-
scale: 100%;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.right {
|
|
101
|
-
width: 33%;
|
|
102
|
-
height: 100%;
|
|
103
|
-
|
|
104
|
-
@media (max-width: 1024px) {
|
|
105
|
-
width: 100%;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import styles from './index-header.module.scss';
|
|
4
|
-
import { useEffect, useState } from 'react';
|
|
5
|
-
import IndexedSectionButton from './indexed-section-button/indexed-section-button';
|
|
6
|
-
export default function IndexHeader({ sections }) {
|
|
7
|
-
const [activeSection, setActiveSection] = useState('');
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
const handleScroll = () => {
|
|
10
|
-
let closestSectionId = '';
|
|
11
|
-
let minDistance = Number.POSITIVE_INFINITY;
|
|
12
|
-
sections.forEach(({ id }) => {
|
|
13
|
-
const el = document.getElementById(id);
|
|
14
|
-
if (el) {
|
|
15
|
-
const top = el.getBoundingClientRect().top;
|
|
16
|
-
if (top >= 0 && top < minDistance) {
|
|
17
|
-
minDistance = top;
|
|
18
|
-
closestSectionId = id;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
if (closestSectionId)
|
|
23
|
-
setActiveSection(closestSectionId);
|
|
24
|
-
};
|
|
25
|
-
window.addEventListener('scroll', handleScroll, { passive: true });
|
|
26
|
-
handleScroll();
|
|
27
|
-
return () => {
|
|
28
|
-
window.removeEventListener('scroll', handleScroll);
|
|
29
|
-
};
|
|
30
|
-
}, [sections]);
|
|
31
|
-
return (_jsx("header", { className: styles['index-header'], children: sections.map(({ id, label }) => (_jsx(IndexedSectionButton, { activeSectionId: activeSection, onClick: () => setActiveSection(id), indexedSection: {
|
|
32
|
-
id: id,
|
|
33
|
-
label: label,
|
|
34
|
-
} }, id))) }));
|
|
35
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.index-header {
|
|
2
|
-
position: sticky;
|
|
3
|
-
top: 0;
|
|
4
|
-
z-index: 2;
|
|
5
|
-
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 80px;
|
|
8
|
-
background: var(--neutral100);
|
|
9
|
-
padding: var(--global-padding);
|
|
10
|
-
padding-top: 0;
|
|
11
|
-
padding-bottom: 0;
|
|
12
|
-
overflow-x: auto;
|
|
13
|
-
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: flex-end;
|
|
16
|
-
gap: 32px;
|
|
17
|
-
}
|
package/dist/components/shared/index-header/indexed-section-button/indexed-section-button.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IndexedSection } from '../../../../types';
|
|
2
|
-
export default function IndexedSectionButton({ activeSectionId, indexedSection, onClick, }: {
|
|
3
|
-
activeSectionId: string;
|
|
4
|
-
indexedSection: IndexedSection;
|
|
5
|
-
onClick: () => void;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/components/shared/index-header/indexed-section-button/indexed-section-button.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import styles from './indexed-section-button.module.scss';
|
|
3
|
-
export default function IndexedSectionButton({ activeSectionId, indexedSection, onClick, }) {
|
|
4
|
-
return (_jsx("button", { className: styles['button-wrapper'], onClick: onClick, children: _jsxs("a", { href: `#${indexedSection.id}`, className: `
|
|
5
|
-
${styles['section-button']}
|
|
6
|
-
${activeSectionId == indexedSection.id ? styles['active'] : ''}
|
|
7
|
-
`, children: [_jsx("span", { children: indexedSection.label }), _jsx("div", { className: styles['highlight'] })] }) }));
|
|
8
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.button-wrapper {
|
|
2
|
-
all: unset;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.section-button {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: 16px;
|
|
10
|
-
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
color: var(--neutral400);
|
|
13
|
-
text-align: center;
|
|
14
|
-
font-size: 16px;
|
|
15
|
-
font-variation-settings: 'wght' 500;
|
|
16
|
-
line-height: 150%;
|
|
17
|
-
|
|
18
|
-
z-index: 1;
|
|
19
|
-
|
|
20
|
-
white-space: nowrap;
|
|
21
|
-
|
|
22
|
-
transition: color .3s, font-variation-settings .3s;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.highlight {
|
|
26
|
-
width: 120%;
|
|
27
|
-
height: 2px;
|
|
28
|
-
transition: background .3s;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.active {
|
|
32
|
-
color: var(--neutral600);
|
|
33
|
-
font-variation-settings: 'wght' 600;
|
|
34
|
-
|
|
35
|
-
.highlight {
|
|
36
|
-
background: var(--auxiliary-orange);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import styles from './phone.module.scss';
|
|
4
|
-
import { useEffect, useState } from 'react';
|
|
5
|
-
import Image from 'next/image';
|
|
6
|
-
import { ArrowLeftIcon, TimerIcon, PersonIcon, MagnifyingGlassPlusIcon } from '@phosphor-icons/react';
|
|
7
|
-
export default function Phone({ className, phoneClassName, buttonsClassName, cameraClassName, }) {
|
|
8
|
-
const [activeIndex, setActiveIndex] = useState(0);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
const interval = setInterval(() => {
|
|
11
|
-
setActiveIndex(prev => (prev + 1) % 3);
|
|
12
|
-
}, 3000);
|
|
13
|
-
return () => clearInterval(interval);
|
|
14
|
-
}, []);
|
|
15
|
-
return (_jsxs("div", { className: `${styles['phone-wrapper']} ${className}`, children: [_jsxs("div", { className: styles['buttons-left'], children: [_jsx("div", { className: `${styles['action']} ${buttonsClassName}` }), _jsx("div", { className: `${styles['volume']} ${buttonsClassName}` }), _jsx("div", { className: `${styles['volume']} ${buttonsClassName}` })] }), _jsx("div", { className: `${styles['phone']} ${phoneClassName}`, children: _jsx("div", { className: styles['screen'], children: _jsxs("div", { className: styles['screen-shine'], children: [_jsxs("div", { className: styles['system-topbar'], children: [_jsx(Image, { src: '/phone/system-bar.svg', width: 172, height: 7, alt: 'Image dos \u00EDcones de um celular', className: styles['status'] }), _jsxs("div", { className: `${styles['camera']} ${cameraClassName}`, children: [_jsx("div", { className: styles['sound'] }), _jsx("div", { className: styles['aperture'] })] })] }), _jsxs("div", { className: styles['app-topbar'], children: [_jsxs("div", { className: styles['left'], children: [_jsx(ArrowLeftIcon, { weight: 'bold', color: 'var(--neutral100)', className: styles['icon'] }), _jsx("p", { children: "Execu\u00E7\u00E3o" })] }), _jsxs("div", { className: styles['right'], children: [_jsx(TimerIcon, { weight: 'bold', color: 'var(--neutral100)', className: styles['icon'] }), _jsx("p", { children: "00:27:12" })] })] }), _jsxs("div", { className: styles['app-background'], children: [_jsx("p", { className: styles['exercise'], children: "Rosca Direta" }), _jsxs("div", { className: styles['gif-wrapper'], children: [_jsxs("div", { className: styles['series'], children: [_jsx("div", { className: `${activeIndex == 0 ? styles['green-ball'] : styles['series-ball']}`, children: _jsx("p", { children: "1" }) }), _jsx("div", { className: styles['series-line'] }), _jsx("div", { className: `${activeIndex == 1 ? styles['green-ball'] : styles['series-ball']}`, children: _jsx("p", { children: "2" }) }), _jsx("div", { className: styles['series-line'] }), _jsx("div", { className: `${activeIndex == 2 ? styles['green-ball'] : styles['series-ball']}`, children: _jsx("p", { children: "3" }) })] }), _jsx(Image, { src: '/animated/rosca-direta.webp', alt: 'Animação do exercício Rosca Direta', width: 130, height: 130, unoptimized: true })] }), _jsxs("div", { className: styles['series-rest-wrapper'], children: [_jsxs("p", { children: ["S\u00E9ries: ", _jsx("b", { children: "3" })] }), _jsxs("p", { children: ["Descanso: ", _jsx("b", { children: "45s" })] })] }), _jsx("div", { className: styles['progress-bar'], children: _jsx("div", { className: styles['progress'] }) }), _jsxs("div", { className: styles['rest-weight-wrapper'], children: [_jsxs("div", { className: styles['rest'], children: [_jsx("p", { className: styles['title'], children: "12 reps" }), _jsx("p", { children: "Repeti\u00E7\u00F5es ou tempo" })] }), _jsx("div", { className: styles['separator'] }), _jsxs("div", { className: styles['weight'], children: [_jsx("p", { className: styles['title'], children: "15kg" }), _jsx("p", { children: "Carga ou velocidade" })] })] }), _jsxs("div", { className: styles['exercise-buttons'], children: [_jsxs("div", { className: styles['muscles'], children: [_jsx(PersonIcon, { weight: 'bold', color: 'var(--primary)' }), _jsx("p", { children: "M\u00FAsculos" })] }), _jsxs("div", { className: styles['amplify'], children: [_jsx(MagnifyingGlassPlusIcon, { weight: 'bold', color: 'var(--primary)' }), _jsx("p", { children: "Ampliar" })] })] })] }), _jsx("div", { className: styles['home-indicator'] })] }) }) }), _jsx("div", { className: styles['buttons-right'], children: _jsx("div", { className: `${styles['action']} ${buttonsClassName}` }) })] }));
|
|
16
|
-
}
|
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
.phone-wrapper {
|
|
2
|
-
width: 223px;
|
|
3
|
-
height: 433px;
|
|
4
|
-
position: absolute;
|
|
5
|
-
right: 250px;
|
|
6
|
-
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
align-items: center;
|
|
10
|
-
|
|
11
|
-
.buttons-left {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
align-items: flex-start;
|
|
15
|
-
justify-content: flex-start;
|
|
16
|
-
height: 60%;
|
|
17
|
-
|
|
18
|
-
.action,
|
|
19
|
-
.volume {
|
|
20
|
-
background: linear-gradient(235deg, rgba(255, 255, 255, 0.40) 29.48%, rgba(255, 255, 255, 0.49) 96.53%);
|
|
21
|
-
border-radius: 5px 0 0 5px;
|
|
22
|
-
width: 3px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.action {
|
|
26
|
-
height: 25px;
|
|
27
|
-
margin-bottom: 15px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.volume {
|
|
31
|
-
height: 40px;
|
|
32
|
-
margin-bottom: 7px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.buttons-right {
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
align-items: flex-start;
|
|
40
|
-
justify-content: flex-start;
|
|
41
|
-
height: 50%;
|
|
42
|
-
|
|
43
|
-
.action {
|
|
44
|
-
background: linear-gradient(235deg, rgba(255, 255, 255, 0.40) 29.48%, rgba(255, 255, 255, 0.49) 96.53%);
|
|
45
|
-
border-radius: 0 5px 5px 0;
|
|
46
|
-
width: 3px;
|
|
47
|
-
height: 50px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.phone {
|
|
52
|
-
width: 215px;
|
|
53
|
-
height: 433px;
|
|
54
|
-
|
|
55
|
-
border-radius: 24px;
|
|
56
|
-
border: 1px solid rgba(239, 239, 239, 0.28);
|
|
57
|
-
background: linear-gradient(235deg, rgba(255, 255, 255, 0.40) 29.48%, rgba(255, 255, 255, 0.00) 96.53%);
|
|
58
|
-
backdrop-filter: blur(12px);
|
|
59
|
-
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
align-items: center;
|
|
63
|
-
|
|
64
|
-
.screen {
|
|
65
|
-
width: 195px;
|
|
66
|
-
height: 416px;
|
|
67
|
-
border-radius: 18px;
|
|
68
|
-
background: #2261EB;
|
|
69
|
-
|
|
70
|
-
.screen-shine {
|
|
71
|
-
width: 195px;
|
|
72
|
-
height: 416px;
|
|
73
|
-
|
|
74
|
-
border-radius: 18px;
|
|
75
|
-
background: linear-gradient(155deg, rgba(255, 255, 255, 0.25) 0.68%, rgba(255, 255, 255, 0.00) 38.68%);
|
|
76
|
-
background-blend-mode: screen;
|
|
77
|
-
|
|
78
|
-
display: flex;
|
|
79
|
-
flex-direction: column;
|
|
80
|
-
align-items: center;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
.system-topbar {
|
|
84
|
-
width: 100%;
|
|
85
|
-
height: 16px;
|
|
86
|
-
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-wrap: nowrap;
|
|
89
|
-
justify-content: center;
|
|
90
|
-
align-items: center;
|
|
91
|
-
|
|
92
|
-
.status {
|
|
93
|
-
margin-top: 5px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.camera {
|
|
97
|
-
height: 16px;
|
|
98
|
-
width: 80px;
|
|
99
|
-
position: absolute;
|
|
100
|
-
border-radius: 0 0 10px 10px;
|
|
101
|
-
background: linear-gradient(155deg, rgba(255, 255, 255, 0.25) 0.68%, rgba(255, 255, 255, 0.175) 38.68%);
|
|
102
|
-
|
|
103
|
-
display: flex;
|
|
104
|
-
justify-content: center;
|
|
105
|
-
align-items: center;
|
|
106
|
-
gap: 3px;
|
|
107
|
-
|
|
108
|
-
.aperture,
|
|
109
|
-
.sound {
|
|
110
|
-
opacity: 0.7;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.sound {
|
|
114
|
-
width: 30px;
|
|
115
|
-
height: 4px;
|
|
116
|
-
background: black;
|
|
117
|
-
border-radius: 3px;
|
|
118
|
-
margin-left: 5px;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.aperture {
|
|
122
|
-
width: 4px;
|
|
123
|
-
height: 4px;
|
|
124
|
-
background: black;
|
|
125
|
-
border-radius: 100%;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.app-topbar {
|
|
131
|
-
width: 100%;
|
|
132
|
-
height: 50px;
|
|
133
|
-
padding: 0 8px;
|
|
134
|
-
display: flex;
|
|
135
|
-
justify-content: space-between;
|
|
136
|
-
align-items: center;
|
|
137
|
-
|
|
138
|
-
.left,
|
|
139
|
-
.right {
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-wrap: nowrap;
|
|
142
|
-
align-items: center;
|
|
143
|
-
gap: 7px;
|
|
144
|
-
font-size: 9px;
|
|
145
|
-
font-weight: 600;
|
|
146
|
-
color: var(--neutral100);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.app-background {
|
|
151
|
-
width: 180px;
|
|
152
|
-
height: 325px;
|
|
153
|
-
background: white;
|
|
154
|
-
border-radius: 16px;
|
|
155
|
-
padding: 16px;
|
|
156
|
-
|
|
157
|
-
display: flex;
|
|
158
|
-
flex-direction: column;
|
|
159
|
-
|
|
160
|
-
.exercise {
|
|
161
|
-
color: var(--neutral600);
|
|
162
|
-
font-weight: 600;
|
|
163
|
-
font-size: 10px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.gif-wrapper {
|
|
167
|
-
display: flex;
|
|
168
|
-
flex-wrap: nowrap;
|
|
169
|
-
align-items: center;
|
|
170
|
-
height: 150px;
|
|
171
|
-
width: 100%;
|
|
172
|
-
|
|
173
|
-
.series {
|
|
174
|
-
width: 18px;
|
|
175
|
-
height: 80px;
|
|
176
|
-
display: flex;
|
|
177
|
-
flex-direction: column;
|
|
178
|
-
align-items: center;
|
|
179
|
-
/* background-color: red; */
|
|
180
|
-
|
|
181
|
-
.series-ball,
|
|
182
|
-
.green-ball {
|
|
183
|
-
width: 18px;
|
|
184
|
-
height: 18px;
|
|
185
|
-
border-radius: 50%;
|
|
186
|
-
|
|
187
|
-
display: flex;
|
|
188
|
-
flex-wrap: nowrap;
|
|
189
|
-
justify-content: center;
|
|
190
|
-
align-items: center;
|
|
191
|
-
|
|
192
|
-
font-size: 10px;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.series-ball {
|
|
196
|
-
border: var(--neutral200) solid 1px;
|
|
197
|
-
color: var(--neutral200);
|
|
198
|
-
transition: border 0.5s, color 0.5s;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.green-ball {
|
|
202
|
-
background: var(--auxiliary-green);
|
|
203
|
-
color: white;
|
|
204
|
-
transition: border 0.5s, color 0.5s, background 0.5s;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.series-line {
|
|
208
|
-
width: 1px;
|
|
209
|
-
height: 12px;
|
|
210
|
-
background: var(--neutral200);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.series-rest-wrapper {
|
|
216
|
-
display: flex;
|
|
217
|
-
flex-wrap: nowrap;
|
|
218
|
-
justify-content: space-between;
|
|
219
|
-
|
|
220
|
-
font-size: 10px;
|
|
221
|
-
color: var(--neutral600);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.progress-bar,
|
|
225
|
-
.progress {
|
|
226
|
-
height: 7px;
|
|
227
|
-
border-radius: 7px;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.progress-bar {
|
|
231
|
-
width: 100%;
|
|
232
|
-
margin-top: 12px;
|
|
233
|
-
background-color: var(--neutral200);
|
|
234
|
-
|
|
235
|
-
.progress {
|
|
236
|
-
background-color: var(--light500);
|
|
237
|
-
animation: expandWidth 3s ease-in-out infinite;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.rest-weight-wrapper {
|
|
242
|
-
margin-top: 30px;
|
|
243
|
-
display: flex;
|
|
244
|
-
flex-wrap: nowrap;
|
|
245
|
-
justify-content: space-between;
|
|
246
|
-
align-items: center;
|
|
247
|
-
color: var(--neutral600);
|
|
248
|
-
font-size: 6px;
|
|
249
|
-
|
|
250
|
-
.separator {
|
|
251
|
-
height: 25px;
|
|
252
|
-
width: 1px;
|
|
253
|
-
background: var(--light500);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.rest,
|
|
257
|
-
.weight {
|
|
258
|
-
display: flex;
|
|
259
|
-
flex-direction: column;
|
|
260
|
-
align-items: center;
|
|
261
|
-
width: 100%;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.title {
|
|
265
|
-
font-size: 9px;
|
|
266
|
-
font-weight: 600;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.exercise-buttons {
|
|
271
|
-
margin-top: 10px;
|
|
272
|
-
height: 30px;
|
|
273
|
-
width: 100%;
|
|
274
|
-
/* background-color: red; */
|
|
275
|
-
|
|
276
|
-
display: flex;
|
|
277
|
-
flex-wrap: nowrap;
|
|
278
|
-
justify-content: flex-end;
|
|
279
|
-
align-items: center;
|
|
280
|
-
gap: 5px;
|
|
281
|
-
|
|
282
|
-
.muscles,
|
|
283
|
-
.amplify {
|
|
284
|
-
display: flex;
|
|
285
|
-
flex-wrap: nowrap;
|
|
286
|
-
justify-content: center;
|
|
287
|
-
align-items: center;
|
|
288
|
-
gap: 3px;
|
|
289
|
-
|
|
290
|
-
width: 55px;
|
|
291
|
-
height: 23px;
|
|
292
|
-
border-radius: 3px;
|
|
293
|
-
border: 1px solid var(--neutral200);
|
|
294
|
-
color: var(--neutral600);
|
|
295
|
-
font-weight: 600;
|
|
296
|
-
font-size: 6px;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.home-indicator {
|
|
302
|
-
width: 48px;
|
|
303
|
-
height: 3px;
|
|
304
|
-
border-radius: 3px;
|
|
305
|
-
background: var(--light500);
|
|
306
|
-
opacity: 0.9;
|
|
307
|
-
margin-top: 18px;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
@keyframes expandWidth {
|
|
315
|
-
from {
|
|
316
|
-
width: 0%;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
to {
|
|
320
|
-
width: 100%;
|
|
321
|
-
}
|
|
322
|
-
}
|