Harmony OS FA-JS

发布于 2021-10-25 21:55
浏览
0收藏

JS-开发app
index/index.hml
Harmony OS FA-JS-开源基础软件社区
index/index.js
Harmony OS FA-JS-开源基础软件社区
效果图:
Harmony OS FA-JS-开源基础软件社区
index/index.css
.container {
flex-direction: column;
}
/* tv */
@media screen and (device-type: tv) {
.title {
align-items:flex-start;
flex-direction: column;
padding-left: 60px;
padding-right: 160px;
margin-top:15px;
}

.name {
    font-size: 20px;
}

.sub-title {
    font-size: 15px;
    color: #7a787d;
    margin-top: 10px;
}

.swiper-style {
    height: 300px;
    width: 350px;
    indicator-color: #4682b4;
    indicator-selected-color: #f0e68c;
    indicator-size: 10px;
    margin-left: 50px;
}

.image-mode {
    object-fit: contain;
}

.selection-bar {
    flex-direction: row;
    align-content: center;
    margin-top: 20px;
    margin-left: 10px;
}

.option-mode {
    height: 40px;
    width: 40px;
    margin-left: 50px;
    opacity: 0.5;
    border-radius: 20px;
}

.option-mode:focus {
    opacity: 1;
}

.description-first-paragraph {
    padding-left: 60px;
    padding-right: 60px;
    padding-top: 30px;
}

.description {
    color: #7a787d;
    font-size: 15px;
}

.cart {
    padding-left: 60px;
    margin-top: 30px;
}

.cart-text {
    font-size: 20px;
    text-align: center;
    width: 300px;
    height: 50px;
    background-color: #6495ed;
    color: white;
}

.cart-text-focus {
    font-size: 20px;
    text-align: center;
    width: 300px;
    height: 50px;
    background-color: #4169e1;
    color: white;
}

.add-cart-text {
    font-size: 20px;
    text-align: center;
    width: 300px;
    height: 50px;
    background-color: #ffd700;
    color: white;
}

}

/* phone */
@media screen and (device-type: phone) {
.title {
align-items:flex-start;
flex-direction: column;
padding-left: 60px;
padding-right: 160px;
padding-top: 20px;
}

.name {
    font-size: 50px;
    color: #000000;
}

.sub-title {
    font-size: 30px;
    color: #7a787d;
    margin-top: 10px;
}

.display-style {
    flex-direction: column;
    align-items:center;
}

.swiper-style {
    height: 600px;
    indicator-color: #4682b4;
    indicator-selected-color: #ffffff;
    indicator-size: 20px;
    margin-top: 15px;
}

.image-mode {
    object-fit: contain;
}

.selection-bar-container {
    height: 90px;
    justify-content: center;
}

.selection-bar {
    height: 90px;
    width: 500px;
    margin-top: 30px;
    justify-content: center;
    align-items:center;
}

.option-mode {
    object-fit: contain;
    opacity: 0.5;
}

.option-mode:active {
    opacity: 1;
}

.description {
    color: #7a787d;
}

.description-first-paragraph {
    padding-left: 60px;
    padding-top: 50px;
    padding-right: 60px;
}

.color-column {
    flex-direction: row;
    align-content: center;
    margin-top: 20px;
}

.color-item {
    height: 50px;
    width: 50px;
    margin-left: 50px;
    padding-left: 10px;
}

.cart {
    justify-content: center;
    margin-top: 30px;
}

.cart-text {
    font-size: 35px;
    text-align: center;
    width: 600px;
    height: 100px;
    background-color: #6495ed;
    color: white;
}

.add-cart-text {
    font-size: 35px;
    text-align: center;
    width: 600px;
    height: 100px;
    background-color: #ffd700;
    color: white;
}

}

FA_JS.rar 8.64M 0次下载
1
收藏
回复
举报
回复
添加资源
添加资源将有机会获得更多曝光,你也可以直接关联已上传资源 去关联
    相关推荐