增加官方网站

This commit is contained in:
黄子楠 2021-04-22 17:26:37 +08:00
parent 345eac9306
commit bc42a1343a
11 changed files with 487 additions and 47 deletions

BIN
example/img/Tpano-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
example/img/adaptation.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
example/img/controller.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
example/img/install-std.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

BIN
example/img/simple.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
example/img/source.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
example/img/tpano.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

304
index.css Normal file
View File

@ -0,0 +1,304 @@
* {
margin: 0;
}
html {
-ms-overflow-style: none;
overflow: -moz-scrollbars-none;
}
body::-webkit-scrollbar {
display: none;
}
header {
display: flex;
justify-content: center;
box-shadow: 0 2px 2px rgb(0 0 0 / 10%);
background-color: #ffffff;
}
header>div {
display: flex;
justify-content: space-between;
width: 1300px;
height: 56px;
}
header nav {
display: flex;
align-items: center;
}
header img {
height: 30px;
width: 30px;
}
header p {
font-size: 20px;
margin-left: 8px;
}
a {
text-decoration: none;
color: rgb(34, 34, 34);
font-size: 14px;
}
li {
list-style: none;
margin-left: 40px;
}
li:hover {
text-decoration: underline;
}
main {
height: calc(100vh - 56px);
position: relative;
}
#pano {
position: absolute;
width: 100vw;
height: calc(100vh - 36px);
filter: blur(2px);
overflow: hidden;
top: -20px;
z-index: -1;
background-color: black;
}
.main {
position: absolute;
width: 100vw;
height: calc(100vh - 56px);
top: 0;
left: 0;
z-index: 3;
display: flex;
justify-content: center;
align-items: center;
}
.mian-content {
display: flex;
justify-content: center;
}
.mian-content img {
width: 200px;
height: 200px;
}
.mian-content>div {
margin-left: 40px;
}
.mian-content>div * {
margin: 10px 0;
color: #ffffff;
}
.mian-content>div h1 {
font-size: 60px;
}
.mian-content>div button {
background-color: rgba(255, 0, 0, 0);
border: 4px solid #ffffff;
border-radius: 5px;
font-size: 24px;
padding: 4px 20px;
cursor: pointer;
}
.mian-content>div button:hover {
background-color: #ffffff;
color: rgba(0, 0, 0);
}
.mian-content>div button:focus {
outline: none;
}
.page {
min-height: 100vh;
display: flex;
justify-content: center;
background-color: #f6f6f6;
}
#page-0 {
background-color: rgba(255, 0, 0, 0);
}
.page>div {
width: 1300px;
}
.links {
color: rgb(0, 132, 255);
}
.page-head {
margin: 60px 0 40px 0;
text-align: center;
padding: 10px;
background-color: #ffffff;
border-radius: 10px;
}
.page-head>h1 {
font-weight: lighter;
}
.features-card {
display: flex;
flex-direction: column;
align-items: center;
border-radius: 6px;
padding: 20px;
width: 23%;
box-sizing: border-box;
height: 360px;
background-color: #ffffff;
}
.features-card img {
width: 140px;
height: 140px;
margin: 20px 30px 30px 30px;
}
.features-title {
font-size: 20px;
margin-bottom: 10px;
}
.features-card-group {
display: flex;
justify-content: space-between;
}
.features-describe {
font-size: 18px;
margin-top: 30px;
font-weight: lighter;
}
.introduce-img-group {
display: flex;
justify-content: space-between;
}
.introduce-img {
width: 48%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.introduce-img>img, .introduce-img>tpano {
width: 100%;
height: 400px;
}
.introduce-img>p {
margin-top: 18px;
}
.get {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
#osc-gitee-widget-tag {
width: 60%;
margin-top: 30px;
}
footer {
height: 34px;
display: flex;
justify-content: center;
align-items: center;
color: rgb(66, 66, 66);
font-weight: lighter;
font-size: 14px;
}
#page-4 {
height: calc(100vh - 34px);
}
.install {
display: flex;
justify-content: space-between;
}
.install-card {
width: 48%;
text-align: center;
}
.install-card h2 {
font-size: 30px;
margin-top: 10px;
}
.install-card img {
width: 100%;
margin: 10px 0;
}
@media screen and (max-width: 1300px) {
.mian-content {
flex-direction: column;
align-items: center;
padding: 0 4%;
}
.mian-content>div {
text-align: center;
margin-left: 0;
}
header{
padding: 0 4%;
}
.page{
padding: 0 4%;
}
.introduce-img-group{
flex-direction: column;
}
.introduce-img {
width: 100%;
margin-bottom: 20px;
}
.introduce-img>img, .introduce-img>tpano {
width: 100%;
height: 220px;
}
.features-card-group{
flex-direction: column;
justify-content: none;
}
.features-card{
width: auto;
margin-bottom: 14px;
}
.install{
flex-direction: column;
}
.install-card {
width: auto;
}
#page-4{
display: none;
}
}

View File

@ -2,59 +2,195 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta charset="UTF-8">
<title>TPano 全景照片引擎</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TPano 全景照片框架</title>
<style>
*{
margin: 0;
}
#page{
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
width: 100vw;
height: 100vh;
}
h1{
margin-bottom: 20px;
font-size: 80px;
}
h2{
margin-bottom: 40px;
font-size: 40px;
}
#link{
margin-bottom: 10px;
}
#link>a{
font-size: 20px;
margin: 0 10px;
}
</style>
<title>Document</title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div id="page">
<h1>TPano 全景照片框架</h1>
<h2>基于Three.js构建</h2>
<div id="link">
<a href="./example/index.html">查看演示</a>
<a href="https://gitee.com/push_0x57df/TPano/blob/develop/docs/doc.md">查看教程</a>
</div>
<header>
<div>
<a href='https://gitee.com/push_0x57df/TPano/stargazers'><img src='https://gitee.com/push_0x57df/TPano/badge/star.svg?theme=dark' alt='star'></img></a>
<a href='https://gitee.com/push_0x57df/TPano/members'><img src='https://gitee.com/push_0x57df/TPano/badge/fork.svg?theme=dark' alt='fork'></img></a>
<nav>
<img src="./example/img/tpano.png" alt="logo">
<p>TPano</p>
</nav>
<nav>
<li><a href="https://gitee.com/push_0x57df/TPano">开源</a></li>
<li><a href="https://gitee.com/push_0x57df/TPano/blob/develop/docs/doc.md">文档</a></li>
<li><a href="https://gitee.com/push_0x57df">作者</a></li>
</nav>
</div>
</div>
</header>
<main>
<div id="pano"></div>
<div class="main">
<div class="mian-content">
<img src="./example/img/Tpano-logo.png" alt="tpano logo">
<div>
<h1>TPano</h1>
<h2>一个便于WEB前端集成的全景照片展示引擎。</h2>
<a href="#page-1"><button>了解更多</button></a>&emsp;
<a href="https://push_0x57df.gitee.io/tpano/example"><button>立即体验</button></a>
</div>
</div>
</div>
<div class="page" id="page-0"></div>
<div class="page" id="page-1">
<div>
<div class="page-head">
<h1>项目简介 / Introduce</h1>
</div>
<div class="introduce">
<div class="introduce-img-group">
<div class="introduce-img">
<img src="./example/2.jfif" alt="球面展开全景图">
<p>相机输出的球面展开全景图</p>
</div>
<div class="introduce-img">
<tpano id="pano-1" src="./example/2.jfif" alt="球面展开全景图"></tpano>
<p>使用 TPano 加载的全景场景</p>
</div>
</div>
</div>
</div>
</div>
<div class="page" id="page-2">
<div>
<div class="page-head">
<h1>特征 / Features</h1>
</div>
<div class="features-card-group">
<div class="features-card">
<img src="./example/img/source.png" alt="特征一">
<p class="features-title">开源</p>
<p>本项目开源在 Gitee使用 MIT 开源协议,可免授权商用、修改。同时欢迎 <a class="links"
href="https://gitee.com/push_0x57df/TPano">加入开源仓库</a> 一起让它变得更加完善。</p>
</div>
<div class="features-card">
<img src="./example/img/simple.png" alt="特征二">
<p class="features-title">易用</p>
<p>项目尽可能的对复杂的 3D 场景构建工作进行了底层屏蔽,使用了面向对象化的编程理念来简化了集成应用难度。通过 <a class="links"
href="https://gitee.com/push_0x57df/TPano">阅读文档</a> 了解如何使用。</p>
</div>
<div class="features-card">
<img src="./example/img/controller.png" alt="特征三">
<p class="features-title">可控</p>
<p>生成的全景场景可以接受鼠标交互,也支持移动端触屏交互和方向传感器控制,通过 <a class="links"
href="https://push_0x57df.gitee.io/tpano/example">Demo</a> 体验一下。</p>
</div>
<div class="features-card">
<img src="./example/img/adaptation.png" alt="特征四">
<p class="features-title">适配</p>
<p>依附于 WEB 天生的跨平台能力,本项目也能做到跨平台,并且对于屏幕尺寸适配和控制给出了丰富的 API。</p>
</div>
</div>
<p class="features-describe">基于众多的特征支持下,开发人员不必在意全景照片显示器内部需要使用何种技术实现 3D
渲染和模型控制,就可以很轻松的将全景照片功能集成到自己的项目中,在全景照片技术逐渐广泛应用的当下,我们也觉得需要有一种方式可以很快速的实现在 WEB
网页上显示全景照片,本项目就是基于这样的目的立项开发,并将保持开源免费。</p>
</div>
</div>
<div class="page" id="page-3">
<div>
<div class="page-head">
<h1>接入方式 / Install</h1>
</div>
<div class="install">
<div class="install-card">
<h2>标准接入</h2>
<img src="./example/img/install-std.png" alt="标准接入">
<p>使用标准接入可以调用 TPano 的全部接口能力,更为强大</p>
</div>
<div class="install-card">
<h2>快速接入</h2>
<img src="./example/img/install-fast.png" alt="快速接入">
<p>使用标快速接入可以实现零配置低代码接入,全自动加载,就像使用 img 标签一样简单</p>
</div>
</div>
</div>
</div>
<div class="page" id="page-4">
<div>
<div class="page-head">
<h1>获取 / Get</h1>
</div>
<div class="get">
<h2>请在 Gitee 上获取,如有帮助,请给个 start</h2>
<script src='https://gitee.com/push_0x57df/TPano/widget_preview' async defer></script>
<div id="osc-gitee-widget-tag"></div>
<style>
.osc_pro_color {
color: #4183c4 !important;
}
.osc_panel_color {
background-color: #ffffff !important;
}
.osc_background_color {
background-color: #ffffff !important;
}
.osc_border_color {
border-color: #e3e9ed !important;
}
.osc_desc_color {
color: #666666 !important;
}
.osc_link_color * {
color: #9b9b9b !important;
}
</style>
</div>
</div>
</div>
<footer>
<p>Copyright © 2021 入栈 Powered by TPano on Three</p>
</footer>
</main>
</body>
<!--引入three.js-->
<script src="./example/three.js"></script>
<script src="./dist/tpano.js"></script>
<!--jquery框架这里引入用来做一些其它的操作TPano不依赖它故你不需要可以不引入-->
<script src="./example/jquery-2.1.4.js"></script>
<script src="./dist/fastloading.js"></script>
<script>
var tpano = new TPano({
el: 'pano',//照片查看器根节点dom的id
photo: [
//全景照片数组,每项为一张照片
{
url: './example/1.jpg',
name: '室内'
}
],
rotateAnimateController: true,//镜头自转
MouseController: false
});
</script>
</html>