Tailwind CSS bug hatası

Yeniçocuk

Kilopat
Katılım
30 Kasım 2018
Mesajlar
5.554
Makaleler
2
Çözümler
13
Merhaba, iyi akşamlar. Tailwind CSS öğreniyorum. Video izlerken yazdığım kodlar aynı olmasına rağmen çalışmıyor. CLI yöntemi ile kurulan bütün dosyaları silip, tekrar aynı yöntem ile kurduğumda çalışıyor. Bunu tamamen engellemenin çözümü yok mu? Dün açtığım konuda yaşadığım sorunu bu sabah sil kur yaptığımda çalışıyordu. Yazdığım kod ve video ve GitHub üzerindeki kodlar.
Bu içeriği görüntülemek için üçüncü taraf çerezlerini yerleştirmek için izninize ihtiyacımız olacak.
Daha detaylı bilgi için, çerezler sayfamıza bakınız.

Kod:
 <nav class="relative container mx-auto p-6">

 <!-- Flex Container -->

 <div class="flex items-center justify-between">
 <!-- Logo -->

 <div class="pt-2">
 <img src="../img/logo.svg" alt="">
 </div>

 <!-- Menu Items -->
 <div class="hidden space-x-6 md:flex">
 <a href="#" class="hover:text-darkGrayishBlue">Pricing</a>
 <a href="#" class="hover:text-darkGrayishBlue">Product</a>
 <a href="#" class="hover:text-darkGrayishBlue">About Us</a>
 <a href="#" class="hover:text-darkGrayishBlue">Careers</a>
 <a href="#" class="hover:text-darkGrayishBlue">Community</a>
 </div>

 <!-- Button -->

 <a href="#"
 class="hidden md:block p-3 px-6 pt-2 text-white bg-brightRed rounded-full baseline hover:bg-brightRedLight">Get
 Started</a>

 </div>

 </nav>

 <!-- Hero Section -->

 <section id="hero">
 <!-- Flex Container -->

 <div
 class="container flex flex-col-reverse items-center px-6 mx-auto mt-10 space-y-0 md:space-y-0 md:flex-row">

 <!-- Left İtem -->

 <div class="flex flex-col mb-32 space-y-12 md:w-1/2">

 <h1 class="max-w-md text-4xl font-bold text-center md:text-5xl md:text-left">
 Bring everyone together to build better products.
 </h1>

 <p class="max-w-sm text-center text-darkGrayishBlue md:text-left">Manage makes it simple for software.
 teams to pla day-to-day tasks while keeping the larger teams goals in view.</p>

 <div class="flex justify-center md:justify-start">
 <a href="#" class="p-3 px-6 pt-2 text-white bg-brightRed rounded-full baseline hover:bg-brightRedLight">Get Started</a>
 </div>

 </div>

 <!-- Image -->

 <div class="md:w-1/2">
 <img src="../img/illustration-intro.svg" alt="">
 </div>

 </div>

 </section>

 <!-- Features Section -->

 <section id="features">
 <!-- Flex Container -->

 <div class="container flex flex-col px-4 mx-auto mt-10 space-y-12 md:space-y-0 md:flex-row">
 <!-- What's Differents -->

 <div class="flex flex-col space-y-12 md:w-1/2">

 <h2 class="max-w-md text-4xl font-bold text-center md:text-left">
 What's different about Manage? </h2>

 <p class="max-w-sm text-center text-darkGrayishBlue md:text-left">Manage provides all the functionality your team needs, without the complexity. Our software is tailor-made for modern digital product teams.</p>

 </div>

 <!-- Numbered List -->

 <div class="flex flex-col space-y-8 md:w-1/2">

 <!-- List Item 1 -->

 <div class="flex flex-col space-y-3 md:space-y-0 md:space-x-6 md:flex-row">

 <!-- Heading -->

 <div class="rounded-l-full bg-brightRedSupLight md:bg-transparent">

 <div class="flex items-center space-x-2">

 <div class="px-4 py-2 text-white rounded-full md:py-1 bg-brightRed">
 01.
 </div>

 <h3 class="text-base font-bold md:mb-4 md:hidden">
 Track company-wide progress.
 </h3>

 </div>

 </div>

 <div>

 <h3 class="hidden mb-4 text-lg font-bold md:block">Track company-wide progress</h3>
 <p class="text-darkGrayishBlue">
 See how your day-to-day tasks fit into the wider vision. Go from tracking progress at the milestone level all the way down to the smallest of details. Never lose sight of the bigger picture again.
 </p>

 </div>

 </div>

 <!-- List Item 2 -->

 <div class="flex flex-col space-y-3 md:space-y-0 md:space-x-6 md:flex-row">

 <!-- Heading -->

 <div class="rounded-l-full bg-brightRedSupLight md:bg-transparent">

 <div class="flex items-center space-x-2">

 <div class="px-4 py-2 text-white rounded-full md:py-1 bg-brightRed">
 02.
 </div>

 <h3 class="text-base font-bold md:mb-4 md:hidden">
 Advanced built-in reports.
 </h3>

 </div>

 </div>

 <div>

 <h3 class="hidden mb-4 text-lg font-bold md:block"> Advanced built-in reports</h3>
 <p class="text-darkGrayishBlue"> Set internal delivery estimates and track progress toward company goals. Our customisable dashboard helps you build out the reports you need to keep key stakeholders informed.
 </p>

 </div>

 </div>

 <!-- List Item 3 -->

 <div class="flex flex-col space-y-3 md:space-y-0 md:space-x-6 md:flex-row">

 <!-- Heading -->

 <div class="rounded-l-full bg-brightRedSupLight md:bg-transparent">

 <div class="flex items-center space-x-2">

 <div class="px-4 py-2 text-white rounded-full md:py-1 bg-brightRed">
 03.
 </div>

 <h3 class="text-base font-bold md:mb-4 md:hidden">
 Everything you need in one place.
 </h3>

 </div>

 </div>

 <div>

 <h3 class="hidden mb-4 text-lg font-bold md:block"> Everything you need in one place.
 </h3>

 <p class="text-darkGrayishBlue"> Stop jumping from one service to another to communicate, store files, track tasks and share documents. Manage offers an.
 all-in-one team productivity solution.
 </p>

 </div>

 </div>

 </div>

 </div>

 </section>

 <!-- Testimonials -->

 <section id="testimonials">

 <!-- Container to Heading and testm blocks -->

 <div class="max-w-6xl px-5 mx-auto mt-32 text-center">
 <!-- Heading -->

 <h2 class="text-4xl font-bold text-center">
 What's different About Manage?
 </h2>

 <!-- Testimonials Container -->

 <div class="flex flex-col mt-24 md:flex-row md:space-x-6">

 <!-- Testimonials 1 -->
 <div
 class="flex flex-col items-center p-6 space-y-6 rounded-lg bg-veryLightGray md:w-1/3"
 >
 <img src="../img/avatar-anisha.png" class="w-16 -mt-14" alt="" />
 <h5 class="text-lg font-bold">Anisha Li</h5>
 <p class="text-sm text-darkGrayishBlue">
 “Manage has supercharged our team’s workflow. The ability to.
 maintain visibility on larger milestones at all times keeps.
 everyone motivated.”
 </p>
 </div>

 </div>

 </div>

 </section>
 
Son düzenleyen: Moderatör:
Tailwind.config.js dosyanızın içeriği ne durumda? Girdiğiniz hiçbir class çalışmıyorsa tailwind.config.js dosyanızda content ayarı yapmanız gerekiyordur.
 
Tailwind.config.js dosyanızın içeriği ne durumda? Girdiğiniz hiçbir class çalışmıyorsa tailwind.config.js dosyanızda content ayarı yapmanız gerekiyordur.


Bir yere kadar sorunsuz çalışıyor. Sonra aniden yazdığım class çalışmayıp sonradan tamamen gidiyordu. Mecbur bütün dosyaları silip CLI ile tekrardan kuruyordum. Bu projeyi bitirdim. Github hesabıma ekledim.

Aynısı Tayfun Erbilen tailwind. CSS videosundaki uygulamayı yaparken de yaşamıştım. Flex-col class çalışmıyordu. Silip tekrar kurunca çalışıyordu. Bundan sonra CDN yöntemi ile çekerim artık dosyayı. Çok tuhaf ve saçma durum.​

@Fatalis sorunun nasıl çözüleceğini buldum. Bugün yine yaşamıştım. Terminal'e
Npx TailwindCSS -i ./src/input.css -o ./dist/output.css --Watch yazınca sorunum çözülmüştü.
 
Son düzenleme:

Yeni konular

Geri
Yukarı