@documental-xyz/core 0.1.0
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/README.md +424 -0
- package/integration.ts +113 -0
- package/package.json +83 -0
- package/src/admin/admin.astro +29 -0
- package/src/assets/scripts/App.js +70 -0
- package/src/assets/scripts/EnteringAnimations.js +34 -0
- package/src/assets/scripts/MapBoxHandler.js +680 -0
- package/src/assets/scripts/ScrollProgressionBar.js +24 -0
- package/src/assets/scripts/utils/ScrollObserver.js +166 -0
- package/src/assets/styles/config/_breakpoints.scss +37 -0
- package/src/assets/styles/config/_colors.scss +8 -0
- package/src/assets/styles/config/_config.scss +5 -0
- package/src/assets/styles/config/_functions.scss +90 -0
- package/src/assets/styles/config/_grrr.configs.scss +7 -0
- package/src/assets/styles/config/_mixins.scss +207 -0
- package/src/assets/styles/config/_type.scss +175 -0
- package/src/assets/styles/config/_vars.scss +16 -0
- package/src/assets/styles/globals/_content.scss +47 -0
- package/src/assets/styles/globals/_grrr.scss +18 -0
- package/src/assets/styles/globals/_html.scss +25 -0
- package/src/assets/styles/globals/_lists.scss +19 -0
- package/src/assets/styles/globals/_map-anchors.scss +32 -0
- package/src/assets/styles/globals/_reset.scss +240 -0
- package/src/assets/styles/globals/_reveal-animations.scss +104 -0
- package/src/assets/styles/globals/_root.scss +6 -0
- package/src/assets/styles/globals/_scroll-progression-bar.scss +8 -0
- package/src/assets/styles/main.scss +17 -0
- package/src/assets/styles/utils/.gitkeep +0 -0
- package/src/assets/styles/utils/grrr/_grrr.scss +433 -0
- package/src/assets/styles/utils/list-styles/_list-styles.scss +190 -0
- package/src/components/AnimationToggle.astro +19 -0
- package/src/components/BigNumbers.astro +83 -0
- package/src/components/Button.astro +49 -0
- package/src/components/Caption.astro +15 -0
- package/src/components/Card.astro +68 -0
- package/src/components/Cards.astro +66 -0
- package/src/components/CardsCall.astro +125 -0
- package/src/components/ChartBar.astro +217 -0
- package/src/components/ChartPercentage.astro +137 -0
- package/src/components/Column.astro +54 -0
- package/src/components/ColumnSticky.astro +129 -0
- package/src/components/Columns.astro +139 -0
- package/src/components/Compare.astro +266 -0
- package/src/components/Cta.astro +242 -0
- package/src/components/Gallery.astro +594 -0
- package/src/components/Group.astro +140 -0
- package/src/components/HtmlEmbed.astro +98 -0
- package/src/components/ImageBlock.astro +134 -0
- package/src/components/InnerColumns.astro +54 -0
- package/src/components/LogosGroup.astro +102 -0
- package/src/components/Map.astro +321 -0
- package/src/components/MapBox.astro +96 -0
- package/src/components/MapView.astro +30 -0
- package/src/components/Menu.astro +278 -0
- package/src/components/Pullquote.astro +46 -0
- package/src/components/Slider.astro +223 -0
- package/src/components/Spacer.astro +25 -0
- package/src/components/Text.astro +173 -0
- package/src/components/TextPlaceholder.astro +98 -0
- package/src/components/Timeline.astro +73 -0
- package/src/components/TimelineBullet.astro +67 -0
- package/src/components/VideoEmbed.astro +99 -0
- package/src/content/loader.ts +29 -0
- package/src/content/pages/alter-ameacada.md +80 -0
- package/src/content/pages/expulsions.md +1447 -0
- package/src/content/pages/home.md +346 -0
- package/src/content/pages/nhanderekoa-studio-autonoma.md +3113 -0
- package/src/content/pages/nhanderekoa-terra-ind/303/255gena-jaragu/303/241.md +3806 -0
- package/src/content/pages/nova-landing-page.md +546 -0
- package/src/content/pages/territ/303/263rios-de-exce/303/247/303/243o.md +2199 -0
- package/src/content/pages/teste-alter-do-chao.md +955 -0
- package/src/content/pages/teste-layout.md +1484 -0
- package/src/content/pages/thiago.md +93 -0
- package/src/content/schema/blog.ts +11 -0
- package/src/content/schema/geostorys.ts +13 -0
- package/src/content/schema/index.ts +3 -0
- package/src/content/schema/pages.ts +494 -0
- package/src/content.config.ts +49 -0
- package/src/env.d.ts +1 -0
- package/src/integration/override-aliases.ts +67 -0
- package/src/layouts/components/ButtonLayout.astro +8 -0
- package/src/layouts/components/CardLayout.astro +8 -0
- package/src/layouts/components/CardsCallLayout.astro +26 -0
- package/src/layouts/components/CardsLayout.astro +14 -0
- package/src/layouts/components/ChartBarLayout.astro +21 -0
- package/src/layouts/components/ChartPercentageLayout.astro +17 -0
- package/src/layouts/components/ColumnLayout.astro +11 -0
- package/src/layouts/components/ColumnStickyLayout.astro +10 -0
- package/src/layouts/components/ColumnsLayout.astro +13 -0
- package/src/layouts/components/CompareLayout.astro +22 -0
- package/src/layouts/components/CtaLayout.astro +91 -0
- package/src/layouts/components/GalleryLayout.astro +24 -0
- package/src/layouts/components/GroupLayout.astro +53 -0
- package/src/layouts/components/HtmlEmbedLayout.astro +18 -0
- package/src/layouts/components/ImageBlockLayout.astro +20 -0
- package/src/layouts/components/InnerColumnsLayout.astro +14 -0
- package/src/layouts/components/LogosGroupLayout.astro +22 -0
- package/src/layouts/components/MapLayout.astro +41 -0
- package/src/layouts/components/MapViewLayout.astro +8 -0
- package/src/layouts/components/MapboxLayout.astro +248 -0
- package/src/layouts/components/PullquoteLayout.astro +13 -0
- package/src/layouts/components/SliderLayout.astro +18 -0
- package/src/layouts/components/SpacerLayout.astro +8 -0
- package/src/layouts/components/TextLayout.astro +17 -0
- package/src/layouts/components/TextPlaceholderLayout.astro +7 -0
- package/src/layouts/components/TimelineBulletLayout.astro +14 -0
- package/src/layouts/components/TimelineLayout.astro +10 -0
- package/src/layouts/components/VideoEmbedLayout.astro +28 -0
- package/src/layouts/pages/Layout.astro +90 -0
- package/src/layouts/pages/PageLayout.astro +200 -0
- package/src/lib/collections.ts +1 -0
- package/src/routes/[slug].astro +17 -0
- package/src/routes/index.astro +5 -0
- package/src/vite/yaml-merge-plugin.ts +234 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
import Caption from "./Caption.astro";
|
|
3
|
+
|
|
4
|
+
const { wide } = Astro.props;
|
|
5
|
+
//wide recebe booleano
|
|
6
|
+
|
|
7
|
+
const hasCaption = Astro.slots.has("caption");
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<figure class:list={["video-embed", { "video-embed--wide": wide }]}>
|
|
11
|
+
<div class="reveal--fadeInUp">
|
|
12
|
+
<slot />
|
|
13
|
+
{
|
|
14
|
+
hasCaption && (
|
|
15
|
+
<figcaption>
|
|
16
|
+
<Caption><slot name="caption" /></Caption>
|
|
17
|
+
</figcaption>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
</div>
|
|
21
|
+
</figure>
|
|
22
|
+
|
|
23
|
+
<style lang="scss">
|
|
24
|
+
@use "../assets/styles/config/config" as *;
|
|
25
|
+
@use "../assets/styles/utils/grrr/grrr" as *;
|
|
26
|
+
|
|
27
|
+
.video-embed {
|
|
28
|
+
position: relative;
|
|
29
|
+
|
|
30
|
+
&:not(:first-child),
|
|
31
|
+
:global(+ *:not(.column)),
|
|
32
|
+
:global(.animation-disabled:not(:first-child) >) & {
|
|
33
|
+
margin-top: var(--mt-m);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:global(.group__content >) & > div,
|
|
37
|
+
:global(.group__content > .animation-disabled >) & > div {
|
|
38
|
+
@extend %grrr--board;
|
|
39
|
+
|
|
40
|
+
:global(iframe) {
|
|
41
|
+
grid-column: content;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
figcaption {
|
|
45
|
+
grid-column: content;
|
|
46
|
+
|
|
47
|
+
@include media-break-up(x) {
|
|
48
|
+
grid-column: board-start 2/board-end 11;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:global(.group__content >) &--wide div,
|
|
54
|
+
:global(.group__content > .animation-disabled >) &--wide div {
|
|
55
|
+
:global(iframe) {
|
|
56
|
+
grid-column: full;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
:global(iframe) {
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: auto;
|
|
64
|
+
display: block;
|
|
65
|
+
aspect-ratio: 16 / 9;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&__caption {
|
|
69
|
+
@include type('b-s');
|
|
70
|
+
display: block;
|
|
71
|
+
margin-top: 20px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:global(.column .video-embed--wide) {
|
|
76
|
+
width: grrr-cols-size(10);
|
|
77
|
+
transform: translateX(calc(-1 * grrr-cols-size(2, 1)));
|
|
78
|
+
|
|
79
|
+
@include media-break-down(xl) {
|
|
80
|
+
transform: translateX(calc(-1 * ((100vw - 657px) / 2) + grrr-cols-size(1, 1) + var(--atnl-margin)));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@include media-break-down(l) {
|
|
84
|
+
width: calc(100% + var(--atnl-margin) * 2);
|
|
85
|
+
transform: translateX(calc(-1 * var(--atnl-margin)));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@include media-break-down(m) {
|
|
89
|
+
:global(.caption) {
|
|
90
|
+
padding-inline: var(--atnl-margin);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&,
|
|
95
|
+
:global(+ *) {
|
|
96
|
+
margin-top: var(--mt-l);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
</style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { glob } from 'astro/loaders';
|
|
2
|
+
import { pagesSchema, blogSchema, geoStorySchema } from './schema';
|
|
3
|
+
|
|
4
|
+
export { pagesSchema, blogSchema, geoStorySchema };
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Create a glob loader for the pages collection.
|
|
8
|
+
*
|
|
9
|
+
* `base` is resolved against the CONSUMER's CWD (verified in Wave 0 POC, T1),
|
|
10
|
+
* so a starter project can call `createPagesLoader({ base: './pages' })` and
|
|
11
|
+
* have it read the starter's own `./pages/` directory.
|
|
12
|
+
*
|
|
13
|
+
* Pass an optional `generateId` override to customise id derivation
|
|
14
|
+
* (e.g. the test-harness non-ASCII filename fix from T4).
|
|
15
|
+
*/
|
|
16
|
+
export function createPagesLoader({
|
|
17
|
+
base,
|
|
18
|
+
generateId,
|
|
19
|
+
}: {
|
|
20
|
+
base: string;
|
|
21
|
+
generateId?: (opts: any) => string;
|
|
22
|
+
}) {
|
|
23
|
+
return glob({
|
|
24
|
+
pattern: '**/*.md',
|
|
25
|
+
base,
|
|
26
|
+
// pass through generateId if provided (T4's non-ASCII fix uses this)
|
|
27
|
+
...(generateId ? { generateId } : {}),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Alter do chao
|
|
3
|
+
slug: alter-ameacada
|
|
4
|
+
pageSettings:
|
|
5
|
+
language: pt-BR
|
|
6
|
+
link_pt_br: /alter-ameacada
|
|
7
|
+
link_en: /alter-ameacada-en
|
|
8
|
+
link_es: /alter-ameacada-es
|
|
9
|
+
direction: left
|
|
10
|
+
seoTitle: ''
|
|
11
|
+
seoDescription: ''
|
|
12
|
+
animations: enable_all
|
|
13
|
+
pageTheme:
|
|
14
|
+
primaryColor: '#000009'
|
|
15
|
+
secondaryColor: '#f0ead9'
|
|
16
|
+
highlightColor: '#006949'
|
|
17
|
+
auxiliaryColor: '#6670ff'
|
|
18
|
+
displayFont: ''
|
|
19
|
+
textFont: ''
|
|
20
|
+
spacingPatterns:
|
|
21
|
+
- name: Teste
|
|
22
|
+
mobile: '10'
|
|
23
|
+
tablet: '11'
|
|
24
|
+
desktop: '12'
|
|
25
|
+
mapbox:
|
|
26
|
+
columnAlign: left
|
|
27
|
+
floatingText: false
|
|
28
|
+
style: mapbox://styles/comborari/ckr4wi3k80fpl17qo34th6kk2
|
|
29
|
+
center:
|
|
30
|
+
lng: -54.875
|
|
31
|
+
lat: -2.53
|
|
32
|
+
zoom: 1.1
|
|
33
|
+
bearing: 0
|
|
34
|
+
pitch: 0
|
|
35
|
+
layers: []
|
|
36
|
+
token: pk.eyJ1IjoiY29tYm9yYXJpIiwiYSI6ImNrcjR3OWczMjBhaWEyeHIyaWhwMnUzNHcifQ.Yv7o7kj1ImyC9Rn-egF0TQ
|
|
37
|
+
views:
|
|
38
|
+
- id: view_0
|
|
39
|
+
center:
|
|
40
|
+
lng: -58.911
|
|
41
|
+
lat: -6.315
|
|
42
|
+
duration: 4500
|
|
43
|
+
zoom: 4
|
|
44
|
+
bearing: 0
|
|
45
|
+
pitch: 0
|
|
46
|
+
mobile:
|
|
47
|
+
zoom: 3.5
|
|
48
|
+
captions:
|
|
49
|
+
title: false
|
|
50
|
+
notes: false
|
|
51
|
+
items:
|
|
52
|
+
- icon: <span class="material-symbols-outlined fill" style="color:white">show_chart</span>
|
|
53
|
+
text: Brazil's Legal Amazon
|
|
54
|
+
layers:
|
|
55
|
+
- amazonialegal
|
|
56
|
+
mapView: ''
|
|
57
|
+
components:
|
|
58
|
+
- type: Group
|
|
59
|
+
shortTitle: '-'
|
|
60
|
+
longTitle: '-'
|
|
61
|
+
description: ''
|
|
62
|
+
showInMenu: false
|
|
63
|
+
animations: false
|
|
64
|
+
id: '1'
|
|
65
|
+
layout: default
|
|
66
|
+
txtColor: Secondary
|
|
67
|
+
customTxtColor: ''
|
|
68
|
+
bgColor: Primary
|
|
69
|
+
customBgColor: ''
|
|
70
|
+
backgroundMedia: []
|
|
71
|
+
overlay: dark
|
|
72
|
+
components:
|
|
73
|
+
- type: HtmlEmbed
|
|
74
|
+
wideHtml: false
|
|
75
|
+
htmlCode: |-
|
|
76
|
+
<script>
|
|
77
|
+
window.location.href = "https://v1.documental.xyz/pt/alter-ameacada";
|
|
78
|
+
</script>
|
|
79
|
+
htmlCaption: ''
|
|
80
|
+
---
|