refactor: enhance UI styling for link cards and update profile bio with HTML support
This commit is contained in:
@@ -6,7 +6,9 @@
|
|||||||
const CONFIG = {
|
const CONFIG = {
|
||||||
profile: {
|
profile: {
|
||||||
name: "nudoragon",
|
name: "nudoragon",
|
||||||
bio: "設計與開發的探索者 | 建立數位世界的連結",
|
bio: `歡迎來信私訊交朋友,帶上自介+來意即可 \n
|
||||||
|
#被動方 #P #transwoman #infp-t #Cancer \n
|
||||||
|
詳細內容可見<a href="https://blog.nudoragon.com/post/about-me/">部落格的關於我</a>`,
|
||||||
avatar: "avatar.png", // 已從部落格擷取
|
avatar: "avatar.png", // 已從部落格擷取
|
||||||
favicon: "avatar.png", // 使用與 avatar 相同的圖片作為 favicon
|
favicon: "avatar.png", // 使用與 avatar 相同的圖片作為 favicon
|
||||||
copyrightYear: 2026
|
copyrightYear: 2026
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<title>nudoragon | 個人連結</title>
|
<title>nudoragon | 個人連結</title>
|
||||||
<meta name="description" content="nudoragon 的個人品牌與社交連結入口。包含部落格、專案與聯絡資訊。">
|
<meta name="description" content="nudoragon 的個人品牌與社交連結入口。包含部落格、專案與聯絡資訊。">
|
||||||
<link rel="icon" id="favicon" href="">
|
<link rel="icon" id="favicon" href="">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css?v=1.1">
|
||||||
<link rel="me" href="https://mastodon.social/@nudoragon">
|
<link rel="me" href="https://mastodon.social/@nudoragon">
|
||||||
<link rel="me" href="https://nudoragon.com">
|
<link rel="me" href="https://nudoragon.com">
|
||||||
<link rel="me" href="https://indieauth.nudoragon.com/u/nudoragon/">
|
<link rel="me" href="https://indieauth.nudoragon.com/u/nudoragon/">
|
||||||
|
|||||||
142
style.css
142
style.css
@@ -140,87 +140,144 @@ body {
|
|||||||
|
|
||||||
.bio {
|
.bio {
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
font-size: 1.1rem;
|
font-size: 1.05rem;
|
||||||
max-width: 80%;
|
line-height: 1.75;
|
||||||
|
max-width: 92%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
white-space: pre-line;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bio a {
|
||||||
|
color: #818cf8;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-color: rgba(129, 140, 248, 0.45);
|
||||||
|
text-underline-offset: 4px;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: var(--transition);
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bio a:hover {
|
||||||
|
color: #c084fc;
|
||||||
|
text-decoration-color: #c084fc;
|
||||||
|
text-shadow: 0 0 10px rgba(168, 85, 247, 0.35);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Links Section */
|
/* Links Section */
|
||||||
.links-container {
|
.links-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1.2rem;
|
gap: 1.1rem;
|
||||||
margin-bottom: 3rem;
|
margin-bottom: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-card {
|
.link-card {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: var(--card-bg);
|
background: var(--card-bg);
|
||||||
backdrop-filter: blur(12px);
|
backdrop-filter: blur(14px);
|
||||||
-webkit-backdrop-filter: blur(12px);
|
-webkit-backdrop-filter: blur(14px);
|
||||||
border: 1px solid var(--glass-border);
|
border: 1px solid var(--glass-border);
|
||||||
border-radius: 1.2rem;
|
border-radius: 1.2rem;
|
||||||
padding: 1.2rem;
|
padding: 1.1rem 1.3rem;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
transition: var(--transition);
|
transition: var(--transition);
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-card:hover {
|
.link-card::before {
|
||||||
transform: translateY(-5px) scale(1.02);
|
content: '';
|
||||||
background: rgba(45, 55, 72, 0.8);
|
position: absolute;
|
||||||
border-color: rgba(255, 255, 255, 0.2);
|
inset: 0;
|
||||||
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
|
border-radius: 1.2rem;
|
||||||
}
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 60%);
|
||||||
|
pointer-events: none;
|
||||||
.link-icon {
|
|
||||||
width: 50px;
|
|
||||||
height: 50px;
|
|
||||||
background: rgba(255, 255, 255, 0.1);
|
|
||||||
border-radius: 0.8rem;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
margin-right: 1.2rem;
|
|
||||||
color: var(--primary-color);
|
|
||||||
transition: var(--transition);
|
transition: var(--transition);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.link-card:hover {
|
||||||
|
transform: translateY(-3px);
|
||||||
|
background: rgba(30, 41, 59, 0.85);
|
||||||
|
border-color: rgba(99, 102, 241, 0.4);
|
||||||
|
box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.6), 0 0 20px -4px rgba(99, 102, 241, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-card:hover::before {
|
||||||
|
background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08) 60%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-card:active {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-icon {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08));
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||||
|
border-radius: 0.85rem;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 1.4rem;
|
||||||
|
margin-right: 1.2rem;
|
||||||
|
color: #818cf8;
|
||||||
|
transition: var(--transition);
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.link-card:hover .link-icon {
|
.link-card:hover .link-icon {
|
||||||
background: var(--primary-color);
|
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
|
||||||
color: white;
|
color: #ffffff;
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
|
||||||
|
transform: scale(1.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-content {
|
.link-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-title {
|
.link-title {
|
||||||
display: block;
|
display: block;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 1.1rem;
|
font-size: 1.08rem;
|
||||||
margin-bottom: 0.2rem;
|
margin-bottom: 0.25rem;
|
||||||
|
color: var(--text-primary);
|
||||||
|
transition: color 0.2s ease;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-card:hover .link-title {
|
||||||
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-desc {
|
.link-desc {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 0.9rem;
|
font-size: 0.88rem;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.45;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-arrow {
|
.link-arrow {
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
opacity: 0.5;
|
opacity: 0.4;
|
||||||
transition: var(--transition);
|
transition: var(--transition);
|
||||||
|
flex-shrink: 0;
|
||||||
|
margin-left: 0.8rem;
|
||||||
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-card:hover .link-arrow {
|
.link-card:hover .link-arrow {
|
||||||
transform: translateX(5px);
|
transform: translateX(4px);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
color: var(--primary-color);
|
color: #818cf8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Footer Section */
|
/* Footer Section */
|
||||||
@@ -287,13 +344,28 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bio {
|
.bio {
|
||||||
font-size: 1rem;
|
font-size: 0.95rem;
|
||||||
|
line-height: 1.65;
|
||||||
|
max-width: 96%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.link-card {
|
||||||
|
padding: 1rem 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.link-icon {
|
.link-icon {
|
||||||
width: 44px;
|
width: 42px;
|
||||||
height: 44px;
|
height: 42px;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
|
margin-right: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-title {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-desc {
|
||||||
|
font-size: 0.82rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-icons {
|
.social-icons {
|
||||||
|
|||||||
Reference in New Issue
Block a user