@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.
Files changed (114) hide show
  1. package/README.md +424 -0
  2. package/integration.ts +113 -0
  3. package/package.json +83 -0
  4. package/src/admin/admin.astro +29 -0
  5. package/src/assets/scripts/App.js +70 -0
  6. package/src/assets/scripts/EnteringAnimations.js +34 -0
  7. package/src/assets/scripts/MapBoxHandler.js +680 -0
  8. package/src/assets/scripts/ScrollProgressionBar.js +24 -0
  9. package/src/assets/scripts/utils/ScrollObserver.js +166 -0
  10. package/src/assets/styles/config/_breakpoints.scss +37 -0
  11. package/src/assets/styles/config/_colors.scss +8 -0
  12. package/src/assets/styles/config/_config.scss +5 -0
  13. package/src/assets/styles/config/_functions.scss +90 -0
  14. package/src/assets/styles/config/_grrr.configs.scss +7 -0
  15. package/src/assets/styles/config/_mixins.scss +207 -0
  16. package/src/assets/styles/config/_type.scss +175 -0
  17. package/src/assets/styles/config/_vars.scss +16 -0
  18. package/src/assets/styles/globals/_content.scss +47 -0
  19. package/src/assets/styles/globals/_grrr.scss +18 -0
  20. package/src/assets/styles/globals/_html.scss +25 -0
  21. package/src/assets/styles/globals/_lists.scss +19 -0
  22. package/src/assets/styles/globals/_map-anchors.scss +32 -0
  23. package/src/assets/styles/globals/_reset.scss +240 -0
  24. package/src/assets/styles/globals/_reveal-animations.scss +104 -0
  25. package/src/assets/styles/globals/_root.scss +6 -0
  26. package/src/assets/styles/globals/_scroll-progression-bar.scss +8 -0
  27. package/src/assets/styles/main.scss +17 -0
  28. package/src/assets/styles/utils/.gitkeep +0 -0
  29. package/src/assets/styles/utils/grrr/_grrr.scss +433 -0
  30. package/src/assets/styles/utils/list-styles/_list-styles.scss +190 -0
  31. package/src/components/AnimationToggle.astro +19 -0
  32. package/src/components/BigNumbers.astro +83 -0
  33. package/src/components/Button.astro +49 -0
  34. package/src/components/Caption.astro +15 -0
  35. package/src/components/Card.astro +68 -0
  36. package/src/components/Cards.astro +66 -0
  37. package/src/components/CardsCall.astro +125 -0
  38. package/src/components/ChartBar.astro +217 -0
  39. package/src/components/ChartPercentage.astro +137 -0
  40. package/src/components/Column.astro +54 -0
  41. package/src/components/ColumnSticky.astro +129 -0
  42. package/src/components/Columns.astro +139 -0
  43. package/src/components/Compare.astro +266 -0
  44. package/src/components/Cta.astro +242 -0
  45. package/src/components/Gallery.astro +594 -0
  46. package/src/components/Group.astro +140 -0
  47. package/src/components/HtmlEmbed.astro +98 -0
  48. package/src/components/ImageBlock.astro +134 -0
  49. package/src/components/InnerColumns.astro +54 -0
  50. package/src/components/LogosGroup.astro +102 -0
  51. package/src/components/Map.astro +321 -0
  52. package/src/components/MapBox.astro +96 -0
  53. package/src/components/MapView.astro +30 -0
  54. package/src/components/Menu.astro +278 -0
  55. package/src/components/Pullquote.astro +46 -0
  56. package/src/components/Slider.astro +223 -0
  57. package/src/components/Spacer.astro +25 -0
  58. package/src/components/Text.astro +173 -0
  59. package/src/components/TextPlaceholder.astro +98 -0
  60. package/src/components/Timeline.astro +73 -0
  61. package/src/components/TimelineBullet.astro +67 -0
  62. package/src/components/VideoEmbed.astro +99 -0
  63. package/src/content/loader.ts +29 -0
  64. package/src/content/pages/alter-ameacada.md +80 -0
  65. package/src/content/pages/expulsions.md +1447 -0
  66. package/src/content/pages/home.md +346 -0
  67. package/src/content/pages/nhanderekoa-studio-autonoma.md +3113 -0
  68. package/src/content/pages/nhanderekoa-terra-ind/303/255gena-jaragu/303/241.md +3806 -0
  69. package/src/content/pages/nova-landing-page.md +546 -0
  70. package/src/content/pages/territ/303/263rios-de-exce/303/247/303/243o.md +2199 -0
  71. package/src/content/pages/teste-alter-do-chao.md +955 -0
  72. package/src/content/pages/teste-layout.md +1484 -0
  73. package/src/content/pages/thiago.md +93 -0
  74. package/src/content/schema/blog.ts +11 -0
  75. package/src/content/schema/geostorys.ts +13 -0
  76. package/src/content/schema/index.ts +3 -0
  77. package/src/content/schema/pages.ts +494 -0
  78. package/src/content.config.ts +49 -0
  79. package/src/env.d.ts +1 -0
  80. package/src/integration/override-aliases.ts +67 -0
  81. package/src/layouts/components/ButtonLayout.astro +8 -0
  82. package/src/layouts/components/CardLayout.astro +8 -0
  83. package/src/layouts/components/CardsCallLayout.astro +26 -0
  84. package/src/layouts/components/CardsLayout.astro +14 -0
  85. package/src/layouts/components/ChartBarLayout.astro +21 -0
  86. package/src/layouts/components/ChartPercentageLayout.astro +17 -0
  87. package/src/layouts/components/ColumnLayout.astro +11 -0
  88. package/src/layouts/components/ColumnStickyLayout.astro +10 -0
  89. package/src/layouts/components/ColumnsLayout.astro +13 -0
  90. package/src/layouts/components/CompareLayout.astro +22 -0
  91. package/src/layouts/components/CtaLayout.astro +91 -0
  92. package/src/layouts/components/GalleryLayout.astro +24 -0
  93. package/src/layouts/components/GroupLayout.astro +53 -0
  94. package/src/layouts/components/HtmlEmbedLayout.astro +18 -0
  95. package/src/layouts/components/ImageBlockLayout.astro +20 -0
  96. package/src/layouts/components/InnerColumnsLayout.astro +14 -0
  97. package/src/layouts/components/LogosGroupLayout.astro +22 -0
  98. package/src/layouts/components/MapLayout.astro +41 -0
  99. package/src/layouts/components/MapViewLayout.astro +8 -0
  100. package/src/layouts/components/MapboxLayout.astro +248 -0
  101. package/src/layouts/components/PullquoteLayout.astro +13 -0
  102. package/src/layouts/components/SliderLayout.astro +18 -0
  103. package/src/layouts/components/SpacerLayout.astro +8 -0
  104. package/src/layouts/components/TextLayout.astro +17 -0
  105. package/src/layouts/components/TextPlaceholderLayout.astro +7 -0
  106. package/src/layouts/components/TimelineBulletLayout.astro +14 -0
  107. package/src/layouts/components/TimelineLayout.astro +10 -0
  108. package/src/layouts/components/VideoEmbedLayout.astro +28 -0
  109. package/src/layouts/pages/Layout.astro +90 -0
  110. package/src/layouts/pages/PageLayout.astro +200 -0
  111. package/src/lib/collections.ts +1 -0
  112. package/src/routes/[slug].astro +17 -0
  113. package/src/routes/index.astro +5 -0
  114. package/src/vite/yaml-merge-plugin.ts +234 -0
@@ -0,0 +1,16 @@
1
+ $default_prefix: 'atnlbs';
2
+ $rt: '.rt';
3
+ $default_text_margin: 20px;
4
+ $default_vertical_spacer: 40px;
5
+ $default_transition: ease .3s;
6
+ $media_max_height: 81dvh;
7
+
8
+ // to use only in places where the content might respect user definitions
9
+ $clr-txt: var(--clr-txt, var(--clr-black));
10
+ $clr-txt-rgb: var(--clr-txt-rgb, var(--clr-black-rgb));
11
+ $clr-bg: var(--clr-bg, var(--clr-white));
12
+ $clr-bg-rgb: var(--clr-bg-rgb, var(--clr-white-rgb));
13
+ $clr-hl: var(--clr-hl, var(--clr-highlight));
14
+ $clr-hl-rgb: var(--clr-hl-rgb, var(--clr-highlight-rgb));
15
+ $clr-bg-hl: var(--clr-bg-hl, var(--clr--bg-highlight));
16
+ $clr-bg-hl-rgb: var(--clr-bg-hl-rgb, var(--clr--bg-highlight-rgb));
@@ -0,0 +1,47 @@
1
+
2
+ // &#{&}--post-type-page{ //Variation Page
3
+ // &:not(#{$content}--template-front-page){ //when we have further a template grid modification, you must deny it.
4
+ // @extend .grrr--fluid;
5
+ // --content-area: board-start 5 / board-end 11; //defines the default alignment for content inside the grid.
6
+ // }
7
+ // }
8
+ @mixin content{
9
+ $content: &; //use the variable content for nested child.
10
+ &{
11
+ @extend .grrr--content;
12
+ @include type('text');
13
+ grid-column: 1 / -1;
14
+ display: grid;
15
+ background-color: inherit;
16
+ color: inherit;
17
+
18
+ --content-area: content;
19
+ --content-size: #{grrr-cols-size(8)};
20
+
21
+ @include media-break-down('m'){
22
+ --content-size: calc( ( var(--atnl-col-responsive-size) * 4 ) + ( var(--atnl-gutter) * 3 ) );
23
+ }
24
+ }
25
+
26
+ .backend &{
27
+ min-height: 80px;
28
+ }
29
+
30
+ .frontend &{
31
+ padding-block: 80px;
32
+ }
33
+
34
+ &#{&}--template-front-page{
35
+ @extend .grrr--board;
36
+ --content-area: board-start 5 / board-end 11;
37
+
38
+ @include media-break-down('m'){
39
+ --content-area: content;
40
+
41
+ }
42
+ }
43
+ }
44
+
45
+ .content {
46
+ @include content;
47
+ }
@@ -0,0 +1,18 @@
1
+ @use '../utils/grrr/grrr' as *;
2
+
3
+ %grrr--board{
4
+ @include grrr();
5
+ }
6
+
7
+ %grrr--fluid{
8
+ @include grrr('fluid');
9
+ }
10
+
11
+ %grrr--content{
12
+ @include media-grrr-up(6,true){
13
+ @include grrr-content('board', $content-start: 4, $content-end: 9);
14
+ }
15
+ @include media-grrr-down(6,true){
16
+ @include grrr();
17
+ }
18
+ }
@@ -0,0 +1,25 @@
1
+ @use '../config/config' as *;
2
+
3
+ html{
4
+ scroll-behavior: smooth;
5
+ overflow-x: hidden;
6
+ width: 100%;
7
+ height: 100%;
8
+ max-width: 100dvw;
9
+
10
+ &:has(.gallery-modal[aria-hidden="false"]) {
11
+ overflow: hidden;
12
+ }
13
+ }
14
+
15
+ body{
16
+ @include type('b-m');
17
+ color: $clr-txt;
18
+ background-color: $clr-bg;
19
+ max-width: 100vw;
20
+ box-sizing: border-box;
21
+
22
+ &.debug-map-transitions .map__view {
23
+ opacity: 1;
24
+ }
25
+ }
@@ -0,0 +1,19 @@
1
+ @use "../utils/list-styles/list-styles" as *;
2
+
3
+ .text {
4
+ > ul {
5
+ @extend .atnl-ul;
6
+
7
+ li + li {
8
+ margin-top: 8px;
9
+ }
10
+ }
11
+
12
+ > ol {
13
+ @extend .atnl-ol;
14
+
15
+ li + li {
16
+ margin-top: 8px;
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,32 @@
1
+ [data-map-anchor]{
2
+ position: absolute;
3
+ left:20px;
4
+ opacity: 0;
5
+ border-bottom: 1px solid yellow;
6
+ border-left: 1px dashed yellow;
7
+ color: black;
8
+ max-width: 200px;
9
+ font-size: 12px;
10
+ line-height: 14px;
11
+ span{
12
+ background-color: rgba(255, 255, 0, 0.9);
13
+ }
14
+ }
15
+
16
+ [data-map-anchor].odd{
17
+ border-color: yellowgreen;
18
+ span{
19
+ background-color: rgba(153, 205, 50, 0.9);;
20
+ }
21
+ }
22
+
23
+ [data-map-displacer]{
24
+ border-top: 1px solid magenta;
25
+ height: 1px;
26
+ opacity: 0;
27
+ }
28
+
29
+ .debug-map-transitions [data-map-anchor],
30
+ .debug-map-transitions [data-map-displacer]{
31
+ opacity: 1;
32
+ }
@@ -0,0 +1,240 @@
1
+ html {
2
+ -ms-text-size-adjust: 100%;
3
+ -webkit-text-size-adjust: 100%;
4
+ font-size: 100%;
5
+ }
6
+
7
+ html,
8
+ body {
9
+ font-size: 100%;
10
+ margin: 0;
11
+ width: 100%;
12
+ }
13
+
14
+ * {
15
+ -webkit-font-smoothing: antialiased;
16
+ -moz-osx-font-smoothing: grayscale;
17
+ text-rendering: optimizeLegibility;
18
+ }
19
+
20
+ article,
21
+ aside,
22
+ details,
23
+ figcaption,
24
+ figure,
25
+ footer,
26
+ header,
27
+ hgroup,
28
+ main,
29
+ menu,
30
+ nav,
31
+ section,
32
+ summary {
33
+ display: block;
34
+ margin: 0;
35
+ }
36
+
37
+ audio,
38
+ canvas,
39
+ progress,
40
+ video {
41
+ display: inline-block;
42
+ vertical-align: baseline;
43
+ }
44
+
45
+ audio:not([controls]) {
46
+ display: none;
47
+ height: 0;
48
+ }
49
+
50
+ [hidden],
51
+ template {
52
+ display: none;
53
+ }
54
+
55
+ a {
56
+ background-color: transparent;
57
+ text-decoration: none;
58
+ }
59
+
60
+ a:active,
61
+ a:hover {
62
+ outline: 0;
63
+ }
64
+
65
+ abbr[title] {
66
+ border-bottom: 1px dotted;
67
+ }
68
+
69
+ b,
70
+ strong {
71
+ font-weight: bold;
72
+ }
73
+
74
+ dfn {
75
+ font-style: italic;
76
+ }
77
+
78
+ img {
79
+ display: block;
80
+ width: 100%;
81
+ height: auto;
82
+ border: 0;
83
+ }
84
+
85
+ img[class^='wp-image']{
86
+ display: inline-block;
87
+ }
88
+
89
+ svg:not(:root) {
90
+ overflow: hidden;
91
+ }
92
+
93
+ hr {
94
+ box-sizing: content-box;
95
+ height: 0;
96
+ }
97
+
98
+ pre {
99
+ overflow: auto;
100
+ }
101
+
102
+ code,
103
+ kbd,
104
+ pre,
105
+ samp {
106
+ font-family: monospace, monospace;
107
+ }
108
+
109
+ button,
110
+ input,
111
+ optgroup,
112
+ select,
113
+ textarea {
114
+ color: inherit;
115
+ font: inherit;
116
+ letter-spacing: inherit;
117
+ word-spacing: inherit;
118
+ margin: 0;
119
+ }
120
+
121
+ button {
122
+ overflow: visible;
123
+ }
124
+
125
+ button,
126
+ select {
127
+ text-transform: none;
128
+ }
129
+
130
+ button,
131
+ html input[type='button'],
132
+ input[type='reset'],
133
+ input[type='submit'] {
134
+ appearance: button;
135
+ -webkit-appearance: button;
136
+ cursor: pointer;
137
+ }
138
+
139
+ button[disabled],
140
+ html input[disabled] {
141
+ cursor: default;
142
+ }
143
+
144
+ input[type='checkbox'],
145
+ input[type='radio'] {
146
+ box-sizing: border-box;
147
+ padding: 0;
148
+ }
149
+
150
+ input[type='number']::-webkit-inner-spin-button,
151
+ input[type='number']::-webkit-outer-spin-button {
152
+ height: auto;
153
+ }
154
+
155
+ input[type='search'] {
156
+ appearance: textfield;
157
+ -webkit-appearance: textfield;
158
+ -moz-box-sizing: content-box;
159
+ -webkit-box-sizing: content-box;
160
+ box-sizing: content-box;
161
+ }
162
+
163
+ input[type='search']::-webkit-search-cancel-button,
164
+ input[type='search']::-webkit-search-decoration {
165
+ appearance: none;
166
+ -webkit-appearance: none;
167
+ }
168
+
169
+ fieldset {
170
+ border: 1px solid #c0c0c0;
171
+ margin: 0 2px;
172
+ padding: 0.35em 0.625em 0.75em;
173
+ }
174
+
175
+ legend {
176
+ border: 0;
177
+ padding: 0;
178
+ }
179
+
180
+ table {
181
+ border-collapse: collapse;
182
+ border-spacing: 0;
183
+ }
184
+
185
+ td,
186
+ th {
187
+ padding: 0;
188
+ }
189
+
190
+ textarea {
191
+ overflow-x: none;
192
+ overflow-y: auto;
193
+ }
194
+
195
+ a,
196
+ a:visited,
197
+ a:focus,
198
+ a:active {
199
+ color: inherit;
200
+ text-decoration: none;
201
+ }
202
+
203
+ *,
204
+ *::before,
205
+ *::after {
206
+ -webkit-box-sizing: border-box;
207
+ -moz-box-sizing: border-box;
208
+ box-sizing: border-box;
209
+ font-size: inherit;
210
+ }
211
+
212
+ h1,
213
+ h2,
214
+ h3,
215
+ h4,
216
+ h5,
217
+ h6,
218
+ p,
219
+ a,
220
+ li,
221
+ ul {
222
+ margin: 0;
223
+ font-size: inherit;
224
+ }
225
+
226
+ ul,
227
+ ol {
228
+ list-style: none;
229
+ margin: 0;
230
+ padding: 0;
231
+ margin-block-start: 0;
232
+ margin-block-end: 0;
233
+ margin-inline-start: 0px;
234
+ margin-inline-end: 0px;
235
+ padding-inline-start: 0px;
236
+ counter-reset: listCounter calc(var(--listCounter, 1) - 1);
237
+ li {
238
+ counter-increment: listCounter;
239
+ }
240
+ }
@@ -0,0 +1,104 @@
1
+ $animations: fadeIn, fadeInUp, fadeInDown, fadeInLeft, zoomIn, curtainUp, curtainDown;
2
+
3
+ @each $anim in $animations {
4
+ .reveal {
5
+ &--#{$anim} {
6
+ opacity: 0;
7
+ visibility: hidden;
8
+
9
+ animation: $anim 1s ease forwards;
10
+ animation-play-state: paused;
11
+ }
12
+ }
13
+
14
+ .animation-disabled {
15
+ .reveal {
16
+ &--#{$anim} {
17
+ opacity: 1;
18
+ visibility: visible;
19
+
20
+ animation: none;
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ .reveal {
27
+ visibility: visible;
28
+ animation-play-state: running;
29
+ }
30
+
31
+ @keyframes fadeIn {
32
+ from {
33
+ opacity: 0;
34
+ }
35
+ to {
36
+ opacity: 1;
37
+ }
38
+ }
39
+
40
+ @keyframes fadeInUp {
41
+ from {
42
+ opacity: 0;
43
+ transform: translateY(50px);
44
+ }
45
+ to {
46
+ opacity: 1;
47
+ transform: translateY(0);
48
+ }
49
+ }
50
+
51
+ @keyframes fadeInDown {
52
+ from {
53
+ opacity: 0;
54
+ transform: translateY(-100px);
55
+ }
56
+ to {
57
+ opacity: 1;
58
+ transform: translateY(0);
59
+ }
60
+ }
61
+
62
+ @keyframes fadeInLeft {
63
+ from {
64
+ opacity: 0;
65
+ transform: translateX(-50px);
66
+ }
67
+ to {
68
+ opacity: 1;
69
+ transform: translateX(0);
70
+ }
71
+ }
72
+
73
+ @keyframes zoomIn {
74
+ from {
75
+ opacity: 0;
76
+ transform: scale(0.95);
77
+ }
78
+ to {
79
+ opacity: 1;
80
+ transform: scale(1);
81
+ }
82
+ }
83
+
84
+ @keyframes curtainUp {
85
+ 0% {
86
+ opacity: 0;
87
+ clip-path: inset(100% 0 0 0);
88
+ }
89
+ 100% {
90
+ opacity: 1;
91
+ clip-path: inset(0 0 0 0);
92
+ }
93
+ }
94
+
95
+ @keyframes curtainDown {
96
+ 0% {
97
+ opacity: 0;
98
+ clip-path: inset(0 0 100% 0);
99
+ }
100
+ 100% {
101
+ opacity: 1;
102
+ clip-path: inset(0 0 0 0);
103
+ }
104
+ }
@@ -0,0 +1,6 @@
1
+ @use '../config/config' as *;
2
+
3
+ :root{
4
+ @include print_colors_vars();
5
+ @include typeVars();
6
+ }
@@ -0,0 +1,8 @@
1
+ .scroll-progression-bar {
2
+ height: 8px;
3
+ position: fixed;
4
+ bottom: 0;
5
+ left: 0;
6
+ z-index: 9999;
7
+ background-color: var(--clr-hl);
8
+ }
@@ -0,0 +1,17 @@
1
+ // config
2
+ $context: 'frontend';
3
+ @forward './globals/grrr';
4
+
5
+ // // content block mixin
6
+ // @use 'globals/content';
7
+
8
+ // // base
9
+ @forward 'globals/reset';
10
+ @forward 'globals/root';
11
+ @forward 'globals/html';
12
+ @forward 'globals/lists';
13
+ @forward 'globals/map-anchors';
14
+ @forward 'globals/reveal-animations';
15
+ @forward 'globals/scroll-progression-bar';
16
+
17
+
File without changes