Git Product home page Git Product logo

homepage's Introduction

Tomotoes-HomePage

支付宝赞助按钮

微信赞助按钮

中文版说明

Introduction

一个坏掉的番茄 home page.

Online browsing

Do you want to install such a cool homepage for your website?

Let's start now!

Prerequisites

  • Nodejs 6.0 above
  • Git available

Install

git clone https://github.com/Tomotoes/HomePage.git
cd HomePage
npm install
npm run dev

Features

  1. Highly encapsulates all the information in the page
  2. Use WebGL-Fluid-Simulation as background
  3. Use scss as css preprocessor
  4. Use pug as html preprocessor
  5. Use gulp as a build tool and configure the build script
  6. Comfortable animation and beautiful UI
  7. Responsive, mobile support
  8. The referenced css andjs files do not exceed 18.5 kb in total!
  9. Delayed response switch page event
  10. There are many features left for you to explore...

Structure

According to the characteristics of the project, it is divided into two categories:

  1. intro First screen
  2. main Secondary screen

The corresponding functions, styles and configurations are also based on this standard.

Basic configuration

Each key name in the config.json fileconfig.json corresponds to the corresponding component name.

such as:

{
	"head": {
		"title": "一个坏掉的番茄",
		"description": "Author:SimonMa,Category:Personal Blog",
		"favicon": "favicon.ico"
	}
}

The above configuration information corresponds to the information in the following layout/head.pug component.

head
	title #{head.title}
	meta(charset="utf-8")
	meta(name="Description" content=`${head.description}`)
	link(rel="icon" href=`${head.favicon}` type="image/x-icon")

Advanced configuration

WebGL-Fluid-Simulation

Use WebGL-Fluid-Simulation as background at home.

If you want to turn it off, set intro.background: false.

supportAuthor

The supportAuthor option is turned on by default for configuration information, that is, authors are supported.

All support items are as follows:

  1. The octopus cat will be displayed in the upper right corner of the home page.
  2. The console prints the author's site information

If you want to turn it off, set intro.author: false.

Icon replacement

Icons in the project, all from 阿里巴巴矢量图标库

The replacement steps are as follows:

  1. Please select your icon, add it to the project, and change the color to white.
  2. Click Font Class method
  3. Copy the contents of the generated link
  4. Replace the contents of the file /src/css/common/icon.scss, where the contents of the icon selector must be preserved.
  5. Config.json the corresponding item in the config.jsonfilemain.ul. * .icon
.icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
	margin: 0 auto;
	fill: currentColor;
	font-family: 'iconfont' !important;
	font-size: inherit;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

Deployment

After executing npm run build under the root directory, the project file will be generated to the dist directory.

You can then deploy the dist directory to your favorite server hosting provider.

The following is an example of GithubPage:

  1. create userName.github.io Repo

  2. cd dist
    git init 
    git add -A
    git commit -am"init"
    git remote add origin https://github.com/userName/userName.github.io.git
    git push -f origin master
  3. Then set the repo's Github Page option in GitHub.

  4. Visit username.github.io to browse!

If your previous username. github.io repo already has content, you can create another repo, such as blog.

Then migrate the occupied items to blog and set the GithubPage option for this repo.

The repo became a subdirectory of username. github.io/blog.

In this way, your username. github.io repo can be left to the home page!

Sponsor

I spent a lot of time and energy to develop this project.

If this project has brought you help, welcome to sponsor, star.

Thank you!

License

The Project is released under the LGPL-3.0 license.

homepage's People

Contributors

tomotoes 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

homepage's Issues

cnpm run dev 报错了

版本信息如下

[email protected] (/usr/local/lib/node_modules/cnpm/lib/parse_argv.js)
[email protected] (/usr/local/lib/node_modules/cnpm/node_modules/npm/index.js)
[email protected] (/usr/local/bin/node)

报错信息如下

> [email protected] predev
> gulp build

[20:51:41] Using gulpfile /home/acerkaio/桌面/HomePage/gulpfile.js
[20:51:41] Starting 'build'...
[20:51:41] Starting 'clean'...
[20:51:41] Finished 'clean' after 3.62 ms
[20:51:41] Starting 'assets'...
[20:51:41] Finished 'assets' after 21 ms
[20:51:41] Starting 'pug'...
[20:51:41] Finished 'pug' after 106 ms
[20:51:41] Starting 'css'...
Error in plugin "gulp-sass"
Message:
    
gulp-sass no longer has a default Sass compiler; please set one yourself.
Both the "sass" and "node-sass" packages are permitted.
For example, in your gulpfile:

  const sass = require('gulp-sass')(require('sass'));

[20:51:41] The following tasks did not complete: build, css
[20:51:41] Did you forget to signal async completion?

It didn't work in Firefox

I used Firefox to open the page, but when I switched to the second page by mouse wheel(clicked the "enter" is still work), it didn't show anything.

anime is not defined

当我安装启动后,打开页面enter点击没有反应,f12 console输出Uncaught ReferenceError: anime is not defined

我认为.....

要加载好久才加载出来,还一卡一卡的,不知道为啥,我是说你的那个网站 /笑哭

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.