Giter Club home page Giter Club logo

h5-factory's Introduction

h5-factory

h5专题页面可视化编辑工具,拖拽编辑,灵活切换,一键生成html文件

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:9999
npm run dev

# build for production with minification
npm run build

# build report
npm run build:report

组件

  • 文本
  • 图片
  • 表单
  • 轮播图
  • 底部导航
  • 楼层导航
  • 倒计时
  • 横向滚动
  • 滚动新闻
  • 金刚位
  • ...

功能特点

  • 图片懒加载
<img data-src="" class="lazyload">
  • 按需加载组件代码和样式
// 根据用到的组件生成script标签
<script src="lib/swiper.min.js,base/timeout.min.js,base/form.min.js">
// 根据用到的组件添加style
<link ref="stylesheet" href="/lib/swiper.min.css"/>
  • 微信分享配置
window.pageConfig = {
  shareInfo: {
    title: '',
    desc: '',
    thumb: ''
  }
}
  • 页面标题和seo配置
<meta name="keywords" content="<!--keywords-->">
<meta name="description" content="<!--description-->">
  • 页面有效时间配置
window.pageConfig = {
  start: '',
  end: ''
}
  • 页面背景色/图片配置
<style>
  body {
    background-color: #fff;
    background-image:url();
    background-repeat: no-repeat;
  }
</style>
  • 回到顶部按钮
<div class="goto-top" style="display:none;">
    <svg viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg">
        <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
            <g transform="translate(1.000000, 3.000000)" stroke="#656565" stroke-width="1.2">
                <path d="M0.436999822,10.5317502 L10.6875,0.28125"></path>
                <path d="M11.4369998,10.5317502 L21.6875,0.28125" transform="translate(16.500000, 5.500000) scale(1, -1) translate(-16.500000, -5.500000) "></path>
                <path d="M11,0 L11,18.5100098"></path>
            </g>
        </g>
    </svg>
</div>

无需开发,自定义跳转链接,一键生成纯静态html文件,SEO友好,页面秒开,随时随地部署使用。还可以在此基础上开发业务相关的组件,例如商品列表,文章列表等。

在线预览

在线Demo

许可证

MIT

h5-factory's People

Contributors

yangyuji avatar

Watchers

 avatar  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.