Skip to content

Commit e1efa8a

Browse files
committed
tmp: sfd button
1 parent e5ca0d2 commit e1efa8a

File tree

4 files changed

+91
-0
lines changed

4 files changed

+91
-0
lines changed

.github/workflows/hugo.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
with:
3838
submodules: recursive
3939
fetch-depth: 0
40+
- name: Apply patches
41+
run: |
42+
cd themes/tehlug-hugo-theme
43+
git apply ../../patches/0001-tmp-attention-button-to-sfd-website.patch
4044
- name: Setup Pages
4145
id: pages
4246
uses: actions/configure-pages@v4

config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ paginate: 3
66
favicon: static/favicon.ico
77

88
params:
9+
customCSS: "/css/attention.css"
910
subtitle: "گروه کاربران گنو/لینوکس بیرجند"
1011
mapView: 0.002
1112
mode: "auto"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From 9695c1f4a0b42baee004cdd80df8f07aa8789701 Mon Sep 17 00:00:00 2001
2+
From: Amir Mohammadi <amiremohamadi@yahoo.com>
3+
Date: Wed, 3 Sep 2025 14:01:10 +0330
4+
Subject: [PATCH] tmp: attention button to sfd website
5+
6+
---
7+
layouts/index.html | 7 +++++++
8+
1 file changed, 7 insertions(+)
9+
10+
diff --git a/layouts/index.html b/layouts/index.html
11+
index fcc5e89..96d8cdb 100644
12+
--- a/layouts/index.html
13+
+++ b/layouts/index.html
14+
@@ -5,6 +5,13 @@
15+
<div class="container wrapper">
16+
{{ partial "head.html" . }}
17+
18+
+ <div class="attention-wrapper">
19+
+ <button class="attention-button" onclick="window.location.href='https://sfd.birlug.ir'">
20+
+ <div class="pulse-dot"></div>
21+
+ ثبت‌نام جشن آزادی نرم‌افزار
22+
+ </button>
23+
+ </div>
24+
+
25+
<div class="recent-posts section">
26+
<h2 class="section-header">
27+
اخبار و جلسات
28+
--
29+
2.42.0
30+

static/css/attention.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
.attention-wrapper {
2+
display: flex;
3+
justify-content: center;
4+
}
5+
6+
.attention-button {
7+
position: relative;
8+
display: flex;
9+
align-items: center;
10+
gap: 12px;
11+
background: #6fcf97;
12+
color: #0d1f33;
13+
padding: 18px 40px;
14+
margin-top: 8px;
15+
margin-bottom: 38px;
16+
border: none;
17+
border-radius: 50px;
18+
cursor: pointer;
19+
box-shadow: 0 6px 16px rgba(0,0,0,0.4);
20+
transition: transform 0.2s ease, box-shadow 0.3s ease;
21+
}
22+
23+
.attention-button:hover {
24+
transform: scale(1.1);
25+
}
26+
27+
.pulse-dot {
28+
width: 16px;
29+
height: 16px;
30+
background: #f2994a;
31+
border-radius: 50%;
32+
position: relative;
33+
}
34+
35+
.pulse-dot::after {
36+
content: "";
37+
position: absolute;
38+
top: -6px;
39+
left: -6px;
40+
width: 28px;
41+
height: 28px;
42+
border-radius: 50%;
43+
background: rgba(255,111,60,0.5);
44+
animation: pulse 0.8s infinite;
45+
}
46+
47+
@keyframes pulse {
48+
0% {
49+
transform: scale(0.5);
50+
opacity: 1;
51+
}
52+
100% {
53+
transform: scale(1.8);
54+
opacity: 0;
55+
}
56+
}

0 commit comments

Comments
 (0)