Content Link Component(콘텐츠 링크 구성 요소)로 건너뛰기
Tailwind CSS를 사용하여 반응형 효과 및 어두운 테마 지원과 함께 3D 스타일의 '콘텐츠로 건너뛰기' 링크를 제공하는 웹 구성 요소입니다.
HTML 코드
<div class="relative group">
<a href="#main-content" class="inline-block px-4 py-2 text-white bg-blue-500 rounded-full shadow-lg transform transition-transform duration-300 ease-in-out hover:scale-105 hover:shadow-2xl dark:bg-blue-700 dark:shadow-lg dark:hover:scale-110">
Skip to Content
</a>
<div class="absolute left-0 translate-y-full opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out">
<div class="bg-gray-800 dark:bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg">
Skip past navigation and other elements to main content.
</div>
</div>
</div>
<div id="main-content" class="mt-10 bg-gray-100 dark:bg-gray-800 p-6 rounded-lg shadow-md">
<h1 class="text-2xl font-bold text-gray-900 dark:text-white">Main Content Area</h1>
<p class="mt-4 text-gray-700 dark:text-gray-300">This is where the main content goes. You can add your text and images here.</p>
<img src="https://picsum.photos/600/400" alt="Random placeholder" class="mt-4 rounded-lg shadow-md">
<p class="mt-4 text-gray-700 dark:text-gray-300">You can use this space to illustrate the content being referred to by the 'Skip to Content' link.</p>
</div>
관련 구성 요소
Content Link Component(콘텐츠 링크 구성 요소)로 건너뛰기
CRM/비즈니스 도구를 위한 단순하고 단색의 자연에서 영감을 받은 '콘텐츠로 건너뛰기' 링크 구성 요소로, 다크 모드 지원으로 접근성과 응답성을 보장합니다.
Content Link Component(콘텐츠 링크 구성 요소)로 건너뛰기
깔끔하고 미니멀한 'skip to content' 링크 구성 요소는 스포츠/피트니스 애플리케이션을 위한 것으로, 그레이스케일 색 구성표로 설계되었습니다. 반응형이며 다크 모드를 지원하여 타이포그래피와 접근성을 강조합니다.