Skip to content

Commit

Permalink
Create demo publication for newsletter CTA. (#3589)
Browse files Browse the repository at this point in the history
* update runetime

* adding newsletter demo site

* merge conflicts

* revert stash

* text update

* add verification file

---------

Co-authored-by: justinchou-google <justinchou-google@users.noreply.github.com>
  • Loading branch information
justinchou-google and justinchou-google authored Oct 29, 2024
1 parent e8d1809 commit b575826
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demos/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
# limitations under the License.

# [START app_yaml]
runtime: nodejs14
runtime: nodejs20
instance_class: F4_1G
# [END app_yaml]
1 change: 1 addition & 0 deletions demos/public/googleed500e982279499d.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
google-site-verification: googleed500e982279499d.html
49 changes: 49 additions & 0 deletions demos/public/newsletter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible"
content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>Newsletter CTA - Swgjs Demos</title>
<link rel="shortcut icon"
href="images/favicon.png"
type="image/x-icon">

<link rel="stylesheet"
href="demos.css">

<script async
type="application/javascript"
src="/examples/sample-pub/redirect-to/swg-basic.js"></script>

<script>
(self.SWG_BASIC = self.SWG_BASIC || []).push(basicSubscriptions => {
basicSubscriptions.init({
type: "NewsArticle",
isPartOfType: ["Product"],
isPartOfProductId: "CAowvrHZCw:openaccess",
clientOptions: { theme: "dark", lang: "en" },
});
});
</script>
</head>

<body>
<div class="content">
<article>
<h2>Newsletter CTA</h2>

<p>
Macaroon chocolate wafer cake chocolate cake gummies soufflé lollipop pie. Cheesecake cotton
candy macaroon caramels pie.
</p>
</article>
</div>

<script src="demos.js"></script>
</body>

</html>

0 comments on commit b575826

Please sign in to comment.