Coder Social home page Coder Social logo

try_yew_with_flowbite's Introduction

تجربة استخدام اطار واجهات ياو مع اطار فلوبيت للواجهات

هذا مثال وتجربة لاستخدام اطار واجهات الويب المبرمج بلغة روست واسمه ياو، مع اطار فلوبيت التنسيقي والتصميمي

ماهو فلوبيت؟ اسمه بالانجليزي "flowbite" وهو اطار لتشكيل هياكل الويب باستخدام تيلوايند "tailwindcss" ما يميز فلوبيت هو انه يختصر الوقت في ايجاد مكونات مترابطة ومتناسقة ومختبرة فتوفر الوقت والجهد.

    الأهداف:
  • استخدام روست في برمجة واجهات الويب
  • اردت تجربة تصميم موقع بالروست كاملا من ناحية النظام الداخلي والواجهات
  • وجدت سهولة في اطار فلوبيت واردت اختباره هنا
ملحوظة: في الحقيقة انا طموح جدا لاستخدام روست في صناعة برمجيات الويب بشكل كامل من نظام داخلي وخارجي، ما زال هناك الكثير في هذا المثال وارحب بمشاركاتكم

Try and experimenting using Flowbite framework with Yew

This is an illustraiton to show how to use Flowbite framework with Yew framework.

My goals

  • Using Rust in backendend and frontend
  • Develop a web app with support to RTL (Arabic) and LTR (English)
  • I like FLowbite framework and I want to use it with Yew to minimize effort.

Screen sample Screenshot from 2023-09-06 20-34-18


My feedback till now:

  • Flowbite can be used with Yew, but need some customization because not all scripts are done.

  • For example I found that in index.html the tagslink and script which not have data-trunk not working properly:

    <!DOCTYPE html>
    <html>
    
    <head>
        <meta charset="utf-8" />
        <title>Yew App with Flowbite</title>
        <link data-trunk rel="tailwind-css" href="tailwind.css" />
        <link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.1/flowbite.min.css" rel="stylesheet" />
    </head>
    
    <body>
    
        <div id="root"></div>
    
        <script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.8.1/flowbite.min.js"></script>
    </body>
    
    </html>
    • In this example Dark mode should be active, but it is not.
    • It is fixed by pointing to the css and js files locally as below:
      <!DOCTYPE html>
          <html>
      
          <head>
              <meta charset="utf-8" />
              <title>Yew App with Flowbite</title>
              <link data-trunk rel="tailwind-css" href="tailwind.css" />
              <link href="assets/flowbite.min.css" rel="stylesheet" />
          </head>
      
          <body>
              <script src="assets/flowbite.min.js"></script>
          </body>
      
      </html>
  • I'm not sure if using JS callback will resolve other issues or not, like exmample: yew / exmaples / js_callback

Finally, I would like to say I'm very passionate about frontend solutions with Rust and still alot of work needed to improve this.

try_yew_with_flowbite's People

Contributors

moaz-mokhtar avatar stromberg90 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.