구성 요소 미디어 구성 요소 Monospace_Developer_Media_Component

Monospace_Developer_Media_Component

학습 플랫폼용으로 설계된 고정 공간/개발자 디자인 스타일과 바다/파란색 색 구성표를 갖춘 복잡한 교육 지향적인 미디어 구성 요소입니다. 미디어 재생, 코드 조각 및 구조화된 콘텐츠 섹션이 포함됩니다.

미리 보기

HTML 코드

<div class="font-['Menlo',_Monaco,_Consolas,_'Liberation_Mono',_'Courier_New',_monospace] bg-gray-50 text-blue-900 min-h-screen p-4 dark:bg-gray-900 dark:text-blue-100 transition-colors duration-300">
  <div class="max-w-7xl mx-auto bg-white shadow-lg rounded-lg overflow-hidden dark:bg-gray-800 border border-blue-200 dark:border-blue-700">
    <!-- Header/Title Section -->
    <header class="bg-blue-800 text-white p-4 flex items-center justify-between dark:bg-blue-900">
      <h1 class="text-xl font-bold flex items-center">
        <svg class="w-6 h-6 mr-2 text-blue-200" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M12.316 3.051A1 1 0 0113 2v2.247a1 1 0 01-.018.067L10.021 12.5h-2.11C5.698 12.5 5 13.197 5 14s.698 1.5 1.5 1.5h1.968l-3.328 3.328A1 1 0 016.328 20L9 17.328l3.328 3.328A1 1 0 0113.672 20L11 17.328l3.672-3.672A1 1 0 0115 13c-.001-.01-.004-.019-.009-.028-.684-1.12-1.921-1.872-3.327-1.977l.006-8.084zM10 5.25v6.5h-2.25v-6.5zm-3 3.5v-3.5h-1.5v3.5zm6 0v-3.5h1.5v3.5zM12 7.75v3.5h1.5v-3.5zm-3 3.5v-3.5h-1.5v3.5z" clip-rule="evenodd"></path></svg>
        Module: Introduction to Data Structures
      </h1>
      <div class="flex space-x-3">
        <button class="px-3 py-1 bg-blue-700 rounded text-sm hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:bg-blue-800 dark:hover:bg-blue-700">Download Resources</button>
        <button class="px-3 py-1 bg-blue-700 rounded text-sm hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:bg-blue-800 dark:hover:bg-blue-700">Mark Complete</button>
      </div>
    </header>

    <!-- Main Content Area -->
    <div class="md:flex">
      <!-- Left Column: Video Player & Description -->
      <section class="md:w-3/5 p-6 border-r border-blue-100 dark:border-blue-700">
        <div class="aspect-w-16 aspect-h-9 bg-black rounded overflow-hidden mb-6 border border-blue-500 dark:border-blue-600">
          <iframe class="w-full h-full" src="https://www.youtube.com/embed/dQw4w9WgXcQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
        </div>

        <h2 class="text-2xl font-bold mb-3 text-blue-800 dark:text-blue-200">Lesson 1: Understanding Arrays</h2>
        <p class="mb-4 leading-relaxed text-gray-700 dark:text-gray-300">
          Arrays are fundamental data structures that store a fixed-size sequential collection of elements of the same type. This lesson covers their basic definition, memory allocation, and common operations like initialization, accessing elements, and basic traversal.
        </p>
        \div class="text-sm text-gray-600 dark:text-gray-400 mb-6">
          <p>Published: <time datetime="2023-10-26">October 26, 2023</time></p>
          <p>Instructor: Dr. Alice Smith</p>
        </div">

        <!-- Key Concepts Section -->
        <article class="border-t border-b border-blue-200 py-6 mb-6 dark:border-blue-700">
          <h3 class="text-xl font-semibold mb-4 text-blue-800 dark:text-blue-200">Key Concepts</h3>
          <ul class="list-disc list-inside text-gray-700 dark:text-gray-300 marker:text-blue-600 dark:marker:text-blue-400">
            <li class="mb-2">Definition of an array and its contiguous memory allocation.</li>
            <li class="mb-2">Indexing: zero-based vs. one-based.</li>
            <li class="mb-2">Common operations: declaration, initialization, element access, and update.</li>
            <li>Distinction between static and dynamic arrays.</li>
          </ul>
        </article>

        <!-- Further Reading -->
        <article>
          <h3 class="text-xl font-semibold mb-4 text-blue-800 dark:text-blue-200">Further Reading</h3>
          <ul class="space-y-3">
            <li><a href="#" class="flex items-center text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200 transition-colors"><svg class="w-4 h-4 mr-2 text-blue-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z" clip-rule="evenodd"></path></svg> Wikipedia: Array Data Structure</a></li>
            <li><a href="#" class="flex items-center text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200 transition-colors"><svg class="w-4 h-4 mr-2 text-blue-500" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z" clip-rule="evenodd"></path></svg> GeeksforGeeks: Arrays</a></li>
          </ul>
        </article>
      </section>

      <!-- Right Column: Code Snippets, Q&A, and Navigation -->
      <aside class="md:w-2/5 p-6 bg-blue-50 dark:bg-gray-850">
        <!-- Code Snippet Section -->
        <div class="mb-6">
          <h3 class="text-xl font-semibold mb-3 text-blue-800 dark:text-blue-200">Code Example: Array Initialization (Python)</h3>
          <pre class="bg-blue-900 text-blue-50 p-4 rounded-md text-sm overflow-x-auto dark:bg-gray-950 dark:text-gray-100 border border-blue-700 dark:border-blue-700">
            <code class="language-python">
# Declaring and initializing an array
my_array = [10, 20, 30, 40, 50]

# Accessing an element
print(f"First element: {my_array[0]}") # Output: 10

# Iterating through an array
for element in my_array:
    print(element)
            </code>
          </pre>
        </div>

        <!-- Table of Contents / Navigation -->
        <nav class="mb-6">
          <h3 class="text-xl font-semibold mb-3 text-blue-800 dark:text-blue-200">Module Navigation</h3>
          <ul class="space-y-2">
            <li><a href="#" class="block p-3 bg-blue-100 rounded hover:bg-blue-200 text-blue-800 font-medium dark:bg-blue-700 dark:hover:bg-blue-600 dark:text-blue-100 transition-colors"><span class="mr-2 text-blue-600 dark:text-blue-200">&#9658;</span> Lesson 1: Understanding Arrays <span class="text-xs text-blue-500 dark:text-blue-300 ml-2">(Current)</span></a></li>
            <li><a href="#" class="block p-3 rounded hover:bg-blue-100 text-gray-700 dark:text-gray-300 dark:hover:bg-blue-700 dark:hover:text-blue-100 transition-colors"><span class="mr-2 text-gray-400 dark:text-blue-500">&#9658;</span> Lesson 2: Array Operations</a></li>
            <li><a href="#" class="block p-3 rounded hover:bg-blue-100 text-gray-700 dark:text-gray-300 dark:hover:bg-blue-700 dark:hover:text-blue-100 transition-colors"><span class="mr-2 text-gray-400 dark:text-blue-500">&#9658;</span> Lesson 3: Multidimensional Arrays</a></li>
            <li><a href="#" class="block p-3 rounded hover:bg-blue-100 text-gray-700 dark:text-gray-300 dark:hover:bg-blue-700 dark:hover:text-blue-100 transition-colors"><span class="mr-2 text-gray-400 dark:text-blue-500">&#9658;</span> Quiz: Array Fundamentals</a></li>
          </ul>
        </nav>

        <!-- Instructor Profile -->
        <div class="bg-white rounded-lg shadow-sm p-4 text-center dark:bg-gray-800 border border-blue-200 dark:border-blue-700">
          <h3 class="text-xl font-semibold mb-4 text-blue-800 dark:text-blue-200">Instructor Info</h3>
          <img class="w-24 h-24 rounded-full mx-auto mb-3 border-2 border-blue-400 dark:border-blue-500" src="https://randomuser.me/api/portraits/women/68.jpg" alt="Instructor Alice Smith">
          <p class="text-lg font-bold text-blue-800 dark:text-blue-200">Dr. Alice Smith</p>
          <p class="text-xs text-gray-600 dark:text-gray-400 mb-3">Lead Data Scientist & Adjunct Professor</p>
          <p class="text-sm text-gray-700 dark:text-gray-300">Specializing in algorithms and complex data structures. Passionate about making computer science accessible.</p>
        </div>
      </aside>
    </div>

    <!-- Comments/Questions Section (Placeholder) -->
    <section class="bg-blue-50 p-6 border-t border-blue-100 dark:bg-gray-850 dark:border-blue-700">
      <h2 class="text-2xl font-bold mb-4 text-blue-800 dark:text-blue-200">Questions & Discussion</h2>
      <div class="bg-white rounded-lg p-4 shadow-sm dark:bg-gray-700 border border-blue-200 dark:border-blue-700">
        <p class="text-gray-700 dark:text-gray-300">No questions yet. Be the first to ask!</p>
        <button class="mt-4 px-4 py-2 bg-blue-700 text-white rounded hover:bg-blue-600 dark:bg-blue-800 dark:hover:bg-blue-700 transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">Ask a Question</button>
      </div>
    </section>

    <!-- Footer -->
    <footer class="bg-blue-800 text-white p-4 text-center text-sm dark:bg-blue-900">
      &copy; 2023 Learning Platform. All rights reserved.
    </footer>
  </div>
</div>

관련 구성 요소

미디어 컴포넌트 컴포넌트

브루탈리즘 스타일로 디자인된 미디어 구성 요소로, Tailwind CSS를 사용하여 고대비, 반응형 효과 및 어두운 테마 지원을 갖춘 대담한 레이아웃을 보여줍니다.

열다

미디어 컴포넌트 컴포넌트

Tailwind CSS로 디자인된 매력적인 애니메이션과 함께 마이크로 인터랙션을 특징으로 하는 반응형 미디어 구성 요소입니다. 어두운 테마를 지원하며 자리 표시자 이미지와 아바타를 포함합니다.

열다

레트로 미디어 컴포넌트

레트로/빈티지 디자인의 반응형 미디어 구성 요소는 다크 모드를 지원합니다.

열다