콘텐츠로 이동

푸터

이 테마는 기본 Starlight 푸터를 표준 푸터 콘텐츠 아래에 소셜 미디어 링크를 추가하는 커스텀 Footer.astro 구성 요소로 대체합니다.

---
import Default from '@astrojs/starlight/components/Footer.astro';
---
<Default {...Astro.props}><slot /></Default>
<div class="social-links">
<!-- social link icons -->
</div>

이 패턴은 기본 푸터를 완전히 교체하는 대신 확장합니다. <Default {...Astro.props}><slot /></Default>는 원본 Starlight 푸터(이전/다음 내비게이션)를 렌더링하고, 그 아래에 소셜 링크가 추가됩니다.

푸터 재정의는 index.ts의 Starlight 플러그인에 의해 등록됩니다. config:setup 훅 실행 중에 Footer 구성 요소 재정의를 설정합니다:

updateConfig({
components: {
...config.components,
Footer: '@f5-sales-demo/docs-theme/components/Footer.astro',
// ... other component overrides
},
});

콘텐츠 저장소는 푸터를 수동으로 등록할 필요가 없으며, 테마 플러그인이 로드될 때 자동으로 적용됩니다.

플랫폼URL아이콘 색상Aria 레이블
Facebookhttps://www.facebook.com/f5incorporated#1877F2 (Facebook Blue)Facebook
Xhttps://x.com/F5currentColor (상속)X
LinkedInhttps://www.linkedin.com/company/f5/#0A66C2 (LinkedIn Blue)LinkedIn
Instagramhttps://www.instagram.com/f5.global/#E4405F (Instagram Pink)Instagram
YouTubehttps://www.youtube.com/user/f5networksinc#FF0000 (YouTube Red)YouTube

각 링크는 새 탭(target="_blank")에서 열리며, 보안을 위해 rel="noopener noreferrer"가 적용됩니다.

.social-links {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 1.25rem;
padding: 1rem 0 0.5rem;
}
.social-links a {
display: inline-flex;
transition: opacity 0.2s ease;
}
.social-links a:hover {
opacity: 0.7;
}

링크는 플렉스 행에서 오른쪽 정렬되며, 미묘한 불투명도 호버 효과가 적용됩니다.

@f5-sales-demo/docs-theme 패키지 내 components/Footer.astro에서 해당 <a> 태그의 href 속성을 편집합니다.

24x24 SVG 아이콘과 함께 .social-links div 안에 새 <a> 요소를 추가합니다. 기존 패턴을 따르세요:

<a href="https://example.com" target="_blank" rel="noopener noreferrer" aria-label="Platform Name">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#COLOR">
<path d="..."/>
</svg>
</a>

제거하려는 플랫폼의 전체 <a>...</a> 블록을 삭제합니다.

<svg> 요소의 fill 속성을 수정합니다. 텍스트 색상을 상속하려면 currentColor를 사용하고, 브랜드 색상에는 특정 16진수 값을 사용합니다.

<style> 블록의 .social-links CSS를 수정합니다:

  • 가운데 정렬: justify-contentcenter로 변경
  • 넓은 간격: gap 값 증가
  • 왼쪽 정렬: justify-contentflex-start로 변경