Skip to content

Commit 8101275

Browse files
committed
Melhoria de estilos para navegação em dispositivos móveis
1 parent 84d0192 commit 8101275

File tree

19 files changed

+199
-48
lines changed

19 files changed

+199
-48
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Melhoria de estilos para navegação em dispositivos móveis. @ericof

frontend/packages/volto-pythonbrasil-site/src/components/Logo/Logo.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { useIntl } from 'react-intl';
22
import messages from '@plonegovbr/volto-pythonbrasil-site/messages';
33
import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
44
import LogoFullImage from './logo.svg';
5-
import LogoSlimImage from './logo-slim.svg';
65
import LogoDataImage from './logo-data.svg';
76

87
const LogoImg = ({ intl, logo }) => {
98
return (
109
<img
1110
src={logo}
11+
height={'140px'}
1212
alt={intl.formatMessage(messages.site)}
1313
title={intl.formatMessage(messages.site)}
1414
/>

frontend/packages/volto-pythonbrasil-site/src/config/blocks.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ declare module '@plone/types' {
2121
accordion: BlockConfigBase;
2222
gridCTA: BlockConfigBase;
2323
chamadaBlock: BlockConfigBase;
24+
slider: BlockConfigBase;
2425
}
2526
export interface BlockConfigBase {
2627
themes?: StyleDefinition[];
@@ -147,6 +148,9 @@ export default function install(config: ConfigType) {
147148
config.blocks.blocksConfig.image.schemaEnhancer =
148149
composeSchema(defaultStylingSchema);
149150

151+
// Configure Slider
152+
config.blocks.blocksConfig.slider.enableAutoPlay = true;
153+
150154
config.blocks.blocksConfig.accordion = {
151155
...config.blocks.blocksConfig.accordion,
152156
blocksConfig: {

frontend/packages/volto-pythonbrasil-site/src/theme/_main.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
@import 'components/login';
1111
@import 'components/presenter_category';
1212
@import 'components/presenter_view';
13+
@import 'components/session_view';
14+
@import 'components/sessionInfo';
1315
@import 'components/sponsor_view';
1416
@import 'blocks/accordion';
1517
@import 'blocks/description';
@@ -20,6 +22,8 @@
2022
@import 'blocks/gridCTA';
2123
@import 'blocks/heading';
2224
@import 'blocks/listing';
25+
@import 'blocks/search';
26+
@import 'blocks/slider';
2327
@import 'blocks/chamada';
2428
@import 'blocks/image';
2529
@import 'blocks/block_sponsorlevel';

frontend/packages/volto-pythonbrasil-site/src/theme/_root.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:root {
22
// Layout
3-
--narrow-container-width: 1024px;
3+
--narrow-container-width: 960px;
44
--default-container-width: 1024px;
55
--layout-container-width: 1440px;
66
// Theme

frontend/packages/volto-pythonbrasil-site/src/theme/_variables.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,38 @@ $color-block-change-vertical-spacing: $spacing-large !default;
171171
}
172172
}
173173
}
174+
175+
@mixin cardContainerSessionGrid() {
176+
border: 1px solid var(--theme-high-contrast-color);
177+
filter: drop-shadow(2px 2px var(--secondary-color));
178+
&:hover {
179+
border: 1px solid var(--theme-foreground-color);
180+
}
181+
.sessionTitle {
182+
.title {
183+
@include add(size, m);
184+
@include add(height, m);
185+
}
186+
}
187+
.sessionDescription {
188+
@include add(size, s);
189+
@include add(height, s);
190+
}
191+
.sessionHeader {
192+
justify-content: space-between;
193+
}
194+
.sessionBody {
195+
height: 45px;
196+
.presenters {
197+
@include add(size, xs);
198+
@include add(height, xs);
199+
.presenter {
200+
display: inline;
201+
text-decoration: none;
202+
@include add(size, xs);
203+
@include add(height, xs);
204+
@include add(weight, bold);
205+
}
206+
}
207+
}
208+
}

frontend/packages/volto-pythonbrasil-site/src/theme/blocks/_image.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#page-edit .blocks-form,
33
#page-document .blocks-group-wrapper {
44
.block.image {
5+
&.align.center {
6+
max-width: var(--default-container-width);
7+
margin-right: auto;
8+
margin-left: auto;
9+
}
510
&.align.full {
611
width: 100vw;
712
max-width: 100vw;

frontend/packages/volto-pythonbrasil-site/src/theme/blocks/_listing.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
}
2020
}
2121
&.grid {
22+
.card-container.session {
23+
@include cardContainerSessionGrid();
24+
}
2225
.presenterTile {
2326
.presenterImage {
2427
border-radius: 10%;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.block.search {
2+
&.grid {
3+
.listing-item {
4+
max-height: 450px;
5+
.card-container.session {
6+
@include cardContainerSessionGrid();
7+
}
8+
}
9+
}
10+
.searchBlock-container {
11+
.react-select__menu {
12+
z-index: 50;
13+
padding-left: $spacing-xsmall;
14+
border: 1px solid var(--border-color);
15+
background-color: var(--background-color) !important;
16+
filter: drop-shadow(2px 2px var(--secondary-color));
17+
}
18+
}
19+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
.block.slider {
2+
.slider-wrapper {
3+
.teaser-item-title {
4+
bottom: 20px;
5+
display: flex;
6+
width: 100%;
7+
flex-direction: column;
8+
padding-bottom: $spacing-xsmall;
9+
background: linear-gradient(
10+
180deg,
11+
rgba(255, 255, 255, 0) 0%,
12+
rgba(30, 30, 30, 70) 60%,
13+
rgba(0, 0, 0, 1) 100%
14+
);
15+
color: white;
16+
transform: unset;
17+
.title {
18+
width: 50%;
19+
h2 {
20+
@include add(size, 2xl);
21+
@include add(height, 2xl);
22+
}
23+
}
24+
p {
25+
width: 90%;
26+
}
27+
@media only screen and (max-width: $tablet-breakpoint) {
28+
min-height: 250px;
29+
padding-top: $spacing-xsmall;
30+
.title {
31+
width: 100%;
32+
h2 {
33+
@include add(size, l);
34+
@include add(height, l);
35+
}
36+
}
37+
p {
38+
display: none;
39+
}
40+
}
41+
&.has--slider--flagAlign--left {
42+
align-items: flex-start;
43+
}
44+
&.has--slider--flagAlign--right {
45+
align-items: flex-end;
46+
.title {
47+
text-align: right;
48+
}
49+
p {
50+
text-align: right;
51+
}
52+
@media only screen and (max-width: $tablet-breakpoint) {
53+
align-items: flex-start;
54+
.title {
55+
text-align: left;
56+
}
57+
}
58+
}
59+
}
60+
}
61+
}

0 commit comments

Comments
 (0)