Skip to content

Commit

Permalink
fix: fixes pointer-events on HTML files
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshnirmalya committed Dec 31, 2020
1 parent 6c67fda commit 3e6c2d6
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Box } from "@chakra-ui/react";
import FeaturesSectionView from "components/views/sections/features";
import FooterSectionView from "components/views/sections/footer";
import HeroSectionView from "components/views/sections/hero";
Expand Down Expand Up @@ -101,27 +100,22 @@ const Iframe: FC<IProps> = ({ pageId, page }) => {
style={{
width: "100%",
height: "100%",
pointerEvents: "none",
}}
initialContent='
<!DOCTYPE html>
<html>
<head>
<link
href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"
rel="stylesheet"
/>
<style>
a {
pointer-events: none;
transition: none;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
'
<!DOCTYPE html>
<html>
<head>
<link
href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css"
rel="stylesheet"
/>
</head>
<body>
<div></div>
</body>
</html>
'
>
<FrameContextConsumer>
{() => viewNode(page.template)}
Expand Down
4 changes: 2 additions & 2 deletions packages/builder/data/sections/footer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const footerSectionData = (mode: "light" | "dark") => ({
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions packages/builder/data/sections/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const navbarSectionData = (mode: "light" | "dark") => ({
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down
16 changes: 8 additions & 8 deletions packages/builder/data/site/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const darkModeSiteData = {
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down Expand Up @@ -166,11 +166,11 @@ const darkModeSiteData = {
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down Expand Up @@ -201,11 +201,11 @@ const darkModeSiteData = {
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down Expand Up @@ -246,11 +246,11 @@ const darkModeSiteData = {
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down
16 changes: 8 additions & 8 deletions packages/builder/data/site/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const lightModeSiteData = {
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down Expand Up @@ -166,11 +166,11 @@ const lightModeSiteData = {
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down Expand Up @@ -201,11 +201,11 @@ const lightModeSiteData = {
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down Expand Up @@ -246,11 +246,11 @@ const lightModeSiteData = {
links: [
{
label: "Home",
link: "/index.html",
link: "index.html",
},
{
label: "About",
link: "/about.html",
link: "about.html",
},
],
},
Expand Down

0 comments on commit 3e6c2d6

Please sign in to comment.