From 92389777b0d25c825979adfb9320238feb5bab90 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Mon, 7 Oct 2024 13:00:14 +0800 Subject: [PATCH] 'homepage' --- src/pages/index/index.jsx | 56 +++++++++++++++++++++++------------- src/pages/index/index.scss | 58 ++++++++++++++++++++++++++++++++------ 2 files changed, 85 insertions(+), 29 deletions(-) diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx index ceda46a..ea67028 100644 --- a/src/pages/index/index.jsx +++ b/src/pages/index/index.jsx @@ -1,6 +1,6 @@ import { Component } from "react"; import Taro from "@tarojs/taro"; -import { View, Text, Image, Button } from "@tarojs/components"; +import { View, Text, Image, Button, Video } from "@tarojs/components"; import "./index.scss"; import { AtTabBar } from "taro-ui"; import React, { useCallback, useEffect, useState } from "react"; @@ -231,26 +231,42 @@ const Index = () => { */} - {!mobile ? ( - - - 📣成为数字游民,并旅居在任何地方 -
- nomadcna.com,代表着目前中国各地远程生活和工作的数字游民,不局限于某一处 -
- 🍹每年在 100 多个城市 参加聚会 -
- ❤️结识新朋友,约会 -
- 🧪研究目的地并找到最适合居住和工作的地方 -
- 🌎追踪你的旅行,记录你去过的地方 -
- 💬加入微信群,在旅途中找到你的社区 -
- video + {/* {!mobile ? ( */} + + + 📣成为数字游民,并旅居在任何地方 +
+ nomadcna.com,代表着目前中国各地远程生活和工作的数字游民,不局限于某一处 +
+ 🍹每年在 30 多个城市 参加聚会 +
+ ❤️结识新朋友,约会 +
+ 🧪研究目的地并找到最适合居住和工作的地方 +
+ 🌎追踪你的旅行,记录你去过的地方 +
+ 💬加入微信群,在旅途中找到你的社区
- ) : null} + + +
+ {/* ) : null} */} {/* 数组尽量是4的倍数 */} diff --git a/src/pages/index/index.scss b/src/pages/index/index.scss index 4d27b0f..231b4db 100644 --- a/src/pages/index/index.scss +++ b/src/pages/index/index.scss @@ -1,4 +1,3 @@ - .Index { font-size: 16px; // padding: 20px; @@ -21,7 +20,7 @@ .up { // width: 100%; padding: 100px; - min-height: 400px; + // min-height: 400px; color: #fff; display: flex; flex-direction: row; @@ -42,11 +41,45 @@ } } .nomadvideo { - width: 300px; - height: 300px; - background-color: yellow; + display: flex; + flex-direction: column; + // align-items: center; + // justify-content: space-between; + width: 400px; + // height: 300px; + background-color: #fafafa; + padding: 20px; + border-radius: 15px; + // position: absolute; + .videoDom { + width: 100%; + height: 200px; + // background-color: aquamarine; + position: relative; + } + .jonNomad { + margin-top: 10px; + width: 100%; + height: 50px; + font-size: 40px !important; + // background-color: yellow; + // position: relative; + .jonNomadBtn { + height: 50px; + font-size: 24px ; + display: flex; + flex-direction: row; + align-items: center; + background-color: #ff4d4f; + border-color: #ff4d4f; + // justify-content: space-between; + } + .jonNomadBtn:hover { + background-color: #ffffff; /* 悬浮时的背景色 */ + color: #f5222d; /* 悬浮时的字体颜色 */ + } + } } - } .items { height: 100%; @@ -164,8 +197,15 @@ color: aqua; } } -@media (max-width: 1000px) { - .Index .nomadvideo{ + +@media (max-width: 2000px) { + .Index .nomadvideo { + display: none !important; + } + .Index .videoDom { display: none; } -} \ No newline at end of file + .Index .jonNomad { + display: none; + } +}