Skip to content

Commit c21a68a

Browse files
stephanjclaude
andcommitted
fix: replace YouTube iframe with thumbnail link to avoid bot detection
Show video thumbnail with a play button overlay instead of embedding the iframe, which was triggering Google's bot detection page. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6338019 commit c21a68a

1 file changed

Lines changed: 23 additions & 11 deletions

File tree

docusaurus/src/pages/index.js

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,29 @@ export default function Home() {
7272
</div>
7373
<div className="col col--6">
7474
<div className={styles.videoContainer}>
75-
<iframe
76-
width="560"
77-
height="315"
78-
src="https://www.youtube.com/embed/t1MOHCfsdvk?si=6ohh21rytW3ASqtp"
79-
title="YouTube video player"
80-
frameBorder="0"
81-
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
82-
referrerPolicy="strict-origin-when-cross-origin"
83-
allowFullScreen
84-
style={{borderRadius: '8px', width: '100%'}}
85-
/>
75+
<a
76+
href="https://www.youtube.com/watch?v=t1MOHCfsdvk"
77+
target="_blank"
78+
rel="noopener noreferrer"
79+
style={{display: 'block', position: 'relative', borderRadius: '8px', overflow: 'hidden'}}
80+
>
81+
<img
82+
src="https://img.youtube.com/vi/t1MOHCfsdvk/maxresdefault.jpg"
83+
alt="Spec-driven Development Demo"
84+
style={{width: '100%', display: 'block', borderRadius: '8px'}}
85+
/>
86+
<div style={{
87+
position: 'absolute', top: '50%', left: '50%',
88+
transform: 'translate(-50%, -50%)',
89+
width: '68px', height: '48px',
90+
background: '#ff0000', borderRadius: '12px',
91+
display: 'flex', alignItems: 'center', justifyContent: 'center'
92+
}}>
93+
<svg viewBox="0 0 68 48" width="68" height="48">
94+
<polygon points="27,17 27,31 41,24" fill="#fff"/>
95+
</svg>
96+
</div>
97+
</a>
8698
</div>
8799
</div>
88100
</div>

0 commit comments

Comments
 (0)