feat: 更新header
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import path from "path";
|
||||||
const config = {
|
const config = {
|
||||||
projectName: "cityh5",
|
projectName: "cityh5",
|
||||||
date: "2023-12-2",
|
date: "2023-12-2",
|
||||||
@@ -41,6 +42,9 @@ const config = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
alias: {
|
||||||
|
"@": path.resolve(__dirname, "..", "src"),
|
||||||
|
},
|
||||||
h5: {
|
h5: {
|
||||||
webpackChain(chain) {
|
webpackChain(chain) {
|
||||||
chain.module
|
chain.module
|
||||||
|
|||||||
@@ -63,6 +63,7 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
<script
|
||||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
_paq.push(["trackPageView"]);
|
_paq.push(["trackPageView"]);
|
||||||
_paq.push(["enableLinkTracking"]);
|
_paq.push(["enableLinkTracking"]);
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ import IndexDetail from "./componments/IndexDetail/index";
|
|||||||
|
|
||||||
import { LazyLoadImage } from "react-lazy-load-image-component";
|
import { LazyLoadImage } from "react-lazy-load-image-component";
|
||||||
import "react-lazy-load-image-component/src/effects/blur.css";
|
import "react-lazy-load-image-component/src/effects/blur.css";
|
||||||
|
import Nav from './componments/Nav/index'
|
||||||
// export default class Index extends Component {
|
// export default class Index extends Component {
|
||||||
const Index = () => {
|
const Index = () => {
|
||||||
const [current, setcurrent] = useState(0);
|
const [current, setcurrent] = useState(0);
|
||||||
@@ -230,6 +230,9 @@ const Index = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View className="Index">
|
<View className="Index">
|
||||||
|
|
||||||
|
<Nav></Nav>
|
||||||
|
|
||||||
{/* <View className="header">
|
{/* <View className="header">
|
||||||
<View className="headerTag">
|
<View className="headerTag">
|
||||||
{["首页","导航", "图书", "好物", "活动", "工具箱", "关于我们"].map(
|
{["首页","导航", "图书", "好物", "活动", "工具箱", "关于我们"].map(
|
||||||
@@ -254,11 +257,13 @@ const Index = () => {
|
|||||||
|
|
||||||
{/* {!mobile ? ( */}
|
{/* {!mobile ? ( */}
|
||||||
<View className="up">
|
<View className="up">
|
||||||
|
|
||||||
<View className="upText">
|
<View className="upText">
|
||||||
<span className="title">📣成为数字游民,并旅居在任何地方</span>
|
<span className="title">📣成为数字游民,并旅居在任何地方</span>
|
||||||
<br />
|
<br />
|
||||||
<span className="nomadcna">nomadcna.com</span>
|
{/* <span className="nomadcna">nomadcna.com</span> */}
|
||||||
,代表着目前中国各地远程生活和工作的数字游民,不局限于某一处
|
{/* ,代表着目前 */}
|
||||||
|
中国各地远程生活和工作的数字游民,不局限于某一处
|
||||||
<View className="AvatarView">
|
<View className="AvatarView">
|
||||||
{[
|
{[
|
||||||
{ image: girla },
|
{ image: girla },
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
|
|
||||||
.upjonNomad {
|
.upjonNomad {
|
||||||
margin-top: 10px;
|
margin-top: 40px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
font-size: 40px !important;
|
font-size: 40px !important;
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
gap: 30px; /* 设置元素之间的间隔 */
|
gap: 30px; /* 设置元素之间的间隔 */
|
||||||
// padding-left: 10px; /* 确保两侧固定边距 */
|
// padding-left: 10px; /* 确保两侧固定边距 */
|
||||||
// padding-right: 10px;
|
// padding-right: 10px;
|
||||||
background-color: aqua;
|
// background-color: aqua;
|
||||||
|
|
||||||
.item:hover {
|
.item:hover {
|
||||||
animation: pulse 0.6s ease;
|
animation: pulse 0.6s ease;
|
||||||
|
|||||||
Reference in New Issue
Block a user