Skip to content

Commit ef48808

Browse files
committed
feat: enhance landing page with GitHub link and NocturneButton updates
- Added a GitHub link in the footer for easy access to the project repository. - Simplified the NocturneButton component by removing unnecessary elements and adjusting styles for improved layout. - Updated localization files to include the new GitHub string in both English and Chinese. Signed-off-by: Innei <[email protected]>
1 parent fc994ed commit ef48808

File tree

6 files changed

+28
-20
lines changed

6 files changed

+28
-20
lines changed

apps/landing/src/components/landing/NocturneButton.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,13 @@ export const NocturneButton = ({
2323
<button
2424
type="button"
2525
className={cn(
26-
'group relative inline-flex items-center gap-4 overflow-hidden rounded-full px-8 py-3 text-sm tracking-[0.4em] uppercase transition',
26+
'group relative inline-flex h-10 items-center justify-center overflow-hidden rounded-full px-8 text-sm tracking-[0.4em] uppercase transition',
2727
variantStyles,
2828
className,
2929
)}
3030
{...props}
3131
>
32-
<span className="relative z-10 flex items-center gap-4">
33-
<span
34-
className={cn(
35-
'inline-flex size-6 items-center justify-center rounded-full border text-[0.55rem] tracking-[0.3em]',
36-
variant === 'primary'
37-
? 'border-black/30 bg-black/5 text-black/70'
38-
: 'border-white/30 text-white/70',
39-
)}
40-
>
41-
AF
42-
</span>
43-
<span className="tracking-normal">{children}</span>
44-
</span>
32+
<span className="relative z-10 tracking-normal">{children}</span>
4533
<span className="pointer-events-none absolute inset-0 rounded-full border border-white/10 opacity-40" />
4634
{variant === 'primary' ? (
4735
<span className="pointer-events-none absolute inset-0 bg-linear-to-r from-white/60 via-transparent to-white/60 opacity-40" />

apps/landing/src/components/layout/Footer.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ export const Footer = () => {
2727
<div className="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
2828
<p>{t('copyright')}</p>
2929
<div className="flex gap-6 text-white/70">
30+
<a
31+
href="https://github.com/Afilmory/Afilmory"
32+
target="_blank"
33+
rel="noopener noreferrer"
34+
className="transition hover:text-white"
35+
>
36+
{t('github')}
37+
</a>
3038
<Link href="/privacy" className="transition hover:text-white">
3139
{t('privacy')}
3240
</Link>

apps/landing/src/components/layout/PageHeader.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,21 @@ export const PageHeader = () => {
112112

113113
{/* CTA 按钮组 */}
114114
<div className="relative z-10 flex items-center gap-2">
115-
<NocturneButton
116-
onClick={handleGetStarted}
117-
className="px-5 py-2 text-xs"
115+
<a
116+
href="https://github.com/Afilmory/Afilmory"
117+
target="_blank"
118+
rel="noopener noreferrer"
119+
className={clsxm(
120+
'flex h-10 w-10 items-center justify-center rounded-full border transition-all duration-300',
121+
scrolled
122+
? 'border-white/20 bg-white/8 text-white/80 hover:border-white/30 hover:bg-white/12 hover:text-white'
123+
: 'border-white/15 bg-white/5 text-white/70 hover:border-white/25 hover:bg-white/8 hover:text-white/90',
124+
)}
125+
aria-label="GitHub"
118126
>
127+
<i className="i-lucide-github size-4" />
128+
</a>
129+
<NocturneButton onClick={handleGetStarted} className="px-5 text-xs">
119130
{t('cta')}
120131
</NocturneButton>
121132
</div>

apps/landing/src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
"description": "Afilmory crafts immersive showcases for photographers, curators, and brands. A dark corridor replaces noise so stories can be heard.",
177177
"privacy": "Privacy Policy",
178178
"terms": "Terms of Service",
179+
"github": "GitHub",
179180
"copyright": "© 2025 Afilmory.art"
180181
},
181182
"GalleryShowcase": {

apps/landing/src/locales/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
"description": "Afilmory 致力于为摄影师、策展人和品牌打造沉浸的展示体验。我们以黑色背景延展出一条长廊,观众在其中聆听故事,而非参数。",
177177
"privacy": "隐私政策",
178178
"terms": "服务条款",
179+
"github": "GitHub",
179180
"copyright": "© 2025 Afilmory.art"
180181
},
181182
"GalleryShowcase": {

be/apps/dashboard/src/modules/site-settings/components/DomainListItem.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Trash2 } from 'lucide-react'
33
import { useTranslation } from 'react-i18next'
44

55
import { LinearBorderPanel } from '~/components/common/LinearBorderPanel'
6-
import { resolveBaseDomain } from '~/modules/auth/utils/domain'
76

87
import type { TenantDomain } from '../types'
98
import { DomainBadge } from './DomainBadge'
@@ -18,7 +17,7 @@ interface DomainListItemProps {
1817

1918
export function DomainListItem({ domain, onVerify, onDelete, isVerifying, isDeleting }: DomainListItemProps) {
2019
const { t } = useTranslation()
21-
const baseDomain = resolveBaseDomain(typeof window !== 'undefined' ? window.location.host : '')
20+
2221
const txtName = `_afilmory-verification.${domain.domain}`
2322
const verificationToken = domain.verificationToken ?? '—'
2423

@@ -79,7 +78,7 @@ export function DomainListItem({ domain, onVerify, onDelete, isVerifying, isDele
7978
<div className="space-y-2 rounded-lg border border-fill bg-background p-3">
8079
<KeyValueRow label={t('settings.domain.dns.type')} value="CNAME" />
8180
<KeyValueRow label={t('settings.domain.dns.name')} value={domain.domain} copyable monospace />
82-
<KeyValueRow label={t('settings.domain.dns.value')} value={baseDomain} copyable monospace />
81+
<KeyValueRow label={t('settings.domain.dns.value')} value={window.location.host} copyable monospace />
8382
<FormHelperText className="text-xs text-text-tertiary">
8483
{t('settings.domain.dns.cname.helper')}
8584
</FormHelperText>

0 commit comments

Comments
 (0)