Skip to content

Commit

Permalink
del PH badge
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdenasser committed Feb 25, 2025
1 parent 5ca2cc1 commit 2e5bd73
Showing 1 changed file with 0 additions and 172 deletions.
172 changes: 0 additions & 172 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ <h1 class="gradient-text">Monitor Your System<br>With Style</h1>
</a>
</div>
<div class="badges">
<div class="ph-badge-placeholder">
<a href="https://www.producthunt.com/posts/neohtop?utm_source=badge-featured" target="_blank"
rel="noopener">
<img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=neohtop&theme=light"
alt="NeoHtop - Modern system monitor for macOS | Product Hunt" style="width: 250px; height: 54px;"
width="250" height="54" />
</a>

</div>
<script data-name="BMC-Widget" data-cfasync="false"
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="abdenasser"
data-description="Support me on Buy me a coffee!" data-message="" data-color="#FF5F5F"
Expand Down Expand Up @@ -460,169 +451,6 @@ <h2 class="section-title">Frequently Asked Questions</h2>
</div>
</section>

<!-- App Promotion Modal -->
<div id="appPromoModal" class="app-promo-modal">
<div class="app-promo-content">
<button class="close-modal" onclick="closePromoModal()">×</button>
<div class="app-card">
<img
src="https://is1-ssl.mzstatic.com/image/thumb/Purple221/v4/20/7d/90/207d90bc-5431-430b-2f4c-c34eb88b79ce/AppIcon-0-0-1x_U007epad-0-85-220.png/460x0w.webp"
alt="Headshot Photo AI Generator Icon" />
<div class="app-info">
<h4>Try My Other App</h4>
<h3>Headshot Photo AI Generator</h3>
<p>Create stunning professional AI headshots in seconds</p>
<a href="https://apps.apple.com/us/app/headshot-photo-ai-generator/id6505079560" target="_blank"
class="app-store-button">
View on App Store
</a>
</div>
</div>
</div>
</div>

<style>
.app-promo-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
backdrop-filter: blur(4px);
}

.app-promo-modal.show {
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.3s ease-out;
}

.app-promo-content {
background: #ffffff;
padding: 2rem;
border-radius: 12px;
max-width: 500px;
width: 90%;
position: relative;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
.app-promo-content {
background: #1a1a1a;
color: #ffffff;
}
}

.close-modal {
position: absolute;
top: 1rem;
right: 1rem;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: inherit;
padding: 0.5rem;
line-height: 1;
}

.app-card {
display: flex;
align-items: center;
gap: 1.5rem;
margin-top: 0.5rem;
}

.app-card img {
width: 80px;
height: 80px;
border-radius: 16px;
}

.app-info h3 {
margin: 0.5rem 0;
color: inherit;
}

.app-info h4 {
margin: 0;
color: #666666;
font-weight: normal;
}

@media (prefers-color-scheme: dark) {
.app-info h4 {
color: #999999;
}
}

.app-info p {
margin: 0.5rem 0 1rem 0;
color: #666666;
}

@media (prefers-color-scheme: dark) {
.app-info p {
color: #999999;
}
}

.app-store-button {
display: inline-block;
padding: 0.5rem 1rem;
background: #007AFF;
color: white;
border-radius: 6px;
text-decoration: none;
font-weight: 500;
}

.app-store-button:hover {
opacity: 0.9;
}

@keyframes fadeIn {
from {
opacity: 0;
}

to {
opacity: 1;
}
}
</style>

<!-- Add this to your main.js file or before </body> -->
<script>
// Remove duplicate setTimeout
function showPromoModal() {
const modal = document.getElementById('appPromoModal');
modal.classList.add('show');
}

function closePromoModal() {
const modal = document.getElementById('appPromoModal');
modal.classList.remove('show');
// Set cookie to prevent showing again for 7 days
document.cookie = "appPromoShown=true;max-age=604800;path=/";
}

// Check if modal was already shown
function shouldShowModal() {
return !document.cookie.includes('appPromoShown=true');
}

// Only show modal if it hasn't been shown before
if (shouldShowModal()) {
setTimeout(showPromoModal, 8000);
}
</script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-88HFXRBNLS"></script>
<script>
Expand Down

0 comments on commit 2e5bd73

Please sign in to comment.