Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <section class="mb-16 md:mb-36" x-data="{activeIndex: 0, hoverIndex: null}">
    <div class="container px-8 lg:px-0 max-w-[850px] mx-auto">
        <div class="relative mb-16 md:mb-24 wow fadeInUp" data-wow-delay="0.2s">
            <h1 class="ttext-3xl md:text-4xl text-center pt-2 tracking-widest mb-8 md:mb-16">募集要項</h1>

        </div>
        <ul class="flex flex-col md:flex-row justify-center gap-y-8 md:gap-2 lg:gap-8 items-center mb-8 wow fadeInUp" data-wow-delay="0.4s">
            <!-- Job 1 -->
            <li @click="activeIndex = 0" @mouseenter="hoverIndex = 0" @mouseleave="hoverIndex = null" :class="{'opacity-100': activeIndex === 0 || hoverIndex === 0, 'opacity-50': activeIndex !== 0 && hoverIndex !== 0}" class="w-full md:w-1/3 text-center text-main-blue border-b border-main-blue cursor-pointer relative">
                <h3 class="pb-4">Job 1</h3>
            </li>
            <!-- Job 2 -->
            <li @click="activeIndex = 1" @mouseenter="hoverIndex = 1" @mouseleave="hoverIndex = null" :class="{'opacity-100': activeIndex === 1 || hoverIndex === 1, 'opacity-50': activeIndex !== 1 && hoverIndex !== 1}" class="w-full md:w-1/3 text-center text-main-blue border-b border-main-blue cursor-pointer relative">
                <h3 class="pb-4">Job 2</h3>
            </li>
            <!-- Job 3 -->
            <li @click="activeIndex = 2" @mouseenter="hoverIndex = 2" @mouseleave="hoverIndex = null" :class="{'opacity-100': activeIndex === 2 || hoverIndex === 2, 'opacity-50': activeIndex !== 2 && hoverIndex !== 2}" class="w-full md:w-1/3 text-center text-main-blue border-b border-main-blue cursor-pointer relative">
                <h3 class="pb-4">Job 3</h3>
            </li>
        </ul>
        <div class="wow fadeInUp" data-wow-delay="1s">
            <!-- Metalworking Details for Job 1 -->
            <div x-show="activeIndex === 0">
                <dl class="leading-8 mb-16">
                    <div class="py-4 md:py-8 border-b border-black flex flex-col md:flex-row items-center">
                        <dt class="w-full md:w-1/5 text-main-blue">Skill 1</dt>
                        <dd class="w-full md:w-4/5">Description 1</dd>
                    </div>
                    <div class="py-4 md:py-8 border-b border-black flex flex-col md:flex-row items-center">
                        <dt class="w-full md:w-1/5 text-main-blue">Skill 2</dt>
                        <dd class="w-full md:w-4/5">Description 2</dd>
                    </div>
                </dl>
            </div>
            <!-- Details for Job 2 -->
            <div x-show="activeIndex === 1">
                <dl class="leading-8 mb-16">
                    <div class="py-4 md:py-8 border-b border-black flex flex-col md:flex-row items-center">
                        <dt class="w-full md:w-1/5 text-main-blue">Skill A</dt>
                        <dd class="w-full md:w-4/5">Description A</dd>
                    </div>
                    <div class="py-4 md:py-8 border-b border-black flex flex-col md:flex-row items-center">
                        <dt class="w-full md:w-1/5 text-main-blue">Skill B</dt>
                        <dd class="w-full md:w-4/5">Description B</dd>
                    </div>
                </dl>
            </div>
            <!-- Message for Job 3 -->
            <div x-show="activeIndex === 2" class="py-16">
                <p class="text-center text-xl md:text-2xl">現在募集しておりません。</p>
            </div>
        </div>
    </div>
</section>



              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console