-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fallback page for disabled js in browser (#534)
* Add fallback page in case when js is disabled in browser * fix: adjust fallback UI and UPWARD settings
- Loading branch information
1 parent
9a65584
commit 137445f
Showing
7 changed files
with
68 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{{> templates/doctype-and-head-start}} | ||
{{> templates/js-unavailable}} | ||
<title>Venia</title> | ||
</head> | ||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<link href="https://fonts.googleapis.com/css?family=Muli:300" rel="stylesheet"> | ||
<noscript> | ||
<div class="container"> | ||
<img class="veniaClosed" src="./veniaClosed.png"> | ||
<div class="textBlock"> | ||
<h2 class="header">Oops! JavaScript is disabled</h2> | ||
<div class="main"> | ||
<div class="textTile1"> | ||
To continue using the Venia store | ||
</div> | ||
<a class="enableLink" href="https://www.enable-javascript.com/">enable JavaScript in your browser</a> | ||
</div> | ||
</div> | ||
</div> | ||
<style> | ||
#root { | ||
display: none; | ||
} | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding-top: 2.5rem; | ||
font-family: Muli, -apple-system, BlinkMacSystemFont, sans-serif; | ||
} | ||
.veniaClosed { | ||
width: 7.5625rem; | ||
} | ||
.textBlock { | ||
width: 18.25rem; | ||
} | ||
.textTile1 { | ||
white-space: nowrap; | ||
} | ||
.header { | ||
font-size: 1.25rem; | ||
margin: 2.125rem 0 2.5rem; | ||
} | ||
.main { | ||
font-size: 1rem; | ||
font-weight: 300; | ||
line-height: 1.75rem; | ||
} | ||
.header, .main, .enableLink { | ||
text-align: center; | ||
color: #444444; | ||
} | ||
</style> | ||
</noscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters