本文给大家带来的是微信小程序V2EX社区云端记事本页面设计制作开发教程,制作好以后效果图如下:
一、wxml页面代码如下:
<include src="/components/header.wxml" />
<view class="container">
<view class="btn-group">
<button>新建记事</button>
<button>新建文件夹</button>
</view>
<image src="https://www.v2ex.com/static/img/cloud.png"></image>
<view class="tips">
V2EX Notes 是一个简单可靠的云端记事本,你的数据绝对安全,随时可以访问。
</view>
</view>
<include src="/components/footer.wxml" />
|
二、wxss样式文件代码如下:
.container {
display: flex;
flex-direction: column;
align-items: center;
width: 95%;
margin: 0 auto;
margin-bottom: 15rpx;
border-radius: 10rpx;
background-color: #fefefe;
box-shadow: 2px 2px 3px #00343f;
}
.container > view{
display: flex;
justify-content: space-between;
}
.container > image{
width: 300rpx;
height: 220rpx;
margin: 50rpx 0;
}
.container button{
margin: 20rpx;
flex: 1;
height: 60rpx;
line-height: 60rpx;
font-size: 28rpx;
font-weight: bold;
color: #333;
border-radius: 5rpx;
background: linear-gradient(to bottom, #fff 40%, #ddd);
}
.btn-group{
width: 100%;
border-bottom: 1px solid #ddd;
}
.tips{
margin: 20rpx;
font-size: 25rpx;
color: #999;
text-align: center;
}
|