FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
proxytechsupport-nextjs/components/PostLayout.tsx at main · techdeepcode/proxytechsupport-nextjs · GitHub
techdeepcode
/
proxytechsupport-nextjs
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
proxytechsupport-nextjs
/
components
/
PostLayout.tsx
Copy path
More file actions
More file actions
Latest commit
History
History
History
220 lines (211 loc) · 7.25 KB
Breadcrumbs
proxytechsupport-nextjs
/
components
/
PostLayout.tsx
Copy path
File metadata and controls
220 lines (211 loc) · 7.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
import
type
{
ReactNode
}
from
'react'
;
import
TopBar
from
'@/components/TopBar'
;
import
Navbar
from
'@/components/Navbar'
;
import
Breadcrumb
,
{
type
BreadcrumbItem
}
from
'@/components/Breadcrumb'
;
import
Footer
from
'@/components/Footer'
;
import
PageBottomCTA
from
'@/components/PageBottomCTA'
;
import
WhatsAppFloat
from
'@/components/WhatsAppFloat'
;
import
Sidebar
from
'@/components/Sidebar'
;
import
ActionBanner
from
'@/components/ActionBanner'
;
import
BlogArticleShell
from
'@/components/BlogArticleShell'
;
import
{
WHATSAPP_ME_URL
}
from
'@/lib/whatsapp'
;
interface
PostLayoutProps
{
title
:
string
;
/** Legacy HTML string (unused when children are passed). */
content
?:
string
;
/** Rich article body (preferred). */
children
?:
ReactNode
;
date
?:
string
;
/** Green ActionBanner above the title (same component as interview detail pages). */
showTopActionBanner
?:
boolean
;
/** If true, shows the inline interview CTA block after the article instead of blog internal links. */
showInterviewBanner
?:
boolean
;
/**
* Interview listing pages use plain HTML Article components; wrap in the same card shell as blog posts.
* Do not set for blog posts — their Article already includes BlogArticleShell when needed.
*/
wrapWithBlogShell
?:
boolean
;
/** Breadcrumb trail for this page. If omitted no breadcrumb is rendered. */
breadcrumbs
?:
BreadcrumbItem
[
]
;
}
function
InlineInterviewCTA
(
)
{
return
(
<
div
style
=
{
{
border
:
'1px solid rgba(0,223,130,0.3)'
,
borderLeft
:
'4px solid #00df82'
,
borderRadius
:
'8px'
,
padding
:
'1rem 1.25rem'
,
margin
:
'2rem 0'
,
background
:
'rgba(0,223,130,0.04)'
,
display
:
'flex'
,
flexWrap
:
'wrap'
,
alignItems
:
'center'
,
gap
:
'0.75rem'
,
justifyContent
:
'space-between'
,
}
}
>
<
p
style
=
{
{
margin
:
0
,
fontSize
:
'0.92rem'
,
color
:
'var(--pts-text)'
,
fontWeight
:
600
,
lineHeight
:
1.4
}
}
>
Need real-time interview support?
{
' '
}
<
a
href
=
"/interview-support-global/"
style
=
{
{
color
:
'var(--pts-forest)'
,
textDecoration
:
'underline'
}
}
>
Explore our global interview assistance →
</
a
>
</
p
>
<
a
href
=
{
WHATSAPP_ME_URL
}
target
=
"_blank"
rel
=
"noopener noreferrer"
style
=
{
{
display
:
'inline-flex'
,
alignItems
:
'center'
,
gap
:
'0.35rem'
,
background
:
'#25D366'
,
color
:
'#ffffff'
,
fontWeight
:
700
,
fontSize
:
'0.82rem'
,
padding
:
'0.5rem 1rem'
,
borderRadius
:
'50px'
,
textDecoration
:
'none'
,
whiteSpace
:
'nowrap'
,
}
}
>
Talk to Expert Now
</
a
>
</
div
>
)
;
}
function
BlogInternalLinks
(
)
{
return
(
<
div
style
=
{
{
borderTop
:
'1px solid var(--pts-border)'
,
paddingTop
:
'1.5rem'
,
marginTop
:
'2rem'
,
}
}
>
<
p
style
=
{
{
fontSize
:
'0.8rem'
,
fontWeight
:
700
,
letterSpacing
:
'0.1em'
,
textTransform
:
'uppercase'
,
color
:
'var(--pts-text-subtle)'
,
marginBottom
:
'0.85rem'
}
}
>
Need real-time help?
</
p
>
<
div
style
=
{
{
display
:
'flex'
,
flexWrap
:
'wrap'
,
gap
:
'0.5rem'
}
}
>
{
[
{
label
:
'AWS Job Support'
,
href
:
'/aws-job-support/'
}
,
{
label
:
'Python Job Support'
,
href
:
'/python-job-support/'
}
,
{
label
:
'DevOps Job Support'
,
href
:
'/devops-job-support/'
}
,
{
label
:
'SRE Job Support'
,
href
:
'/sre-job-support-usa/'
}
,
{
label
:
'React Job Support'
,
href
:
'/react-job-support/'
}
,
{
label
:
'Node.js Job Support'
,
href
:
'/nodejs-job-support-usa/'
}
,
{
label
:
'.NET Job Support'
,
href
:
'/dotnet-job-support/'
}
,
{
label
:
'Java Job Support'
,
href
:
'/java-job-support-usa/'
}
,
{
label
:
'AI/ML Proxy Interview'
,
href
:
'/ai-ml-proxy-interview-support/'
}
,
{
label
:
'DevOps Proxy Interview'
,
href
:
'/devops-proxy-interview-support/'
}
,
{
label
:
'SRE Proxy Interview'
,
href
:
'/sre-proxy-interview-support/'
}
,
{
label
:
'Interview Support'
,
href
:
'/interview-support-global/'
}
,
{
label
:
'Struggling in Job?'
,
href
:
'/struggling-in-job-developer-help/'
}
,
]
.
map
(
(
link
)
=>
(
<
a
key
=
{
link
.
href
}
href
=
{
link
.
href
}
style
=
{
{
fontSize
:
'0.82rem'
,
color
:
'var(--pts-forest)'
,
textDecoration
:
'none'
,
fontWeight
:
600
,
border
:
'1px solid var(--pts-border)'
,
borderRadius
:
'6px'
,
padding
:
'0.3rem 0.65rem'
,
background
:
'var(--pts-card-bg)'
,
transition
:
'border-color 0.15s'
,
}
}
>
{
link
.
label
}
→
</
a
>
)
)
}
</
div
>
</
div
>
)
;
}
export
default
function
PostLayout
(
{
title
,
content
,
children
,
date
,
showTopActionBanner
,
showInterviewBanner
,
wrapWithBlogShell
,
breadcrumbs
,
}
:
PostLayoutProps
)
{
const
showExpertBanner
=
showTopActionBanner
||
showInterviewBanner
;
return
(
<
>
<
TopBar
/>
<
Navbar
/>
{
breadcrumbs
&&
breadcrumbs
.
length
>
0
&&
<
Breadcrumb
items
=
{
breadcrumbs
}
/>
}
<
main
className
=
"post-layout-main"
style
=
{
{
background
:
'var(--pts-bg)'
,
minHeight
:
'60vh'
}
}
>
<
div
className
=
"post-layout-inner"
style
=
{
{
width
:
'100%'
,
maxWidth
:
'var(--pts-content-max)'
,
margin
:
'0 auto'
,
padding
:
'2rem 1rem'
,
display
:
'grid'
,
gridTemplateColumns
:
'1fr 300px'
,
gap
:
'2rem'
,
alignItems
:
'start'
,
}
}
>
<
article
>
{
showExpertBanner
&&
(
<
div
className
=
"post-layout-preface-banner"
>
<
ActionBanner
/>
</
div
>
)
}
<
h1
style
=
{
{
fontSize
:
'clamp(1.4rem, 3vw, 2rem)'
,
fontWeight
:
700
,
color
:
'var(--pts-text)'
,
marginBottom
:
'0.5rem'
,
lineHeight
:
1.3
,
}
}
>
{
title
}
</
h1
>
{
date
&&
(
<
p
style
=
{
{
fontSize
:
'0.85rem'
,
color
:
'var(--pts-text-subtle)'
,
marginBottom
:
'1.5rem'
}
}
>
{
new
Date
(
date
)
.
toLocaleDateString
(
'en-US'
,
{
year
:
'numeric'
,
month
:
'long'
,
day
:
'numeric'
}
)
}
</
p
>
)
}
<
div
className
=
"post-content"
>
{
wrapWithBlogShell
?
(
<
BlogArticleShell
>
{
children
??
<
div
dangerouslySetInnerHTML
=
{
{
__html
:
content
||
''
}
}
/>
}
</
BlogArticleShell
>
)
:
(
(
children
??
<
div
dangerouslySetInnerHTML
=
{
{
__html
:
content
||
''
}
}
/>
)
)
}
</
div
>
{
showInterviewBanner
&&
<
InlineInterviewCTA
/>
}
{
!
showInterviewBanner
&&
<
BlogInternalLinks
/>
}
</
article
>
<
aside
className
=
"post-sidebar"
>
<
Sidebar
/>
</
aside
>
</
div
>
</
main
>
<
PageBottomCTA
/>
<
Footer
/>
<
WhatsAppFloat
/>
<
style
>
{
`
@media (max-width: 1023px) {
.post-layout-inner {
grid-template-columns: 1fr !important;
}
.post-sidebar {
display: none !important;
}
}
`
}
</
style
>
</
>
)
;
}
Back
|
FazBrowse Home
|
New Git URL