You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ same. There are three major stages, each with distinct steps.
121
121
1.**Editing**
122
122
1. Make your changes in Storyblok.
123
123
2. Preview how your changes will look on the site using Storyblok's preview
124
-
iframe. You should see a yellow banner at the top of the page telling you
124
+
iframe. You should see a yellow overlay at the top of the page telling you
125
125
that you can see draft content.
126
126
3. Save your changes.
127
127
2.**Publishing**
@@ -285,7 +285,7 @@ Some middleware checks if the HTTP referrer is
285
285
<https://app.storyblok.com/>. In that case, the code assumes that the end user
286
286
is coming to the site from within the Storyblok iframe. So it puts the user in
287
287
Next.js preview mode. When the user is in preview mode, the website shows a
288
-
yellow banner at the top of the page, letting the user know that they are seeing
288
+
yellow overlay at the top of the page, letting the user know that they are seeing
289
289
draft content on the site.
290
290
291
291
### Vercel
@@ -331,20 +331,20 @@ In this case, the code forces the browser to automatically enter into Next.js
331
331
preview mode.
332
332
333
333
**To help the end user distinguish which view of the site they are seeing, the
334
-
codebase defines a visual banner at the top of each page.** When the site is in
335
-
preview mode, the banner turns yellow and displays a message telling the user
334
+
codebase defines a visual overlay at the top of each page.** When the site is in
335
+
preview mode, the overlay turns yellow and displays a message telling the user
336
336
that they can see draft content. When the site is not in preview mode, the
337
-
banner turns gray and tells the user that they can see published content. The
338
-
banner provides a clickable link to switch in and out of Next.js preview mode.
337
+
overlay turns gray and tells the user that they can see published content. The
338
+
overlay provides a clickable link to switch in and out of Next.js preview mode.
339
339
This switch is turned off when the user is viewing the page via the Storyblok UI because when
340
340
they are working within Storyblok, they should always see the site in Next.js preview
341
341
mode so that they can see changes that are being worked on.
342
-
The banner does not show at all if the site was built in a
342
+
The overlay does not show at all if the site was built in a
343
343
production environment.
344
344
345
345
The codebase takes advantage of [Vercel environment
346
346
variables](https://vercel.com/docs/concepts/projects/environment-variables) at
347
-
build time. For example, the preview mode banner links to the git branch that
347
+
build time. For example, the preview mode overlay links to the git branch that
348
348
the site was built from (when that environment variable is available at build
349
349
time).
350
350
@@ -354,23 +354,23 @@ Throughout the develop-deploy process, there are several ways to view the
354
354
website. The following table summarizes the important ways in which those views
355
355
differ from each other.
356
356
357
-
| Name | How to access | GitHub branch | Vercel env | Storyblok API key | Next.js preview? | Storyblok version param | Display top banner? | Top banner color | Button to enter/exit preview? |
357
+
| Name | How to access | GitHub branch | Vercel env | Storyblok API key | Next.js preview? | Storyblok version param | Display top overlay? | Top overlay color | Button to enter/exit preview? |
0 commit comments