ywana-core8 0.1.64 → 0.1.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/site/site.css CHANGED
@@ -124,6 +124,12 @@
124
124
  opacity: 1;
125
125
  }
126
126
 
127
+ .site-page-container.fullscreen {
128
+ position: static;
129
+ width: 100vw;
130
+ height: 100vh;
131
+ }
132
+
127
133
  .site-page-container.page-out {
128
134
  opacity: 0;
129
135
  }
package/src/site/site.js CHANGED
@@ -283,9 +283,10 @@ const SitePage = ({ children, init }) => {
283
283
 
284
284
  const allChildren = React.Children.toArray(children)
285
285
  const current = allChildren.find(child => child.props?.id === displayedPage)
286
+ const fullscreen = current?.props?.fullscreen
286
287
 
287
288
  return (
288
- <main className={`site-page-container ${isExiting ? 'page-out' : 'page-in'}`}>
289
+ <main className={`site-page-container ${isExiting ? 'page-out' : 'page-in'} ${fullscreen ? 'fullscreen' : ''}`}>
289
290
  {current}
290
291
  </main>
291
292
  )