git checkout HEAD .
📦 GitHub
✨ The Prompt Phrase
git checkout HEAD .
💻 Code Preview
📦 All-in-One Code
<!-- Link Action Buttons with Ghost Preview -->
<style>
.link-card-wrapper {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
padding: 24px;
max-width: 600px;
margin: 0 auto;
}
/* Ghost Link Preview */
.link-ghost-preview {
position: relative;
margin-bottom: 20px;
padding: 20px 24px;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(168, 85, 247, 0.03));
border: 1px solid rgba(99, 102, 241, 0.15);
border-radius: 16px;
overflow: hidden;
}
.link-ghost-preview::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.08));
opacity: 0;
transition: opacity 0.4s ease;
}
.link-ghost-preview:hover::before {
opacity: 1;
}
.link-ghost-label {
display: flex;
align-items: center;
gap: 8px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1.5px;
color: rgba(139, 92, 246, 0.7);
margin-bottom: 12px;
}
.link-ghost-label::after {
content: '';
flex: 1;
height: 1px;
background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), transparent);
}
.link-ghost-text {
position: relative;
font-size: 15px;
font-weight: 500;
color: rgba(148, 163, 184, 0.9);
word-break: break-all;
line-height: 1.6;
padding: 14px 18px;
background: rgba(0, 0, 0, 0.2);
border-radius: 10px;
border: 1px solid rgba(99, 102, 241, 0.1);
text-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
transition: all 0.3s ease;
}
.link-ghost-text:hover {
color: rgba(165, 180, 252, 1);
border-color: rgba(99, 102, 241, 0.25);
text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
background: rgba(99, 102, 241, 0.08);
}
.link-ghost-glow {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
height: 80%;
background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15), transparent 70%);
pointer-events: none;
opacity: 0;
transition: opacity 0.4s ease;
}
.link-ghost-preview:hover .link-ghost-glow {
opacity: 1;
}
/* Buttons Container */
.link-buttons-container {
display: flex;
gap: 12px;
flex-wrap: wrap;
justify-content: center;
}
.link-btn {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 14px 28px;
font-size: 16px;
font-weight: 600;
text-decoration: none;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.link-btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.link-btn:active {
transform: translateY(-1px);
}
.link-btn-copy {
background: linear-gradient(135deg, #10b981, #059669);
color: white;
}
.link-btn-copy:hover {
background: linear-gradient(135deg, #059669, #047857);
box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}
.link-btn-copy.copied {
background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.link-btn-visit {
background: linear-gradient(135deg, #3b82f6, #2563eb);
color: white;
}
.link-btn-visit:hover {
background: linear-gradient(135deg, #2563eb, #1d4ed8);
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.link-btn-icon {
font-size: 18px;
}
@media (max-width: 480px) {
.link-card-wrapper {
padding: 16px;
}
.link-buttons-container {
flex-direction: column;
align-items: stretch;
}
.link-btn {
justify-content: center;
}
.link-ghost-text {
font-size: 13px;
}
}
</style>
<div class="link-card-wrapper">
<!-- Ghost Link Preview -->
<div class="link-ghost-preview">
<div class="link-ghost-glow"></div>
<div class="link-ghost-label">
<span>🔗</span>
<span>Link Preview</span>
</div>
<div class="link-ghost-text">https://attentive-master-git-flow.base44.app</div>
</div>
<!-- Action Buttons -->
<div class="link-buttons-container">
<button type="button" class="link-btn link-btn-copy" onclick="copyLinkToClipboard()" id="copy-link-btn">
<span class="link-btn-icon">📋</span>
<span id="copy-btn-text">Copy Link</span>
</button>
<a href="https://attentive-master-git-flow.base44.app" target="_blank" rel="noopener noreferrer" class="link-btn link-btn-visit">
<span class="link-btn-icon">🔗</span>
<span>Visit Link</span>
</a>
</div>
</div>
<script>
function copyLinkToClipboard() {
var link = 'https://attentive-master-git-flow.base44.app';
navigator.clipboard.writeText(link).then(function() {
var btn = document.getElementById('copy-link-btn');
var btnText = document.getElementById('copy-btn-text');
var originalText = btnText.textContent;
btn.classList.add('copied');
btnText.textContent = 'Copied!';
setTimeout(function() {
btn.classList.remove('copied');
btnText.textContent = originalText;
}, 2000);
}).catch(function(err) {
alert('Link: ' + link);
});
}
</script>
Live Preview