├── README.md ├── public ├── fav.ico ├── robots.txt ├── favicon.ico ├── logo192.png ├── logo512.png ├── manifest.json └── index.html ├── postcss.config.js ├── src ├── assets │ └── images │ │ ├── icons │ │ ├── arrow-black.png │ │ └── arrow-white.png │ │ ├── component.svg │ │ └── hero-image-light.svg ├── data │ └── categories │ │ ├── applicationComponents.js │ │ ├── ecommerceComponents.js │ │ ├── sectionComponents.js │ │ ├── index.js │ │ └── utilitiesComponents.js ├── utils │ ├── theme_toggler.js │ ├── copy_func.js │ └── all-components.js ├── pages │ ├── ComponentsCategories │ │ ├── index.jsx │ │ ├── CategoriesSectionHeader.jsx │ │ ├── CategoriesSectionFilterHeader.jsx │ │ └── CategoriesSection.jsx │ └── Landing │ │ ├── index.jsx │ │ ├── DetailsSection.jsx │ │ ├── DetailsSectionData.js │ │ └── HomeSection.jsx ├── Components │ ├── Svgs │ │ ├── SearchIcon.jsx │ │ ├── ZoomOut.jsx │ │ ├── ZoomIn.jsx │ │ ├── ChevronRight.jsx │ │ ├── ChevronLeft.jsx │ │ ├── ArrowCircleRight.jsx │ │ ├── LightIcon.jsx │ │ ├── Eye.jsx │ │ ├── Clipboard.jsx │ │ ├── DarkIcon.jsx │ │ └── All.jsx │ ├── ShowUiBody │ │ ├── HighlightCodeWrapper.jsx │ │ └── index.jsx │ ├── Footer │ │ └── index.jsx │ └── Header │ │ └── index.jsx ├── index.js ├── App.jsx ├── context │ └── index.js ├── raw.css └── index.css ├── tailwind.config.js ├── LICENSE ├── package.json └── .gitignore /README.md: -------------------------------------------------------------------------------- 1 | # TailwindCSS Pre-Build Components 2 | -------------------------------------------------------------------------------- /public/fav.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stacksagar/tailwind-stackui/HEAD/public/fav.ico -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stacksagar/tailwind-stackui/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stacksagar/tailwind-stackui/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stacksagar/tailwind-stackui/HEAD/public/logo512.png -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /src/assets/images/icons/arrow-black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stacksagar/tailwind-stackui/HEAD/src/assets/images/icons/arrow-black.png -------------------------------------------------------------------------------- /src/assets/images/icons/arrow-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stacksagar/tailwind-stackui/HEAD/src/assets/images/icons/arrow-white.png -------------------------------------------------------------------------------- /src/data/categories/applicationComponents.js: -------------------------------------------------------------------------------- 1 | const applicationComponents = { 2 | sidebars: {}, 3 | calendars: {}, 4 | tables: {}, 5 | forms: {}, 6 | steppers: {}, 7 | stats: {}, 8 | }; 9 | 10 | export default applicationComponents; 11 | -------------------------------------------------------------------------------- /src/utils/theme_toggler.js: -------------------------------------------------------------------------------- 1 | export default function theme_toggler(setTheme) { 2 | if (localStorage.theme === "dark") { 3 | localStorage.theme = "light"; 4 | document.documentElement.classList.remove("dark"); 5 | return "light"; 6 | } else { 7 | localStorage.theme = "dark"; 8 | document.documentElement.classList.add("dark"); 9 | return "dark"; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/pages/ComponentsCategories/index.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Header from "../../Components/Header"; 3 | import CategoriesSection from "./CategoriesSection"; 4 | 5 | const ComponentsCategories = () => { 6 | return ( 7 | <> 8 |
9 | 10 | 11 | ); 12 | }; 13 | 14 | export default ComponentsCategories; 15 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | content: ["./src/**/*.{js,jsx,ts,tsx}"], 3 | darkMode: "class", 4 | theme: { 5 | extend: { 6 | spacing: { 7 | header_height: "65px", 8 | minus_header_height: "calc(100vh - 65px)", 9 | }, 10 | colors: { 11 | dark1: "#131B4C", 12 | dark2: "#0A0829", 13 | }, 14 | }, 15 | }, 16 | plugins: [], 17 | }; 18 | -------------------------------------------------------------------------------- /src/pages/Landing/index.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import CategoriesSection from "../ComponentsCategories/CategoriesSection"; 3 | import DetailsSection from "./DetailsSection"; 4 | import HomeSection from "./HomeSection"; 5 | 6 | const Landing = () => { 7 | return ( 8 | <> 9 | 10 | 11 | 12 | 13 | ); 14 | }; 15 | 16 | export default Landing; 17 | -------------------------------------------------------------------------------- /src/utils/copy_func.js: -------------------------------------------------------------------------------- 1 | import { 2 | CopyIconAsString, 3 | CopyIconAsString2, 4 | } from "../Components/Svgs/Clipboard"; 5 | 6 | function copy_func(copy_btn_ref, code) { 7 | navigator.clipboard.writeText(code); 8 | copy_btn_ref.current.innerHTML = `${CopyIconAsString2} Copied `; 9 | setTimeout(() => { 10 | copy_btn_ref.current.innerHTML = `${CopyIconAsString} Copy `; 11 | }, 1500); 12 | } 13 | 14 | export default copy_func; 15 | -------------------------------------------------------------------------------- /src/data/categories/ecommerceComponents.js: -------------------------------------------------------------------------------- 1 | const ecommerceComponents = { 2 | "product overviews": {}, 3 | "product lists": {}, 4 | "category reviews": {}, 5 | "shopping carts": {}, 6 | "category filter": {}, 7 | "product quickview": {}, 8 | "product features": {}, 9 | "store navigation": {}, 10 | "promo section": {}, 11 | "checkout forms": {}, 12 | reviews: {}, 13 | "order summaries": {}, 14 | "order history": {}, 15 | }; 16 | 17 | export default ecommerceComponents; 18 | -------------------------------------------------------------------------------- /src/data/categories/sectionComponents.js: -------------------------------------------------------------------------------- 1 | const sectionComponents = { 2 | "hero section": {}, 3 | "feature sections": {}, 4 | "cta sections": {}, 5 | "pricing sections": {}, 6 | "header sections": {}, 7 | "faqs sections": {}, 8 | "newsletter sections": {}, 9 | "stats sections": {}, 10 | "testimonials sections": {}, 11 | "blog sections": {}, 12 | "contact sections": {}, 13 | "team sections": {}, 14 | "content sections": {}, 15 | footers: {}, 16 | }; 17 | 18 | export default sectionComponents; 19 | -------------------------------------------------------------------------------- /src/data/categories/index.js: -------------------------------------------------------------------------------- 1 | import applicationComponents from "./applicationComponents"; 2 | import ecommerceComponents from "./ecommerceComponents"; 3 | import utilitiesComponents from "./utilitiesComponents"; 4 | import sectionComponents from "./sectionComponents"; 5 | 6 | const categories = { 7 | "utilities components": utilitiesComponents, 8 | "application components": applicationComponents, 9 | "ecommerce components": ecommerceComponents, 10 | "section components": sectionComponents, 11 | }; 12 | 13 | export default categories; 14 | -------------------------------------------------------------------------------- /src/Components/Svgs/SearchIcon.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const SearchIcon = () => { 4 | return ( 5 | 13 | 18 | 19 | ); 20 | }; 21 | 22 | export default SearchIcon; 23 | -------------------------------------------------------------------------------- /src/Components/Svgs/ZoomOut.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const ZoomOut = () => { 4 | return ( 5 | 13 | 18 | 19 | ); 20 | }; 21 | 22 | export default ZoomOut; 23 | -------------------------------------------------------------------------------- /src/Components/Svgs/ZoomIn.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const ZoomIn = () => { 4 | return ( 5 | 13 | 18 | 19 | ); 20 | }; 21 | 22 | export default ZoomIn; 23 | -------------------------------------------------------------------------------- /src/Components/Svgs/ChevronRight.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const ChevronRight = () => { 4 | return ( 5 | 11 | 16 | 17 | ); 18 | }; 19 | 20 | export default ChevronRight; 21 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom/client"; 3 | import "./index.css"; 4 | import "./raw.css"; 5 | import App from "./App"; 6 | import { BrowserRouter } from "react-router-dom"; 7 | 8 | import { RootProvider } from "./context"; 9 | const root = ReactDOM.createRoot(document.getElementById("root")); 10 | root.render( 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | ); 19 | -------------------------------------------------------------------------------- /src/Components/Svgs/ChevronLeft.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const ChevronLeft = ({ w }) => { 4 | return ( 5 | 11 | 16 | 17 | ); 18 | }; 19 | 20 | export default ChevronLeft; 21 | -------------------------------------------------------------------------------- /src/Components/Svgs/ArrowCircleRight.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const ArrowCircleRight = () => { 4 | return ( 5 | 13 | 18 | 19 | ); 20 | }; 21 | 22 | export default ArrowCircleRight; 23 | -------------------------------------------------------------------------------- /src/utils/all-components.js: -------------------------------------------------------------------------------- 1 | const AllComponents = [ 2 | { 3 | jsx: ( 4 | 7 | ), 8 | 9 | title: "Classic Button", 10 | params: ["jsx"], 11 | body: ` return jsx`, 12 | }, 13 | 14 | // { 15 | // title: "Classic Button", 16 | // body: () => ( 17 | // 20 | // ), 21 | // }, 22 | ]; 23 | 24 | export default AllComponents; 25 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Landing from "./pages/Landing"; 3 | import { Routes, Route } from "react-router-dom"; 4 | import ComponentsCategories from "./pages/ComponentsCategories"; 5 | import Footer from "./Components/Footer"; 6 | 7 | const App = () => { 8 | return ( 9 |
10 | 11 | } /> 12 | } /> 13 | 14 |
15 |
16 | ); 17 | }; 18 | 19 | export default App; 20 | -------------------------------------------------------------------------------- /src/data/categories/utilitiesComponents.js: -------------------------------------------------------------------------------- 1 | const utilitiesComponents = { 2 | Alerts: {}, 3 | Accordion: {}, 4 | Avatar: {}, 5 | Badge: {}, 6 | Breadcrumb: {}, 7 | Buttons: {}, 8 | "Button group": {}, 9 | Card: {}, 10 | Carousel: {}, 11 | Dropdowns: {}, 12 | inputs: {}, 13 | "List Group": {}, 14 | Typography: {}, 15 | Modal: {}, 16 | Tabs: {}, 17 | Navbar: {}, 18 | "Mega menu": {}, 19 | Skeleton: {}, 20 | Pagination: {}, 21 | Rating: {}, 22 | Timeline: {}, 23 | KBD: {}, 24 | Progress: {}, 25 | Spinner: {}, 26 | Toast: {}, 27 | Tooltips: {}, 28 | }; 29 | 30 | export default utilitiesComponents; 31 | -------------------------------------------------------------------------------- /src/Components/Svgs/LightIcon.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const LightIcon = () => { 4 | return ( 5 | 13 | 17 | 21 | 22 | ); 23 | }; 24 | 25 | export default LightIcon; 26 | -------------------------------------------------------------------------------- /src/Components/Svgs/Eye.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const Eye = () => { 4 | return ( 5 | 13 | 18 | 23 | 24 | ); 25 | }; 26 | 27 | export default Eye; 28 | -------------------------------------------------------------------------------- /src/context/index.js: -------------------------------------------------------------------------------- 1 | import { createContext, useReducer, useContext } from "react"; 2 | 3 | const State = { 4 | currentTheme: "dark", 5 | }; 6 | 7 | const reducer = (state = State, action) => { 8 | const { type, payload } = action; 9 | switch (type) { 10 | case "set_current_theme": 11 | return { ...state, currentTheme: payload }; 12 | 13 | default: 14 | return state; 15 | } 16 | }; 17 | 18 | const RootContext = createContext(); 19 | 20 | const RootProvider = ({ children }) => { 21 | const [state, dispatch] = useReducer(reducer, State); 22 | return ( 23 | 24 | {children} 25 | 26 | ); 27 | }; 28 | 29 | const useRootContext = () => useContext(RootContext); 30 | 31 | export { RootProvider, useRootContext }; 32 | -------------------------------------------------------------------------------- /src/Components/ShowUiBody/HighlightCodeWrapper.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Highlight, { defaultProps } from "prism-react-renderer"; 3 | 4 | const HighlightCodeWrapper = ({ previewCode, fontsize }) => { 5 | return ( 6 | 7 | {({ tokens, getLineProps, getTokenProps }) => ( 8 |
13 |           {tokens.map((line, i) => (
14 |             
22 | {line.map((token, key) => ( 23 | 24 | ))} 25 |
26 | ))} 27 |
28 | )} 29 |
30 | ); 31 | }; 32 | 33 | export default HighlightCodeWrapper; 34 | -------------------------------------------------------------------------------- /src/raw.css: -------------------------------------------------------------------------------- 1 | #home_section { 2 | position: relative; 3 | } 4 | 5 | #home_section::after, 6 | #home_section::before { 7 | content: ""; 8 | z-index: 1; 9 | width: 100%; 10 | height: 100%; 11 | position: absolute; 12 | top: 0; 13 | left: 0; 14 | right: 0; 15 | bottom: 0; 16 | background-size: contain; 17 | background-position: top right; 18 | background-origin: border-box; 19 | background-repeat: no-repeat; 20 | } 21 | #home_section::after { 22 | background-position: top left; 23 | background-size: 350px; 24 | background-image: url("./assets/images/hero-shape-1.svg"); 25 | opacity: 0.5; 26 | } 27 | 28 | #home_section::before { 29 | background-image: url("./assets/images/hero-shape-2.svg"); 30 | opacity: 0.2; 31 | } 32 | 33 | @media (max-width: 1023px) { 34 | #home_section::before { 35 | background-image: transparent; 36 | } 37 | } 38 | 39 | #home_section_overlay { 40 | width: 100%; 41 | height: 100%; 42 | position: absolute; 43 | top: 0; 44 | top: 0; 45 | left: 0; 46 | right: 0; 47 | bottom: 0; 48 | z-index: 20; 49 | } 50 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Sagar Roy 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/pages/Landing/DetailsSection.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import DetailsSectionData from "./DetailsSectionData"; 3 | 4 | const Single = ({ title, des, Icon }) => { 5 | return ( 6 |
7 |
8 | 9 |
10 |

11 | {title} 12 |

13 |

14 | {des} 15 |

16 |
17 | ); 18 | }; 19 | 20 | const DetailsSection = () => { 21 | return ( 22 |
23 |
24 | {DetailsSectionData?.map((d, i) => ( 25 | 26 | ))} 27 |
28 |
29 | ); 30 | }; 31 | 32 | export default DetailsSection; 33 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tailwind-markup", 3 | "version": "0.1.0", 4 | "homepage": "https://stacksagar.github.io/tailwind-stackui/", 5 | "private": true, 6 | "dependencies": { 7 | "@testing-library/jest-dom": "^5.16.4", 8 | "@testing-library/react": "^13.3.0", 9 | "@testing-library/user-event": "^13.5.0", 10 | "prism-react-renderer": "^1.3.5", 11 | "react": "^18.2.0", 12 | "react-dom": "^18.2.0", 13 | "react-element-to-jsx-string": "^15.0.0", 14 | "react-router-dom": "^6.3.0", 15 | "react-scripts": "5.0.1", 16 | "web-vitals": "^2.1.4" 17 | }, 18 | "scripts": { 19 | "start": "react-scripts start", 20 | "build": "react-scripts build", 21 | "test": "react-scripts test", 22 | "eject": "react-scripts eject", 23 | "predeploy": "npm run build", 24 | "deploy": "gh-pages -d build" 25 | }, 26 | "eslintConfig": { 27 | "extends": [ 28 | "react-app", 29 | "react-app/jest" 30 | ] 31 | }, 32 | "browserslist": { 33 | "production": [ 34 | ">0.2%", 35 | "not dead", 36 | "not op_mini all" 37 | ], 38 | "development": [ 39 | "last 1 chrome version", 40 | "last 1 firefox version", 41 | "last 1 safari version" 42 | ] 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/Components/Svgs/Clipboard.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | export const CopyIconAsString = ` 4 | 5 | `; 6 | export const CopyIconAsString2 = ` 7 | 8 | 9 | `; 10 | 11 | const Clipboard = () => { 12 | return ( 13 | 21 | 26 | 27 | ); 28 | }; 29 | 30 | export default Clipboard; 31 | -------------------------------------------------------------------------------- /src/Components/Svgs/DarkIcon.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | const DarkIcon = () => { 4 | return ( 5 | 6 | 12 | 16 | 22 | 23 | ); 24 | }; 25 | 26 | export default DarkIcon; 27 | -------------------------------------------------------------------------------- /src/Components/Footer/index.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { LayerIcon } from "../Svgs/All"; 3 | 4 | const Footer = () => { 5 | return ( 6 |
7 |
8 |
9 |
10 | 11 |

12 | Stack 13 | UI 14 |

15 |
16 |

17 | © 2022 18 | stack 19 | ui 20 | Inc. All rights reserved. 21 |

22 | 36 |
37 |
38 | ); 39 | }; 40 | 41 | export default Footer; 42 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap"); 2 | 3 | * { 4 | scroll-behavior: smooth; 5 | scrollbar-width: thin; 6 | transition: all 0.003s; 7 | } 8 | 9 | h1, 10 | h2, 11 | h3, 12 | h4, 13 | h5, 14 | h6, 15 | p, 16 | li, 17 | a { 18 | font-family: Nunito, "Courier New", Courier, monospace; 19 | } 20 | 21 | .font-comfortaa { 22 | font-family: Comfortaa, "Courier New", Courier, monospace !important; 23 | } 24 | 25 | @layer utilities { 26 | h2 { 27 | @apply text-xl sm:text-2xl md:text-3xl xl:text-4xl; 28 | } 29 | } 30 | 31 | @layer components { 32 | .x_container { 33 | @apply mx-auto w-[95%] xl:w-[90%] 2xl:w-[1520px]; 34 | } 35 | } 36 | 37 | /* Scroll Styles */ 38 | .scrollbar-md::-webkit-scrollbar { 39 | width: 18px; 40 | } 41 | .scrollbar-lg::-webkit-scrollbar { 42 | width: 35px; 43 | } 44 | 45 | .scrollbar-md::-webkit-scrollbar-track, 46 | .scrollbar-lg::-webkit-scrollbar-track { 47 | background-origin: transparent; 48 | } 49 | .scrollbar-md::-webkit-scrollbar-thumb, 50 | .scrollbar-lg::-webkit-scrollbar-thumb { 51 | background: linear-gradient(to bottom, #44444450, #99999980, #44444450); 52 | background: linear-gradient(to bottom, #44444436, #9999992c, #44444434); 53 | } 54 | 55 | @tailwind base; 56 | @tailwind components; 57 | @tailwind utilities; 58 | -------------------------------------------------------------------------------- /src/pages/Landing/DetailsSectionData.js: -------------------------------------------------------------------------------- 1 | import { 2 | UnlimitedIcon, 3 | // SupportIcon, 4 | SecurityIcon, 5 | // PricingIcon, 6 | HeartIcon, 7 | CommunityIcon, 8 | // GuranteIcon, 9 | UpdateIcon, 10 | CheckCircleIcon, 11 | // CodeIcon, 12 | DeviceMobileIcon, 13 | } from "../../Components/Svgs/All"; 14 | 15 | const DetailsSectionData = [ 16 | { 17 | title: "Examples", 18 | des: "Beautifully designed, expertly crafted components that follow all accessibility best practices and are easy to customize.", 19 | Icon: CheckCircleIcon, 20 | }, 21 | { 22 | title: "Unlimited Use", 23 | des: "A single subscription gets you unlimited use. Setup them on as many websites as you like using a single license. Use them on unlimited client websites too.", 24 | Icon: UnlimitedIcon, 25 | }, 26 | { 27 | title: "Responsive", 28 | des: "Every example is fully responsive and carefully designed and implemented to look great at any screen size.", 29 | Icon: DeviceMobileIcon, 30 | }, 31 | { 32 | title: "Update", 33 | des: "When you use our products, you can rest easy knowing that we are always working hard to keep them updated, compatible with the latest design.", 34 | Icon: UpdateIcon, 35 | }, 36 | { 37 | title: "Trust", 38 | des: "Your website and your client's websites are precious. You need to trust in the products that power them. StackUI provides a level of support and product quality that is unmatched.", 39 | Icon: HeartIcon, 40 | }, 41 | { 42 | title: "Security", 43 | des: "We take security seriously when developing our products. Rest easy knowing that we have your back.", 44 | Icon: SecurityIcon, 45 | }, 46 | { 47 | title: "Active Community", 48 | des: "You aren't just purchasing products when you join StackUI. You are becoming part of an amazing community filled with wonderful and passionate people!", 49 | Icon: CommunityIcon, 50 | }, 51 | ]; 52 | 53 | export default DetailsSectionData; 54 | -------------------------------------------------------------------------------- /src/pages/ComponentsCategories/CategoriesSectionHeader.jsx: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from "react"; 2 | import categories from "../../data/categories"; 3 | import ChevronLeft from "../../Components/Svgs/ChevronLeft"; 4 | 5 | const CategoriesSectionHeader = ({ 6 | categories_section_ref, 7 | active_component_category, 8 | set_acc, 9 | }) => { 10 | const [show_category_nav_toggler, set_cnt] = useState(false); 11 | const [show_category_nav, set_cn] = useState(true); 12 | 13 | useEffect(() => { 14 | window.addEventListener("scroll", () => { 15 | if (categories_section_ref.current?.getBoundingClientRect()?.top > 1) { 16 | set_cnt(false); 17 | set_cn(true); 18 | } else { 19 | set_cnt(true); 20 | } 21 | }); 22 | }, [categories_section_ref]); 23 | 24 | return ( 25 |
31 | {show_category_nav_toggler && ( 32 |
set_cn(false)} 34 | className={`cursor-pointer w-10 h-full absolute top-0 -right-10 z-40 hidden xl:flex items-center justify-center`} 35 | > 36 | 39 |
40 | )} 41 | 42 | {Object.keys(categories).map((key) => ( 43 |
set_acc(key)} 46 | className={`col-span-6 lg:col-span-3 p-4 lg:p-0 text-center h-full flex items-center justify-center hover:bg-blue-500 hover:text-white cursor-pointer capitalize border-gray-500 border border-opacity-10 dark:border-opacity-20 text-sm md:text-base md:tracking-wider md:font-semibold ${ 47 | active_component_category === key && 48 | "bg-blue-500 dark:bg-blue-600 text-white" 49 | }`} 50 | > 51 | {key} 52 |
53 | ))} 54 |
55 | ); 56 | }; 57 | 58 | export default CategoriesSectionHeader; 59 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /src/pages/ComponentsCategories/CategoriesSectionFilterHeader.jsx: -------------------------------------------------------------------------------- 1 | import React, { useState, useEffect } from "react"; 2 | import categories from "../../data/categories"; 3 | import ChevronLeft from "../../Components/Svgs/ChevronLeft"; 4 | import SearchIcon from "../../Components/Svgs/SearchIcon"; 5 | 6 | const CategoriesSectionFilterHeader = ({ 7 | categories_section_ref, 8 | set_acc, 9 | filter_text, 10 | set_filter_text, 11 | }) => { 12 | const [show_category_nav_toggler, set_cnt] = useState(false); 13 | const [show_category_nav, set_cn] = useState(true); 14 | 15 | useEffect(() => { 16 | window.addEventListener("scroll", () => { 17 | if (categories_section_ref.current?.getBoundingClientRect()?.top > 1) { 18 | set_cnt(false); 19 | set_cn(true); 20 | } else { 21 | set_cnt(true); 22 | } 23 | }); 24 | }, [categories_section_ref]); 25 | 26 | return ( 27 |
33 | {show_category_nav_toggler && ( 34 |
set_cn(false)} 36 | className={`cursor-pointer w-10 h-full absolute top-0 -right-10 z-40 hidden xl:flex items-center justify-center`} 37 | > 38 | 41 |
42 | )} 43 | 44 | 57 | 58 |
59 | 60 | 61 | 62 | set_filter_text(e.target.value)} 66 | placeholder="Find Components..." 67 | className="py-3 pl-12 pr-3 rounded-sm w-full block bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-white focus:outline-none focus:ring" 68 | /> 69 |
70 |
71 | ); 72 | }; 73 | 74 | export default CategoriesSectionFilterHeader; 75 | -------------------------------------------------------------------------------- /src/pages/Landing/HomeSection.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Header from "../../Components/Header"; 3 | import { HTMLIcon, ReactIcon } from "../../Components/Svgs/All"; 4 | import SvgUIDark from "../../assets/images/hero-image-dark.svg"; 5 | import SvgUILight from "../../assets/images/hero-image-light.svg"; 6 | import { useRootContext } from "../../context"; 7 | import ArrowCircleRight from "../../Components/Svgs/ArrowCircleRight"; 8 | import { Link } from "react-router-dom"; 9 | 10 | const HomeSection = () => { 11 | const { state } = useRootContext(); 12 | return ( 13 |
17 |
18 | 19 |
20 |
21 |

22 | Beautiful Pure TailwindCSS Components 23 | for you! 24 |

25 |
26 |

27 | 28 | HTML 29 |

30 |

31 | 32 | React 33 |

34 |
35 |

36 | Unlimited professionally designed, fully responsive, expertly 37 | crafted component examples you can drop into your Tailwind projects 38 | and customize to your heart’s content. 39 |

40 | 41 | 45 | Browse Components 46 | 50 | 51 | 52 | 53 |
54 |
55 | {state?.currentTheme === "dark" ? ( 56 | 57 | ) : ( 58 | 59 | )} 60 |
61 |
62 | 63 |
67 |
68 | ); 69 | }; 70 | 71 | export default HomeSection; 72 | -------------------------------------------------------------------------------- /src/pages/ComponentsCategories/CategoriesSection.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef, useState } from "react"; 2 | import UI from "../../assets/images/component.svg"; 3 | import ArrowCircleRight from "../../Components/Svgs/ArrowCircleRight"; 4 | import categories from "../../data/categories"; 5 | import CategoriesSectionHeader from "./CategoriesSectionHeader"; 6 | import CategoriesSectionFilterHeader from "./CategoriesSectionFilterHeader"; 7 | import { Link } from "react-router-dom"; 8 | 9 | const CategoryPreview = ({ title }) => { 10 | const components_category_ref = useRef(); 11 | 12 | return ( 13 |
22 | 23 |
24 |
25 | {title} 26 |
27 |

28 | Components ({Math.round(Math.random() * 12)}) 29 |

30 |
31 |
32 | ); 33 | }; 34 | 35 | const CategoriesSection = ({ all_components_screen }) => { 36 | const categories_section_ref = useRef(); 37 | const categories_parent_ref = useRef(); 38 | const [categories_parent_height, set_ph] = useState(0); 39 | const [show_by_screen, set_show_by_screen] = useState(8); 40 | 41 | const [active_component_category, set_acc] = useState( 42 | Object.keys(categories)[0] 43 | ); 44 | 45 | const [filter_text, set_filter_text] = useState(""); 46 | 47 | const [preview_categories, set_preview_categories] = useState( 48 | Object.keys(categories[active_component_category]) 49 | ); 50 | 51 | useEffect(() => { 52 | set_preview_categories(Object.keys(categories[active_component_category])); 53 | }, [active_component_category]); 54 | 55 | useEffect(() => { 56 | set_preview_categories( 57 | Object.keys(categories[active_component_category]).filter((c) => 58 | c.toLowerCase().includes(filter_text.toLowerCase()) 59 | ) 60 | ); 61 | }, [filter_text, active_component_category]); 62 | 63 | useEffect(() => { 64 | set_ph(categories_parent_ref?.current?.clientHeight); 65 | 66 | if (document.documentElement.clientWidth < 768) { 67 | set_show_by_screen(2); 68 | } else { 69 | set_show_by_screen(8); 70 | } 71 | }, [categories_parent_ref]); 72 | 73 | return ( 74 |
75 |
76 | {/* Header Categories Names */} 77 | 78 | {all_components_screen ? ( 79 | 85 | ) : ( 86 | 91 | )} 92 | 93 | {/* Components Names */} 94 |
98 | {preview_categories 99 | .filter((_, i) => 100 | all_components_screen ? i > -1 : i < show_by_screen 101 | ) 102 | .map((key) => ( 103 | 104 | ))} 105 |
106 | 107 | {!all_components_screen && ( 108 |
114 |
115 | 119 | View All Components 120 | 124 | 125 | 126 | 127 |
128 |
129 | )} 130 |
131 |
132 | ); 133 | }; 134 | 135 | export default CategoriesSection; 136 | -------------------------------------------------------------------------------- /src/Components/Header/index.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef, useState } from "react"; 2 | import DarkIcon from "../Svgs/DarkIcon"; 3 | import LightIcon from "../Svgs/LightIcon"; 4 | import theme_toggler from "../../utils/theme_toggler"; 5 | import { DiscordIcon, GithubIcon, LayerIcon } from "../Svgs/All"; 6 | import { useRootContext } from "../../context"; 7 | import { NavLink } from "react-router-dom"; 8 | 9 | const Header = () => { 10 | const { state, dispatch } = useRootContext(); 11 | const [sticky, setSticky] = useState(false); 12 | const [open_mobile_menu, set_omm] = useState(false); 13 | const mobile_menu_ref = useRef(); 14 | 15 | useEffect(() => { 16 | if (open_mobile_menu) { 17 | mobile_menu_ref.current.classList.remove("scale-y-0"); 18 | mobile_menu_ref.current.classList.add("scale-y-100"); 19 | } else { 20 | mobile_menu_ref.current.classList.add("scale-y-0"); 21 | mobile_menu_ref.current.classList.remove("scale-y-100"); 22 | } 23 | }, [open_mobile_menu]); 24 | 25 | useEffect(() => { 26 | const theme = localStorage.getItem("theme"); 27 | if (theme) { 28 | dispatch({ type: "set_current_theme", payload: theme }); 29 | } 30 | 31 | window.addEventListener("scroll", () => { 32 | if (document.documentElement.scrollTop > 140) { 33 | setSticky(true); 34 | } else { 35 | setSticky(false); 36 | } 37 | }); 38 | }, [dispatch]); 39 | 40 | function theme_toggle_handler() { 41 | const theme = theme_toggler(); 42 | dispatch({ type: "set_current_theme", payload: theme }); 43 | } 44 | 45 | return ( 46 |
52 |
53 | 54 | 55 |

56 | Stack 57 | UI 58 |

59 |
60 | 61 |
    66 |
  • 67 | 70 | `dark:hover:text-white hover:text-blue-500 ${ 71 | isActive 72 | ? "dark:text-white text-blue-500" 73 | : "dark:text-gray-400 text-gray-700" 74 | }` 75 | } 76 | > 77 | Home 78 | 79 |
  • 80 | 81 |
  • 82 | 85 | `dark:hover:text-white hover:text-blue-500 ${ 86 | isActive 87 | ? "dark:text-white text-blue-500" 88 | : "dark:text-gray-400 text-gray-700" 89 | }` 90 | } 91 | > 92 | Components 93 | 94 |
  • 95 | 96 |
  • 97 | 100 | `dark:hover:text-white hover:text-blue-500 ${ 101 | isActive 102 | ? "dark:text-white text-blue-500" 103 | : "dark:text-gray-400 text-gray-700" 104 | }` 105 | } 106 | > 107 | Docs 108 | 109 |
  • 110 |
111 | 112 | 168 |
169 |
170 | ); 171 | }; 172 | 173 | export default Header; 174 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | ## 4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 5 | 6 | # User-specific files 7 | *.rsuser 8 | *.suo 9 | *.user 10 | *.userosscache 11 | *.sln.docstates 12 | 13 | # User-specific files (MonoDevelop/Xamarin Studio) 14 | *.userprefs 15 | 16 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Aa][Rr][Mm]/ 27 | [Aa][Rr][Mm]64/ 28 | bld/ 29 | [Bb]in/ 30 | [Oo]bj/ 31 | [Ll]og/ 32 | [Ll]ogs/ 33 | 34 | # Visual Studio 2015/2017 cache/options directory 35 | .vs/ 36 | # Uncomment if you have tasks that create the project's static files in wwwroot 37 | #wwwroot/ 38 | 39 | # Visual Studio 2017 auto generated files 40 | Generated\ Files/ 41 | 42 | # MSTest test Results 43 | [Tt]est[Rr]esult*/ 44 | [Bb]uild[Ll]og.* 45 | 46 | # NUnit 47 | *.VisualState.xml 48 | TestResult.xml 49 | nunit-*.xml 50 | 51 | # Build Results of an ATL Project 52 | [Dd]ebugPS/ 53 | [Rr]eleasePS/ 54 | dlldata.c 55 | 56 | # Benchmark Results 57 | BenchmarkDotNet.Artifacts/ 58 | 59 | # .NET Core 60 | project.lock.json 61 | project.fragment.lock.json 62 | artifacts/ 63 | 64 | # StyleCop 65 | StyleCopReport.xml 66 | 67 | # Files built by Visual Studio 68 | *_i.c 69 | *_p.c 70 | *_h.h 71 | *.ilk 72 | *.meta 73 | *.obj 74 | *.iobj 75 | *.pch 76 | *.pdb 77 | *.ipdb 78 | *.pgc 79 | *.pgd 80 | *.rsp 81 | *.sbr 82 | *.tlb 83 | *.tli 84 | *.tlh 85 | *.tmp 86 | *.tmp_proj 87 | *_wpftmp.csproj 88 | *.log 89 | *.vspscc 90 | *.vssscc 91 | .builds 92 | *.pidb 93 | *.svclog 94 | *.scc 95 | 96 | # Chutzpah Test files 97 | _Chutzpah* 98 | 99 | # Visual C++ cache files 100 | ipch/ 101 | *.aps 102 | *.ncb 103 | *.opendb 104 | *.opensdf 105 | *.sdf 106 | *.cachefile 107 | *.VC.db 108 | *.VC.VC.opendb 109 | 110 | # Visual Studio profiler 111 | *.psess 112 | *.vsp 113 | *.vspx 114 | *.sap 115 | 116 | # Visual Studio Trace Files 117 | *.e2e 118 | 119 | # TFS 2012 Local Workspace 120 | $tf/ 121 | 122 | # Guidance Automation Toolkit 123 | *.gpState 124 | 125 | # ReSharper is a .NET coding add-in 126 | _ReSharper*/ 127 | *.[Rr]e[Ss]harper 128 | *.DotSettings.user 129 | 130 | # TeamCity is a build add-in 131 | _TeamCity* 132 | 133 | # DotCover is a Code Coverage Tool 134 | *.dotCover 135 | 136 | # AxoCover is a Code Coverage Tool 137 | .axoCover/* 138 | !.axoCover/settings.json 139 | 140 | # Visual Studio code coverage results 141 | *.coverage 142 | *.coveragexml 143 | 144 | # NCrunch 145 | _NCrunch_* 146 | .*crunch*.local.xml 147 | nCrunchTemp_* 148 | 149 | # MightyMoose 150 | *.mm.* 151 | AutoTest.Net/ 152 | 153 | # Web workbench (sass) 154 | .sass-cache/ 155 | 156 | # Installshield output folder 157 | [Ee]xpress/ 158 | 159 | # DocProject is a documentation generator add-in 160 | DocProject/buildhelp/ 161 | DocProject/Help/*.HxT 162 | DocProject/Help/*.HxC 163 | DocProject/Help/*.hhc 164 | DocProject/Help/*.hhk 165 | DocProject/Help/*.hhp 166 | DocProject/Help/Html2 167 | DocProject/Help/html 168 | 169 | # Click-Once directory 170 | publish/ 171 | 172 | # Publish Web Output 173 | *.[Pp]ublish.xml 174 | *.azurePubxml 175 | # Note: Comment the next line if you want to checkin your web deploy settings, 176 | # but database connection strings (with potential passwords) will be unencrypted 177 | *.pubxml 178 | *.publishproj 179 | 180 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 181 | # checkin your Azure Web App publish settings, but sensitive information contained 182 | # in these scripts will be unencrypted 183 | PublishScripts/ 184 | 185 | # NuGet Packages 186 | *.nupkg 187 | # NuGet Symbol Packages 188 | *.snupkg 189 | # The packages folder can be ignored because of Package Restore 190 | **/[Pp]ackages/* 191 | # except build/, which is used as an MSBuild target. 192 | !**/[Pp]ackages/build/ 193 | # Uncomment if necessary however generally it will be regenerated when needed 194 | #!**/[Pp]ackages/repositories.config 195 | # NuGet v3's project.json files produces more ignorable files 196 | *.nuget.props 197 | *.nuget.targets 198 | 199 | # Microsoft Azure Build Output 200 | csx/ 201 | *.build.csdef 202 | 203 | # Microsoft Azure Emulator 204 | ecf/ 205 | rcf/ 206 | 207 | # Windows Store app package directories and files 208 | AppPackages/ 209 | BundleArtifacts/ 210 | Package.StoreAssociation.xml 211 | _pkginfo.txt 212 | *.appx 213 | *.appxbundle 214 | *.appxupload 215 | 216 | # Visual Studio cache files 217 | # files ending in .cache can be ignored 218 | *.[Cc]ache 219 | # but keep track of directories ending in .cache 220 | !?*.[Cc]ache/ 221 | 222 | # Others 223 | ClientBin/ 224 | ~$* 225 | *~ 226 | *.dbmdl 227 | *.dbproj.schemaview 228 | *.jfm 229 | *.pfx 230 | *.publishsettings 231 | orleans.codegen.cs 232 | 233 | # Including strong name files can present a security risk 234 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 235 | #*.snk 236 | 237 | # Since there are multiple workflows, uncomment next line to ignore bower_components 238 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 239 | #bower_components/ 240 | 241 | # RIA/Silverlight projects 242 | Generated_Code/ 243 | 244 | # Backup & report files from converting an old project file 245 | # to a newer Visual Studio version. Backup files are not needed, 246 | # because we have git ;-) 247 | _UpgradeReport_Files/ 248 | Backup*/ 249 | UpgradeLog*.XML 250 | UpgradeLog*.htm 251 | ServiceFabricBackup/ 252 | *.rptproj.bak 253 | 254 | # SQL Server files 255 | *.mdf 256 | *.ldf 257 | *.ndf 258 | 259 | # Business Intelligence projects 260 | *.rdl.data 261 | *.bim.layout 262 | *.bim_*.settings 263 | *.rptproj.rsuser 264 | *- [Bb]ackup.rdl 265 | *- [Bb]ackup ([0-9]).rdl 266 | *- [Bb]ackup ([0-9][0-9]).rdl 267 | 268 | # Microsoft Fakes 269 | FakesAssemblies/ 270 | 271 | # GhostDoc plugin setting file 272 | *.GhostDoc.xml 273 | 274 | # Node.js Tools for Visual Studio 275 | .ntvs_analysis.dat 276 | node_modules/ 277 | 278 | # Visual Studio 6 build log 279 | *.plg 280 | 281 | # Visual Studio 6 workspace options file 282 | *.opt 283 | 284 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 285 | *.vbw 286 | 287 | # Visual Studio LightSwitch build output 288 | **/*.HTMLClient/GeneratedArtifacts 289 | **/*.DesktopClient/GeneratedArtifacts 290 | **/*.DesktopClient/ModelManifest.xml 291 | **/*.Server/GeneratedArtifacts 292 | **/*.Server/ModelManifest.xml 293 | _Pvt_Extensions 294 | 295 | # Paket dependency manager 296 | .paket/paket.exe 297 | paket-files/ 298 | 299 | # FAKE - F# Make 300 | .fake/ 301 | 302 | # CodeRush personal settings 303 | .cr/personal 304 | 305 | # Python Tools for Visual Studio (PTVS) 306 | __pycache__/ 307 | *.pyc 308 | 309 | # Cake - Uncomment if you are using it 310 | # tools/** 311 | # !tools/packages.config 312 | 313 | # Tabs Studio 314 | *.tss 315 | 316 | # Telerik's JustMock configuration file 317 | *.jmconfig 318 | 319 | # BizTalk build output 320 | *.btp.cs 321 | *.btm.cs 322 | *.odx.cs 323 | *.xsd.cs 324 | 325 | # OpenCover UI analysis results 326 | OpenCover/ 327 | 328 | # Azure Stream Analytics local run output 329 | ASALocalRun/ 330 | 331 | # MSBuild Binary and Structured Log 332 | *.binlog 333 | 334 | # NVidia Nsight GPU debugger configuration file 335 | *.nvuser 336 | 337 | # MFractors (Xamarin productivity tool) working folder 338 | .mfractor/ 339 | 340 | # Local History for Visual Studio 341 | .localhistory/ 342 | 343 | # BeatPulse healthcheck temp database 344 | healthchecksdb 345 | 346 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 347 | MigrationBackup/ 348 | 349 | # Ionide (cross platform F# VS Code tools) working folder 350 | .ionide/ 351 | -------------------------------------------------------------------------------- /src/Components/ShowUiBody/index.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | import reactElementToJSXString from "react-element-to-jsx-string"; 4 | 5 | import HighlightCodeWrapper from "./HighlightCodeWrapper"; 6 | import all_components_data from "../../utils/all-components"; 7 | import Eye from "../Svgs/Eye"; 8 | import ChevronLeft from "../Svgs/ChevronLeft"; 9 | import ChevronRight from "../Svgs/ChevronRight"; 10 | // import Clipboard, { AsString as CopyIconAsString } from "../Svgs/Clipboard"; 11 | import ZoomIn from "../Svgs/ZoomIn"; 12 | import ZoomOut from "../Svgs/ZoomOut"; 13 | import { useState } from "react"; 14 | import copy_func from "../../utils/copy_func"; 15 | import { useRef } from "react"; 16 | 17 | function ElementWrapper({ title, Component }) { 18 | const [codePreview, setCodePreview] = useState(false); 19 | const [viewFormat, setViewFormat] = useState("jsx"); 20 | 21 | const copy_btn_ref = useRef(); 22 | 23 | const [code_fontsize, setCodeFontSize] = useState(20); 24 | function handleFontSize(action) { 25 | if (action === "-" && code_fontsize > 9) { 26 | setCodeFontSize((p) => p - 2); 27 | } 28 | 29 | if (action === "+" && code_fontsize < 34) { 30 | setCodeFontSize((p) => p + 2); 31 | } 32 | } 33 | 34 | const previewCode = reactElementToJSXString(Component()); 35 | 36 | return ( 37 |
38 | {codePreview ? ( 39 |
43 |
44 |
45 |
46 |
47 |
48 |
52 |
53 | 56 | 59 | 60 | 68 | 76 | 77 | 86 | 100 |
101 |
102 | 103 | 111 | 112 |
113 |
114 |
115 |
116 | ) : ( 117 |
121 |
122 |
123 |
124 |
125 |

{title}

126 |
127 | 136 | 150 |
151 |
152 |
153 | 154 |
155 |
156 |
157 |
158 |
159 | )} 160 |
161 | ); 162 | } 163 | 164 | function All() { 165 | const alls = []; 166 | 167 | all_components_data.forEach((obj) => { 168 | const Element = new Function(...obj.params, obj.body); 169 | 170 | alls.push({ 171 | Component: () => Element(obj.jsx), 172 | title: obj.title, 173 | }); 174 | }); 175 | 176 | return alls.map(({ Component, title }, i) => ( 177 | 178 | )); 179 | } 180 | 181 | const ShowUiBody = () => { 182 | return ; 183 | }; 184 | 185 | export default ShowUiBody; 186 | -------------------------------------------------------------------------------- /src/assets/images/component.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/Components/Svgs/All.jsx: -------------------------------------------------------------------------------- 1 | export const UnlimitedIcon = () => ( 2 | 3 | 7 | 11 | 12 | ); 13 | 14 | export const PricingIcon = () => ( 15 | 16 | 20 | 24 | 25 | ); 26 | 27 | export const UpdateIcon = () => ( 28 | 29 | 33 | 37 | 38 | ); 39 | 40 | export const HeartIcon = () => ( 41 | 42 | 46 | 50 | 51 | ); 52 | 53 | export const SecurityIcon = () => ( 54 | 55 | 59 | 63 | 64 | ); 65 | 66 | export const SupportIcon = () => ( 67 | 68 | 72 | 76 | 77 | ); 78 | 79 | export const LayerIcon = () => ( 80 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 107 | 108 | 109 | 119 | 120 | 121 | 122 | ); 123 | 124 | export const CommunityIcon = () => ( 125 | 126 | 130 | 134 | 135 | ); 136 | 137 | export const GuranteIcon = () => ( 138 | 139 | 143 | 144 | ); 145 | 146 | export const HTMLIcon = () => ( 147 | 205 | ); 206 | 207 | export const ReactIcon = () => ( 208 | 360 | ); 361 | 362 | export const DiscordIcon = () => ( 363 | 364 | 365 | 366 | ); 367 | 368 | export const GithubIcon = () => ( 369 | 370 | 371 | 372 | ); 373 | 374 | export const TwitterIcon = () => ( 375 | 376 | 377 | 378 | ); 379 | 380 | export const CheckCircleIcon = () => ( 381 | 389 | 394 | 395 | ); 396 | 397 | export const CodeIcon = () => ( 398 | 406 | 411 | 412 | ); 413 | 414 | export const DeviceMobileIcon = () => ( 415 | 421 | 426 | 427 | ); 428 | -------------------------------------------------------------------------------- /src/assets/images/hero-image-light.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | --------------------------------------------------------------------------------