Giter Site home page Giter Site logo

merakiui / merakiui Goto Github PK

View Code? Open in Web Editor NEW
2.4K 28.0 158.0 5.28 MB

Tailwind CSS components that support RTL languages & fully responsive based on Flexbox & CSS Grid with elegant Dark Mode πŸš€ β˜„οΈ.

Home Page: https://merakiui.com

License: MIT License

HTML 100.00%
tailwindcss tailwindui merakiui css-components ui-components alpinejs

merakiui's Introduction

merakiui's People

Contributors

danurna avatar dependabot[bot] avatar devdhaif avatar donfreddy avatar giorgosmarga avatar harsh07bharvada avatar hnooz avatar hosackm avatar im-fran avatar khatabwedaa avatar mahendra7041 avatar mctweb avatar miaababikir avatar michelruchti avatar owiesnama avatar panta97 avatar rodpadev avatar sdil avatar viniciuskneves avatar vmitchell85 avatar wobsoriano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

merakiui's Issues

Broken Link on Resources Page

Hey thanks for your awesome work.
On your Page:

<a href="/components" target="_blank" class="text-blue-500 hover:underline">Meraki UI Components</a>

the link is broken and refers to "/components", which probably should refers to "/#main"
Cheers

Why dont't we filter the row code from vue component ?

RFC

Instead of declaring repetitively, why dont't we filter the row code from vue component ?

Remove the repetitive code

SuccessPop.vue #L27

<script>
    export default {
        data() {
            return {
                name: 'Success Pop',
-                code: `
-        <div class="flex max-w-sm w-full mx-auto bg-white shadow-md rounded-lg overflow-hidden">
-            <div class="flex justify-center items-center w-12 bg-green-500">
-                <svg class="h-6 w-6 fill-current text-white" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
-                    <path d="M20 3.33331C10.8 3.33331 3.33337 10.8 3.33337 20C3.33337 29.2 10.8 36.6666 20 36.6666C29.2 36.6666 36.6667 29.2 36.6667 20C36.6667 10.8 29.2 3.33331 20 3.33331ZM16.6667 28.3333L8.33337 20L10.6834 17.65L16.6667 23.6166L29.3167 10.9666L31.6667 13.3333L16.6667 28.3333Z"/>
-               </svg>
-            </div>
            
-            <div class="-mx-3 py-2 px-4">
-               <div class="mx-3">
-                    <span class="text-green-500 font-semibold">Success</span>
-                    <p class="text-gray-600 text-sm">Your account was registered!</p>
-               </div>
-            </div>
-        </div>
-            `,
            }
        }
    }
</script>

Filter code from component file

Inspired by Turkyden/image-hover

const requireEffect = require.context('../effects', false, /\.vue$/);
const effectList = requireEffect.keys();

const effects = {};
const components = {};

for (const filename of effectList) {
  const name = filename.replace('./', '').replace('.vue', '');
  const type = name.substring(0, name.indexOf('-'));
  const raw = require(`!!raw-loader!@/effects/${name}`).default;
  const component = requireEffect(filename).default;

  const html = /<template>(.*?)<\/template>/g // find html between template tags
    .exec(JSON.stringify(raw))[0]
    .replace(/<\/?template>/g, '') // remove template tags
    .replace(/^\\n/, '') // remove leading linebreak
    .replace(/\\n/g, '\n') // replace escape characters
    .replace(/\\"/g, '"')
    .replace(/^\\r/, '')
    .replace(/\\r/g, '\r');

  const css = /<style scoped>(.*?)<\/style>/g // find css between style tags
    .exec(JSON.stringify(raw))[0]
    .replace(/<\/?style(?: scoped)?>/g, '') // remove style tags
    .replace(/^\\n/, '') // remove leading linebreak
    .replace(/\\n/g, '\n') // replace escape characters
    .replace(/\\"/g, '"')
    .replace(/^\\r/, '')
    .replace(/\\r/g, '\r');

  effects[name] = { name, type, html, css };
  components[name] = component;
}

export { effects, components };

Usage

import { components, effects } from "@/assets/effects.js";

devDependencies

"raw-loader": "^4.0.1",

Are you familiar with the 0BSD license?

Not long ago I worked with GitHub to add a new license which is perfect for projects where others are encouraged to copy-paste codeβ€”it's called the BSD Zero Clause. If you haven't yet, please consider it as it contains no requirement to carry the license when the code is copied whereas the MIT license does.

Keep up the great work!

Add RTL button

Adding a way to check the rtl version of the component(it will be great if it displayed in Arabic)

Mobile menu doesn't expand collapse on clicking

I copied the code from Headers > Ecommerce one and pasted in CodePen. Added a reference to TailwindCSS, but when I resize the window to see the menu menu, the mobile menu is expanded by default and doesn't collapse/expand on clicking. Do I need some additional JS to make that work? If so, can that be included in the code available?

Question about usage

Hey there,
I have a question about the general usage: So far, I have only used Tailwind CSS from CDN without setting up a build with CLI or similar.
Since I wanted to give MerakiUI a go, I installed nodeJS on my Windows 10 PC and run the commands from the readme:
npm install npm run dev

In which folder/path is my index.html file now so I can get down to coding and using the MerakiUI snippets?
Or do I need to create an index.html file myself?
http://localhost:3000 (where npm hot-reloads for development) just shows a clone of the MerakiUI website but as localhost.

Re-phrasing: If I want to build a website using MerakiUI components do I actually need to clone&build this GitHub repo, or can I just setup a directy with a .html and .css file and import TailwindCSS via CDN and MerakiUI components will just work by default?
If I need to clone this repo and build it with npm to use MerakiUI components, where is the public facing folder in which I would have to create my index.html file?

Kind regards

Ask about section, Product with Side Link

Hi.
First, thank you for this wonderful UI so I can make a website faster with tailwindcss.
I want to ask about Product with Side Link, when I click the button the product not move to another category?
Wish you can make the js script with alpinejs too for that.
And I hope you can make more components with the latest tailwindcss 3.1.
Once again thank you very much and sorry for my bad English.
Screenshot 2022-06-11 041439

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.