Coder Social home page Coder Social logo

lqlsoftware / iweather-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeasonstudio/iweather-app

0.0 2.0 0.0 10.22 MB

Weather Web App by PWA & ServiceWorker for Baidu's Recruitment @JeasonStudio 2015-2017

Home Page: https://jeasonstudio.github.io/iWeAther-APP/

JavaScript 60.58% HTML 6.02% Vue 30.46% CSS 2.94%

iweather-app's Introduction

iWeAther-APP

Author: Jeason

Live Demo:

https://jeasonstudio.github.io/iWeAther-APP/

产品截图和演示:

first second GIF
front end GIF 比较大,请戳 GIF

简要说明

实现了一个简单的 MVVM 库

最开始拿到这个题目,由于不太想使用 AngularJS、VueJS or ReactJS 这三个现成库(框架),但又需要其部分功能,又加上自己一直想实现一个轻量级的 MVVM框架,于是自己写了一个类似 Vue 的 MVVM 框架半成品,详见 knopper.js

目前实现了 k-module, k-click 和 k-repeat 的功能。将来可能会实现 k-if/k-on 等。(但此项目考虑到种种因素,没有用它,还是用的 VUE)

knopper.js 名字是因为在写它的时候正在吃 knoppers 饼干,它的主要原理基于 ES2016 的 Proxy 和 Reflect

设计思路:移动端、简洁、PWA

移动端

查看天气这种需求本就不是一个 PC 网站所主要关注的,所以我的出发点主要在移动端,PC 端没有太多去适配优化,但也同样精致。

简洁

从页面可以看出来,整个项目从设计到实现,始终秉持着 Less is more 的原则,从初稿的大而全,一点点删功能,一点点优化界面,最后变的小而美。

PWA Lighthouse 评分

Lighthouse Results for iWeAther

Score

Tips

  1. 在参考别人的 swiper 基础上二次封装了 vueSwiper 组件,详情请见 vue-swiper.vue

  2. 对微交互的重视:比如用 Sketch 绘制了右下角的小按钮 SVG,并添加动画。请见 sketch 文件

FECS 代码风格审查通过

基本通过 fecs 的代码审查,请见下图:

fecs

开发相关

npm run dev
npm run build

iweather-app's People

Watchers

James Cloos avatar Robin Lu 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.