加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.txt 2.21 KB
一键复制 编辑 原始数据 按行查看 历史
佩佩 提交于 2018-08-19 18:28 . Add files via upload
Aerial by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
This is Aerial, a single page, single screen responsive site template. Real simple.
Makes heavy use of CSS animation (something I've been messing with a lot lately).
Should work well as a landing page that just directs folks to your stuff elsewhere
on the www. Sass sources are also included, so if you've never used Sass and you're
interested in giving it a try, head on over to sass-lang.com (and if not, you can
safely delete the "sass/" folder).
The scrolling mountainous background was derived from "Icefields" by Ryan Schroeder,
a talented photographer from Vancouver who graciously released it on Unsplash under
the CC0 license. Be sure to check out his other stuff over at flickr (link below)
as well as all the other kickass CC0-licensed images at Unsplash (unsplash.com).
Questions/comments/issues = just email or find me on Twitter. Have fun!
AJ
aj@lkn.io | @ajlkn
The Scrolling Background:
This relies entirely on CSS to do its thing, which is cool, but that makes
changing it a bit weird/tricky at first. You can still use pretty much any image
you want, but for best results make sure yours is:
- Horizontally tileable.
- Wide and short.
- About 1500px wide.
- Fades to a solid color either at the top of bottom (which is used to fill
the empty space above or below your image).
Now, there are two ways to use it: with CSS, or with Sass:
CSS:
Look for this line in css/style.css (line 108 as of this writing):
background: #348cb2 url("images/bg.jpg") bottom left;
and use it to set the page background color, URL, and placement of
your image. It should be as close to 1500px wide as you can get it.
Sass:
Set the value of $bg to the page background color, URL, and placement
of your image. Change $bg-width if your image is something other than
1500px wide.
Credits:
Background Image:
Ryan Schroeder via Unsplash (unsplash.com - CC0 licensed)
"Icefields" (flickr.com/photos/ryanschroeder/11876741703)
Icons:
Font Awesome (fontawesome.io)
Other:
Responsive Tools (github.com/ajlkn/responsive-tools)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化