@@ -25,6 +25,9 @@ const ExplanationTooltipOverlay: React.FunctionComponent = (): JSX.Element => {
25
25
< ExternalLink href = { 'https://nextjs.org/docs/advanced-features/preview-mode' } > Learn more</ ExternalLink > < br />
26
26
< br />
27
27
Disabling < b > preview mode</ b > will make SSG pages go back to their normal behaviour.< br />
28
+ < br />
29
+ < i > < b > Tip</ b > : Make sure to hard refresh the page (< code > cmd+shift+r</ code > on MacOs) after enabling it, to refresh the browser cache.</ i > < br />
30
+ < i > < b > Tip</ b > : We enabled < b > preview mode</ b > on the < code > production</ code > stage for showcase purpose</ i > < br />
28
31
</ span >
29
32
) ;
30
33
} ;
@@ -63,6 +66,10 @@ const PreviewModeBanner: React.FunctionComponent<Props> = (props): JSX.Element =
63
66
right : 20px ;
64
67
}
65
68
}
69
+
70
+ [class *= "fa-" ] {
71
+ margin-bottom : 1px
72
+ }
66
73
` }
67
74
>
68
75
{
@@ -74,7 +81,7 @@ const PreviewModeBanner: React.FunctionComponent<Props> = (props): JSX.Element =
74
81
overlay = { < ExplanationTooltipOverlay /> }
75
82
placement = { 'bottom' }
76
83
>
77
- < FontAwesomeIcon icon = { [ 'fas' , 'question' ] } size = { 'xs' } />
84
+ < FontAwesomeIcon icon = { [ 'fas' , 'question-circle ' ] } size = { 'xs' } />
78
85
</ Tooltip >
79
86
</ span >
80
87
< span className = { 'right' } >
@@ -85,13 +92,7 @@ const PreviewModeBanner: React.FunctionComponent<Props> = (props): JSX.Element =
85
92
onClick = { stopPreviewMode }
86
93
onKeyPress = { stopPreviewMode }
87
94
>
88
- Leave preview mode
89
- < Tooltip
90
- overlay = { < span > This is a tooltip</ span > }
91
- placement = { 'bottom' }
92
- >
93
- < FontAwesomeIcon icon = { [ 'fas' , 'question' ] } size = { 'xs' } />
94
- </ Tooltip >
95
+ Leave preview mode
95
96
</ a >
96
97
</ span >
97
98
</ div >
@@ -103,7 +104,7 @@ const PreviewModeBanner: React.FunctionComponent<Props> = (props): JSX.Element =
103
104
overlay = { < ExplanationTooltipOverlay /> }
104
105
placement = { 'bottom' }
105
106
>
106
- < FontAwesomeIcon icon = { [ 'fas' , 'question' ] } />
107
+ < FontAwesomeIcon icon = { [ 'fas' , 'question-circle' ] } size = { 'xs' } />
107
108
</ Tooltip >
108
109
</ span >
109
110
< span className = { 'right' } >
0 commit comments