Skip to content
This repository was archived by the owner on May 30, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
840 commits
Select commit Hold shift + click to select a range
134491b
feat(template-list): optional 4 column layout
rofe Apr 19, 2021
c48f761
Merge pull request #124 from adobe/issue-21a
rofe Apr 19, 2021
bdaa529
feat(martech): hide body on martech rush
davidnuescheler Apr 20, 2021
3b4a5f6
Merge pull request #19 from adobe/main
williambsm Apr 21, 2021
2fa9040
Merge pull request #125 from adobe/target-hide-body
davidnuescheler Apr 21, 2021
814c99e
fix(pricing): analytics for commitmentTypeSelected
williambsm Apr 21, 2021
af5d581
chore: use special version to test global metadata
tripodsan Apr 22, 2021
ec48de4
Merge pull request #126 from williambsm/main
rofe Apr 22, 2021
970fcef
chore: linting
rofe Apr 22, 2021
e556aa7
fix(404-page): 404 removed blank margin from footer and add css styling
So1ene Apr 26, 2021
b8cb719
Merge pull request #127 from williambsm/main
rofe Apr 26, 2021
1fbee2e
fix: disable templates temporarily (#128)
dominique-pfister Apr 27, 2021
7e71cf2
feat(metadata): initial inspector coverage code
davidnuescheler Apr 28, 2021
fb7b5d4
fix(webp): ensure correct url is used for browsers not supporting web…
kptdobe Apr 29, 2021
a004bd4
feat(block): hero animation
davidnuescheler Apr 29, 2021
8f1d898
chore: linting
davidnuescheler Apr 29, 2021
4aad7d2
Merge pull request #131 from adobe/block-hero-animation
davidnuescheler Apr 29, 2021
4a5ccae
chore: styling and CLS
davidnuescheler May 3, 2021
9c221bc
Merge pull request #132 from adobe/block-hero-animation
davidnuescheler May 3, 2021
fbbebbc
Merge pull request #135 from adobe/global-metadata-test
rofe May 7, 2021
54b11c2
chore: revert to breaking-202103
rofe May 7, 2021
f1cd1d6
feat: update metadata inspector
davidnuescheler May 9, 2021
2d7d2cf
fix: block without block name fails
rofe May 10, 2021
5ed6d53
Merge pull request #136 from adobe/no-block-name
rofe May 10, 2021
9e96239
feat(seo): enable global metadata
rofe May 10, 2021
83e45c6
Merge pull request #137 from adobe/rofe-patch-1
rofe May 10, 2021
53c3557
feat(metadata): add index and diff views in metadata inspector
davidnuescheler May 10, 2021
86e4668
fix(metadata): prefix selector
davidnuescheler May 10, 2021
cf6f149
chore: add spark stage and qa
davidnuescheler May 10, 2021
3b1973a
chore(sidekick): fix button display rule
davidnuescheler May 10, 2021
0f91e2f
chore(sidekick): fix button display rule
davidnuescheler May 10, 2021
e9fe523
fix: add meta-description column (#139)
dominique-pfister May 11, 2021
e7845dd
Merge pull request #138 from adobe/spark-stage
davidnuescheler May 11, 2021
c579e1d
feat: use hlx3 publish action in sidekick
rofe May 12, 2021
0249ab5
chore: tmp button text
rofe May 12, 2021
a6fb011
feat: dual publishing in sidekick
rofe May 12, 2021
b929021
Merge pull request #122 from adobe/remove-temp-sidekick-fixes
davidnuescheler May 13, 2021
dd14ddf
fix: better placeholder to gnav transition
davidnuescheler May 13, 2021
9dc045b
chore: remove console.log
davidnuescheler May 13, 2021
e60b322
fix(blog-posts): add category
davidnuescheler May 13, 2021
dbeb403
Merge pull request #140 from adobe/sidekick-hlx3
rofe May 16, 2021
1285a3b
fix(sidekick): js error in hlx3Publish
rofe May 17, 2021
5d2ff89
chore: debug output
rofe May 17, 2021
22c7eee
chore: remove hlx3 feature flag
rofe May 17, 2021
571966f
Merge pull request #142 from adobe/gnav-smooth-replace
davidnuescheler May 17, 2021
eb64d4b
Merge pull request #143 from adobe/block-blog-posts
davidnuescheler May 17, 2021
e222e39
chore(pricing): update to hlx3 multisheet logic
davidnuescheler May 17, 2021
806ddaa
Merge pull request #144 from adobe/pricing-sheet-fetch
davidnuescheler May 18, 2021
78c2b48
feat(sidekick): hlx3 publish only
rofe May 19, 2021
fb91672
Merge branch 'main' of https://github.com/adobe/spark-website into main
rofe May 19, 2021
855c2db
chore: create missing header.md
tripodsan May 19, 2021
18c8c44
chore: add footer.md
tripodsan May 19, 2021
09a175d
feat(sidekick): use hlx3 edit/preview lookup
rofe May 19, 2021
7423f4c
Merge pull request #145 from adobe/hlx3-edit-lookup
rofe May 19, 2021
0fa6cbc
chore: remove header and footer again
tripodsan May 19, 2021
badb354
chore: switch to breaking-800 strain
rofe May 19, 2021
e7626fd
Merge pull request #20 from rofe/patch-1
So1ene May 19, 2021
9c57ad8
Merge branch 'adobe:main' into main
So1ene May 19, 2021
9354cfc
chore(sidekick): prep for env switcher
rofe May 19, 2021
86e2ded
feat(sidekick): prep for env switcher
rofe May 20, 2021
e73515d
feat(sidekick): prep for env switcher
rofe May 20, 2021
92967ea
Chore: Update Analytics for additional quick actions.
bbythewa May 27, 2021
3f933df
fix: breaking-800 is no longer required
tripodsan Jun 1, 2021
ff1127f
chore: use breaking branch
tripodsan Jun 1, 2021
7ae5db4
chore: linting
rofe Jun 1, 2021
83cc0fe
Merge branch 'main' of https://github.com/adobe/spark-website into main
rofe Jun 1, 2021
1b8c39c
Merge pull request #146 from adobe/tripodsan-patch-1
tripodsan Jun 1, 2021
d64abac
feat(image-list): backport
rofe Jun 2, 2021
0a6cb58
chore: adjust delay
davidnuescheler Jun 2, 2021
168b198
fix(columns): unrwap single pic and delete empty p
rofe Jun 3, 2021
e9611bb
fix(columns): unrwap single pic and delete empty p
rofe Jun 3, 2021
af2d449
fix(columns): unrwap single pic and delete empty p
rofe Jun 3, 2021
4304455
Merge branch 'main' into cell-alignment-test
rofe Jun 3, 2021
31d0ee2
Merge pull request #149 from adobe/lighthouse-finetuning
davidnuescheler Jun 3, 2021
e30c5d8
Merge pull request #150 from adobe/cell-alignment-test
rofe Jun 4, 2021
f2b8aba
Merge pull request #148 from adobe/image-list-backport
rofe Jun 7, 2021
438e0aa
chore: use hlx3 branch of purge-code action
rofe Jun 7, 2021
92801b1
Merge pull request #152 from adobe/rofe-patch-1
rofe Jun 7, 2021
a1a2c32
chore: update
tripodsan Jun 8, 2021
4e009f5
fix: resource ordering and h2 push tuning
davidnuescheler Jun 8, 2021
dbf4c37
chore: favicon
davidnuescheler Jun 8, 2021
5ce144b
chore(sidekick): temporary fix to reload hlx2 and hlx3 style
rofe Jun 9, 2021
a73d0e0
Merge pull request #154 from adobe/sidekick-reload-hlx3
rofe Jun 9, 2021
a4d2980
Merge pull request #153 from adobe/lighthouse-finetuning
davidnuescheler Jun 9, 2021
ee15022
fix: bringing in LCP if no image
davidnuescheler Jun 9, 2021
d724a46
chore: use helix default version
tripodsan Jun 10, 2021
37bbb94
fix: jank reduction
davidnuescheler Jun 10, 2021
1d700a5
chore: linting remove log
davidnuescheler Jun 10, 2021
1bf249d
chore: cleanup
davidnuescheler Jun 10, 2021
3a9ef5d
Merge pull request #155 from adobe/lighthouse-finetuning
davidnuescheler Jun 10, 2021
6bbf056
fix: FCP testing
davidnuescheler Jun 10, 2021
5c02b73
Merge pull request #156 from adobe/lighthouse-finetuning
davidnuescheler Jun 10, 2021
a9ed9bd
Merge pull request #21 from adobe/main
williambsm Jun 15, 2021
22cac06
chore: remove hlx3 overrides from sidekick plugins
rofe Jun 17, 2021
76533fa
chore: remove unused global
rofe Jun 17, 2021
e3dc265
Merge pull request #158 from adobe/sidekick-remove-hlx3-overrides
rofe Jun 17, 2021
bd9f057
feat(sidekick): new sidekick config
rofe Jun 24, 2021
59e2cb6
chore: adding dummy feature-list.js
davidnuescheler Jun 24, 2021
ec9b2bc
chore(sidekick): remove legacy sidekick config
rofe Jun 25, 2021
6ba6f70
Merge pull request #160 from adobe/sk-cfg
rofe Jun 29, 2021
60f128d
fix: always use innerHost for tools
rofe Jun 29, 2021
5fde4dc
fix: adding extra match rules for pages on different language root
williambsm Jun 29, 2021
154d360
Merge branch 'adobe:main' into main
williambsm Jun 29, 2021
8b740df
Merge pull request #165 from williambsm/main
rofe Jun 29, 2021
332bc41
Merge pull request #164 from adobe/issue-140
rofe Jun 29, 2021
c602e23
Issue 162 (#163)
Jun 30, 2021
a3ab317
chore: remove purge-code workflow
rofe Jun 30, 2021
2888fec
Merge pull request #166 from adobe/rofe-patch-1
rofe Jun 30, 2021
2cb937f
fix(columns): layout issue
davidnuescheler Jun 30, 2021
290581d
chore(sidekick): ensure outerHost contains no branch
rofe Jul 5, 2021
39b3b3a
Merge pull request #169 from adobe/sk-no-outer-branch
rofe Jul 5, 2021
ecaff83
fix(analytics): removeBackground
williambsm Jul 7, 2021
b38328d
Merge pull request #170 from williambsm/main
rofe Jul 8, 2021
1f56a75
fix(analytics): bug where ctaPressed was not registered
williambsm Jul 13, 2021
7a8627c
Merge pull request #171 from williambsm/main
rofe Jul 13, 2021
af16a91
chore: use correct outer cdn
rofe Jul 14, 2021
9bc8d32
chore: fix js error
rofe Jul 14, 2021
ca8a35c
chore: test bot
tripodsan Jul 14, 2021
3d85029
Merge pull request #172 from adobe/rofe-patch-1
rofe Jul 14, 2021
dffd480
chore: hardcode outerHost
rofe Jul 15, 2021
9432cf5
Merge pull request #173 from adobe/hardcode-outer-host
rofe Jul 15, 2021
fd2d8e8
Merge branch 'main' into sk-remove-legacy-cfg
rofe Jul 16, 2021
f9c0c5d
Merge pull request #161 from adobe/sk-remove-legacy-cfg
rofe Jul 16, 2021
6d21824
chore: use https in xml namespace
rofe Jul 16, 2021
644d5a5
chore: move sitemap.xml to content
rofe Jul 16, 2021
55d6c4a
152 Change speed Analytics
williambsm Aug 3, 2021
b52f9fa
153 Merge analytics
williambsm Aug 3, 2021
cfe9395
154 Convert to GIF analytics
williambsm Aug 3, 2021
a489f70
155 Convert to MP4 analytics
williambsm Aug 3, 2021
daf1bb9
includes to endsWith
williambsm Aug 3, 2021
1973130
Add 156 reverse analytics
williambsm Aug 3, 2021
2786235
Merge pull request #174 from williambsm/152_to_155_analytics
rofe Aug 4, 2021
cd606ba
July 13th reversion
williambsm Aug 18, 2021
c012c9a
Merge pull request #175 from williambsm/july_13_reversion
rofe Aug 19, 2021
d9229b7
Simple targets (#176)
dominique-pfister Aug 20, 2021
4511030
fix: paths should start with '/'
dominique-pfister Aug 20, 2021
2af5a59
fix: remove sourceHash from index definition (Helxx 3)
dominique-pfister Aug 23, 2021
db6a47a
feat(seo): move sitemap.xml back to github
rofe Aug 23, 2021
42ddd0d
Merge pull request #178 from adobe/issue-170
rofe Aug 23, 2021
e642907
feat(rum): enable rum collection
davidnuescheler Aug 23, 2021
0d5ead3
Merge pull request #159 from adobe/missing-feature-list
davidnuescheler Aug 24, 2021
cef5050
fix(rum): use rum.hlx3.page
davidnuescheler Aug 25, 2021
a084348
Merge pull request #179 from adobe/rum-collection
davidnuescheler Aug 25, 2021
1677025
Reinstate July 13th change
williambsm Aug 26, 2021
00560bd
Merge pull request #180 from williambsm/reinstate_july_13_fix
rofe Aug 27, 2021
a11c1a9
chore: add explicit referrer
davidnuescheler Aug 27, 2021
f899b9b
chore: add explicit referrer
davidnuescheler Aug 27, 2021
972ad86
Merge pull request #181 from adobe/rum-collection
davidnuescheler Aug 30, 2021
a1584fa
feat(default-content): vars and buttons
rofe Sep 7, 2021
c83693c
chore: make primary button blue
rofe Sep 7, 2021
e7b1e02
feat: new link-list block
rofe Sep 7, 2021
bfd320a
Merge branch 'vars-buttons' into issue-180
rofe Sep 7, 2021
bcd294f
Merge pull request #182 from adobe/vars-buttons
rofe Sep 7, 2021
c1998f4
feat(columns): fullsize option
rofe Sep 7, 2021
c0b191c
chore: fix tests
rofe Sep 7, 2021
7b27bf2
feat: rum collection delay test
davidnuescheler Sep 7, 2021
68444da
feat: add martech load to RUM
davidnuescheler Sep 7, 2021
2489b56
fix: generation collection
davidnuescheler Sep 7, 2021
0c66193
Merge pull request #184 from adobe/issue-178
rofe Sep 7, 2021
5ee7494
Merge pull request #183 from adobe/issue-180
rofe Sep 7, 2021
de30540
Merge pull request #185 from adobe/rum-collection-test
davidnuescheler Sep 7, 2021
466ba5d
chore: better hiding of content if martech is rushed
davidnuescheler Sep 7, 2021
a0876a0
chore: disable bodyHidingEnabled
davidnuescheler Sep 7, 2021
2f6db7e
fix: refactor using at unhide
davidnuescheler Sep 7, 2021
2b95797
feat: analytics isolation
davidnuescheler Sep 7, 2021
d7d2733
feat: how-to-steps-carousel
kptdobe Sep 8, 2021
7b5c828
feat: new-template-list block
rofe Sep 8, 2021
0b5b2d6
fix: async decorate
rofe Sep 8, 2021
89068f6
feat: brand icon
rofe Sep 8, 2021
b187973
Merge pull request #189 from adobe/issue-179
rofe Sep 8, 2021
7f846a5
Merge pull request #187 from adobe/hide-content
davidnuescheler Sep 8, 2021
dfc6573
fix: disable target if not in testing
davidnuescheler Sep 8, 2021
d7b146d
chore: css adjustments and missing icon
rofe Sep 9, 2021
7e607b9
Merge pull request #190 from adobe/minor-things
rofe Sep 9, 2021
8f1eb8f
chore: missing icon symbols
rofe Sep 9, 2021
a13061a
chore: button style in centered columns block
rofe Sep 9, 2021
715662e
Merge pull request #191 from adobe/missing-icons
rofe Sep 9, 2021
e9f554d
feat: new banner block
rofe Sep 9, 2021
070422d
test(new-banner): add unit tests
rofe Sep 9, 2021
4b16357
chore: all tests
rofe Sep 9, 2021
2c869a0
Merge pull request #192 from adobe/issue-185
rofe Sep 9, 2021
7e34964
chore: add spark logo
rofe Sep 10, 2021
7a74bae
chore: remove empty sections to avoid excess whitespace
rofe Sep 10, 2021
f474cbf
fix(new-template-list): template order stability
rofe Sep 10, 2021
e3d3f8b
fix(new-template-list): explicit width
rofe Sep 10, 2021
8148219
chore: revert
rofe Sep 10, 2021
4affcd1
Merge pull request #193 from adobe/stability
rofe Sep 10, 2021
f757466
Merge pull request #188 from adobe/analytics-rush
davidnuescheler Sep 13, 2021
ca237af
fix: occasional single column template-list
rofe Sep 13, 2021
3485267
fix: don't rely on offsetWidth/Height
davidnuescheler Sep 14, 2021
9a1e91a
chore: better guard for height calc
davidnuescheler Sep 14, 2021
36cd738
fix(new-template-list): use correct class in blueprint
rofe Sep 17, 2021
bc626ad
chore: analytics restructure
davidnuescheler Sep 20, 2021
ccfcbac
chore: remove privacy.min.js
davidnuescheler Sep 20, 2021
3deeb56
Merge pull request #194 from adobe/analytics-restructure
davidnuescheler Sep 20, 2021
743add4
fix(columns-issue-186): Fix mobile columns with floating button
So1ene Sep 20, 2021
1876e37
fix(columns-issue-186): fix floating button
So1ene Sep 21, 2021
f26604a
fix(columns-issue-186): forgot a button in the banner section
So1ene Sep 21, 2021
4e95548
fix(columns-issue-186): remove redundant code
So1ene Sep 21, 2021
bff049d
fix(link-list): remove primary class from buttons
rofe Sep 22, 2021
e21ff2a
fix(columns-issue-186): update express/blocks/columns/columns.css
So1ene Sep 22, 2021
c678c2c
fix(link-list): remove primary class to links
So1ene Sep 22, 2021
6bc05db
Merge branch 'w36-186-columns' of https://github.com/williambsm/spark…
So1ene Sep 22, 2021
82b0fe7
Merge pull request #197 from adobe/link-list-bug
rofe Sep 22, 2021
6664842
Update express/blocks/link-list/link-list.js
rofe Sep 22, 2021
b282b0e
Merge pull request #196 from williambsm/w36-186-columns
rofe Sep 22, 2021
edfc793
chore: linting
rofe Sep 28, 2021
f781f81
fix: really remove empty sections
rofe Sep 28, 2021
821d998
fix: remove extra spacing above footer
rofe Sep 28, 2021
b497b23
refactor: different viewport paddings
rofe Sep 28, 2021
cc2f483
Merge pull request #198 from adobe/issue-189
rofe Sep 28, 2021
29c4c64
fix(new-template-list): rendered in single column
rofe Sep 28, 2021
4bfaff3
chore: eslint plugin
rofe Sep 28, 2021
b6af83f
feat: catch window resize and re-compute image size (#199)
kptdobe Sep 28, 2021
2f6c8cf
chore: babel config fix
kptdobe Sep 28, 2021
bc1bdd3
Merge pull request #201 from adobe/column-bug
rofe Sep 28, 2021
41e7c30
fix: restore padding on large screens (#202)
kptdobe Sep 28, 2021
ba646d3
Merge pull request #200 from adobe/issue-191
rofe Sep 28, 2021
2959ef6
Merge pull request #203 from adobe/w36
rofe Sep 28, 2021
cb6cc68
feat: how-to-steps no schema
kptdobe Sep 29, 2021
8ee95a8
chore: fix video height
davidnuescheler Sep 29, 2021
48cb896
chore: linting
davidnuescheler Sep 29, 2021
5a299a2
Merge pull request #205 from adobe/template-list-block
davidnuescheler Sep 30, 2021
02826d4
fix: how to carousel regression
davidnuescheler Oct 1, 2021
c0b255f
chore: better workaround
davidnuescheler Oct 1, 2021
bf80bb5
chore: linting
davidnuescheler Oct 1, 2021
b42c57f
Merge pull request #206 from adobe/how-to-carousel-block
davidnuescheler Oct 1, 2021
e20f87c
chore: remove static
davidnuescheler Oct 1, 2021
997a2d7
Merge pull request #207 from adobe/new-template-list-block
davidnuescheler Oct 1, 2021
f9b5b62
fix: too much left padding in mobile viewport
rofe Oct 19, 2021
ef4f4b1
Merge pull request #209 from adobe/mobile-fix
rofe Oct 19, 2021
705d3d2
fix(link-list): regression from #209
rofe Oct 19, 2021
88e1cba
Merge pull request #210 from adobe/link-list-regression
rofe Oct 19, 2021
cbcd9d2
fix: columns in dark container too narrow
rofe Oct 20, 2021
202a83d
Merge pull request #211 from adobe/dark-cols-fix
rofe Oct 20, 2021
7e7c664
fix(cards): clean up mobile styling
rofe Oct 22, 2021
9001503
Merge pull request #212 from adobe/cleanup-cards-styling
rofe Oct 22, 2021
4eebd65
fix: template list on create page
davidnuescheler Oct 23, 2021
289b855
chore: remove console.log
davidnuescheler Oct 23, 2021
d17f218
Merge pull request #213 from adobe/create-page-fix
davidnuescheler Oct 25, 2021
cdcbf73
chore: push down feds header
rofe Oct 25, 2021
476ef94
Merge pull request #214 from adobe/rofe-patch-1
rofe Oct 26, 2021
83ea21b
feat: add sitemap configuration (#215)
dominique-pfister Nov 16, 2021
fd570e0
chore: revert sitemap.xml
davidnuescheler Nov 16, 2021
5ecb96e
fix: use new structure again
dominique-pfister Nov 17, 2021
f10047b
chore: test one other sitemap in old location
dominique-pfister Nov 17, 2021
07b02a2
fix: revert to old sitemap index
dominique-pfister Nov 17, 2021
5b54e8b
fix: use sitemaps at old locations
dominique-pfister Nov 17, 2021
aad8103
fix: use http:// for namespaces
dominique-pfister Nov 18, 2021
b9e0b68
fix: use relative target (#216)
dominique-pfister Nov 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["@babel/plugin-proposal-class-properties"]
}
57 changes: 57 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
version: 2.1
executors:
node12:
docker:
- image: circleci/node:12
environment:
NPM_CONFIG_PREFIX: "~/.npm-global"
working_directory: ~/repo

orbs:
helix-post-deploy: adobe/helix-post-deploy@2.0.10

jobs:
build:
executor: node12
steps:
- checkout
- run:
name: install latest npm
command: sudo npm -g install npm
- run:
name: Installing Dependencies
command: npm install
- persist_to_workspace:
root: /home/circleci
paths:
- project

operations:
executor: node12
steps:
- attach_workspace:
at: /home/circleci
- helix-post-deploy/monitoring:
newrelic_name: Adobe CC Express - Production Content
newrelic_url: https://www.adobe.com/express
newrelic_type: browser
newrelic_script: ./.monitoring/homepage-pricing.js
newrelic_group_policy: Customer Sites
newrelic_locations: AWS_US_WEST_1
newrelic_frequency: 1

workflows:
version: 2
build:
jobs:
- build:
filters:
branches:
only: ops
- operations:
requires:
- build
context: Project Helix
filters:
branches:
only: ops
11 changes: 11 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@ module.exports = {
rules: {
// allow reassigning param
'no-param-reassign': [2, { props: false }],
'linebreak-style': ['error', 'unix'],
'import/extensions': ['error', {
js: 'always',
}],
},
parser: '@babel/eslint-parser',
parserOptions: {
allowImportExportEverywhere: true,
sourceType: 'module',
requireConfigFile: false,
babelOptions: {
configFile: './.babelrc',
},
},
plugins: ['@babel'],
};
16 changes: 0 additions & 16 deletions .github/workflows/purge-code.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
node-version: '12'
- run: npm install
working-directory: test
- run: npm run lint
- run: npm test
working-directory: test
env:
Expand Down
75 changes: 75 additions & 0 deletions .monitoring/homepage-pricing.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/*
* Copyright 2021 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
/* global $browser $driver */
/* eslint-disable no-console */

/*
* Scripted Browser API Documentation:
* https://docs.newrelic.com/docs/synthetics/new-relic-synthetics/scripting-monitors/writing-scripted-browsers
*/
const assert = require('assert');

const TIMEOUT = 10000;

/**
* Checks if the homepage is loading and showing the expected content.
* @param {string} baseUrl The base URL to check
*/
async function checkHomepage(baseUrl) {
const url = `${baseUrl}/`;
console.log(`Verifying ${url} ...`);
$browser.get(url)
// wait for the page to fully load
.then(() => $browser.sleep(TIMEOUT))
// check document integrity
.then(() => $browser.findElement($driver.By.css('html')))
.then((html) => Promise.all([html.getAttribute('class'), html.getAttribute('lang')]))
.then(([template, lang]) => {
assert.ok(template === 'default', `Expected template to be "default", got "${template}" instead`);
assert.ok(lang === 'en', `Expected language to be "en", got "${lang}" instead`);
})
// check CTA button
.then(() => $browser.findElement($driver.By.css('main a.button.primary')))
.then(() => console.log(`${url} successfully verified.`))
.catch((e) => {
assert.fail(`Verification of ${url} failed: ${e.message}`);
});
}

/**
* Checks if the pricing page is loading and showing the expected content.
* @param {string} baseUrl The base URL to check
*/
async function checkPricingPage(baseUrl) {
const url = `${baseUrl}/pricing`;
console.log(`Verifying ${url} ...`);
$browser.get(url)
// wait for the page to fully load
.then(() => $browser.sleep(TIMEOUT))
// check buy button
.then(() => $browser.findElement($driver.By.linkText('Buy Now')))
.then((button) => button.getAttribute('href'))
.then((buyUrl) => assert.ok(buyUrl.startsWith('https://commerce.adobe.com')))
.then(() => console.log(`${url} successfully verified.`))
.catch((e) => {
assert.fail(`Verification of ${url} failed: ${e.message}`);
});
}

// Check homepage and pricing page
(async () => {
await Promise.all([
'$$$URL$$$',
// 'https://spark-website--adobe.hlx.live/express',
// 'https://spark-website--adobe.hlx.page/express',
].map((baseUrl) => checkHomepage(baseUrl) && checkPricingPage(baseUrl)));
})();
49 changes: 41 additions & 8 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,52 @@
window.isErrorPage = true;
window.errorCode = '404';
</script>
<style>

.error-404 main {
visibility: visible;
background-image: url(https://adobe.com/content/dam/acom/en/error-pages/images/404-1440x612_edge2.jpg);
background-size: cover;
background-position: 70%;
height: 70vh;
position: relative;
padding: 32px;
text-align: left;
}

.error-404 cite {
position: absolute;
bottom: 32px;
left: 32px;
}

.error-404 main nav a {
display: block;
padding: 1rem 0;
}

.error-404 main .section-wrapper h2 {
text-align: left;
}

.error-404 footer, .error-404 .feds-navBar-wrapper {
margin-top: 0;
}

</style>
<esi:include src="/head.html" onerror="continue"/>
</head>
<body>
<body class="error-404">
<!-- header -->
<header><esi:include src="/header.plain.html" onerror="continue"/></header>
<!-- main content -->
<main>
<div class="default">
<h2></h2>
<p class="detail"></p>
<nav class="list">
<a class="gotohome" href="/"></a>
<a class="searchadobe" href="https://adobe.com/search.html"></a>
<main>
<div>
<h2>These are uncharted waters.</h2>
<p><i>Searching for something? Try one of the links below</i></p>
<nav>
<a href="/express/">Go to homepage</a>
<a href="https://adobe.com/search.html">Search Adobe.com</a>
</nav>
<cite>
<a href="https://www.behance.net/rsvn" target="_blank">The Story Begins Here by Risfan Fardiansyah</a>
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Outer CDN:

1. Install the [Helix CLI](https://github.com/adobe/helix-cli): `npm install -g @adobe/helix-cli`
1. Clone this repository locally: `git clone https://github.com/adobe/spark-website.git`
1. Go to the `fedpub` directory: `cd spark-website`
1. Go to the `spark-website` directory: `cd spark-website`
1. Start Helix Simulator: `hlx up` (opens your browser at `http://localhost:3000`)
1. Open the `spark-website` directory in your favorite IDE and start coding :)


65 changes: 65 additions & 0 deletions express/blocks/animation/animation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* Copyright 2021 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/

import {
createTag,
} from '../../scripts/scripts.js';

export default function decorate($block, name, doc) {
doc.querySelectorAll('.animation a[href], .video a[href]').forEach(($a) => {
const href = $a.getAttribute('href');
const url = new URL(href);
const helixId = url.pathname.split('/')[2];
const $parent = $a.parentNode;

if (href.endsWith('.mp4')) {
const isAnimation = !!$a.closest('.animation');
// const isAnimation = true;

let attribs = { controls: '' };
if (isAnimation) {
attribs = {
playsinline: '', autoplay: '', loop: '', muted: '',
};
}
const $poster = $a.closest('div').querySelector('img');
if ($poster) {
attribs.poster = $poster.src;
$poster.remove();
}

const $video = createTag('video', attribs);
/*
if (href.startsWith('https://hlx.blob.core.windows.net/external/')) {
href='/hlx_'+href.split('/')[4].replace('#image','');
}
*/
$video.innerHTML = `<source src="${href}" type="video/mp4">`;
$a.parentNode.replaceChild($video, $a);
if (isAnimation) {
$video.addEventListener('canplay', () => {
$video.muted = true;
$video.play();
});
}
}

if (href.endsWith('.gif')) {
$a.parentNode.replaceChild(createTag('img', { src: `/hlx_${helixId}.gif` }), $a);
}

const $next = $parent.nextElementSibling;
if ($next && $next.tagName === 'P' && $next.innerHTML.trim().startsWith('<em>')) {
$next.classList.add('legend');
}
});
}
17 changes: 17 additions & 0 deletions express/blocks/banner/banner.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
main .banner {
border-radius: 20px;
background-color: #000;
color: #FFF;
padding: 32px;
margin: 32px auto;
}

main .banner a:any-link {
color: white;
}

@media (min-width:900px) {
main .banner {
margin: 40px auto;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,4 @@
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
/* eslint-env mocha */

describe('Template page', () => {
it('dummy', () => {
// expect(true).to.be.true;
});
});
/* global */
Loading