提交 53dccdd8 作者: 18928357778

改-飞手培训-样式

上级 eed3ee08
...@@ -14,15 +14,13 @@ ...@@ -14,15 +14,13 @@
} }
.logo { .logo {
width: 113px; width: 90px;
height: 35px; height: 48px;
background-image: url(./assets/logo.png); background-image: url(./assets/logo.png);
background-size: 100% 100%; background-size: 100% 100%;
margin-right: 40px;
} }
.tabs { .tabs {
width: 800px;
height: 100%; height: 100%;
margin-right: 58px; margin-right: 58px;
:global .ant-tabs-nav { :global .ant-tabs-nav {
...@@ -41,7 +39,7 @@ ...@@ -41,7 +39,7 @@
.ant-tabs-tab-btn { .ant-tabs-tab-btn {
font-size: 14px; font-size: 14px;
color: #424242; color: #424242;
width: 90px; width: 100px;
text-align: center; text-align: center;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
font-weight: bold; font-weight: bold;
......
...@@ -44,7 +44,6 @@ export default function NavHeader() { ...@@ -44,7 +44,6 @@ export default function NavHeader() {
console.log("currentHash", currentPath); console.log("currentHash", currentPath);
const onChange = (key: string) => { const onChange = (key: string) => {
console.log(key);
router.push(key); router.push(key);
}; };
......
components/footer/assets/logo.png

15.5 KB | W: | H:

components/footer/assets/logo.png

6.4 KB | W: | H:

components/footer/assets/logo.png
components/footer/assets/logo.png
components/footer/assets/logo.png
components/footer/assets/logo.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
} }
.logo { .logo {
width: 150px; width: 90px;
height: 47px; height: 48px;
background: url("./assets/logo.png") no-repeat; background: url("./assets/logo.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
margin-right: 155px; margin-right: 155px;
......
import React from "react";
import Layout from "~/components/layout";
import { Box } from "./styled";
import { Button } from "antd";
import { useRouter } from "next/router";
export default function FlyingDetail() {
const router = useRouter();
return (
<Layout>
<Box>
<div className="box-top">
<div className="left">科比特行业课程1111</div>
<div className="right">
<Button
type="primary"
className="btn"
onClick={() =>
router.push(`/flyingHandService/examination/${router.query.id}`)
}
>
去考试
</Button>
</div>
</div>
<div className="box-body">
<video className="body-video" src="" />
</div>
</Box>
</Layout>
);
}
import styled from "styled-components";
export default function Style() {
return <></>;
}
export const Box = styled.div`
box-sizing: border-box;
.box-top {
display: flex;
justify-content: space-between;
align-items: center;
.left {
width: 190px;
height: 25px;
font-size: 20px;
font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
font-weight: bold;
color: #000000;
line-height: 25px;
}
.right {
.btn {
width: 180px;
height: 50px;
background: linear-gradient(135deg, #278eff 0%, #0052da 100%);
border-radius: 6px;
font-size: 20px;
font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
font-weight: bold;
color: #ffffff;
&:hover {
opacity: 0.8;
}
}
}
}
.box-body {
margin-top: 20px;
width: 1200px;
height: 675px;
background: #111111;
.body-video {
width: 1200px;
height: 675px;
}
}
`;
import React from "react";
import Layout from "~/components/layout";
import { Box } from "./styled";
import { Tabs } from "antd";
import type { TabsProps } from "antd";
export default function ExaminationDateil() {
const onChange = (key: string) => {
console.log(key);
};
const items: TabsProps["items"] = [
{
key: "1",
label: `Tab 1`,
children: `Content of Tab Pane 1`,
},
{
key: "2",
label: `Tab 2`,
children: `Content of Tab Pane 2`,
},
];
return (
<Layout>
<Box>
<Tabs defaultActiveKey="1" items={items} onChange={onChange} />
</Box>
</Layout>
);
}
import styled from "styled-components";
export default function Style() {
return <></>;
}
export const Box = styled.div`
box-sizing: border-box;
`;
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { Box } from "./styled"; import { Box } from "./styled";
import Image from "next/image"; import Image from "next/image";
import { Button, Select, Space, Pagination, Cascader } from "antd"; import { Button, Select, Space, Pagination, Cascader, Modal } from "antd";
import Layout from "~/components/layout"; import Layout from "~/components/layout";
import ContentBox from "~/components/contentBox"; import ContentBox from "~/components/contentBox";
import api, { Flying, SkillsType, RegionResp } from "./api"; import api, { Flying, SkillsType, RegionResp } from "./api";
...@@ -31,7 +31,11 @@ export default function FlyingHandService() { ...@@ -31,7 +31,11 @@ export default function FlyingHandService() {
const leftDom = (item: Flying) => { const leftDom = (item: Flying) => {
return ( return (
<div className="item" key={item.id}> <div
className="item"
key={item.id}
onClick={() => router.push(`/flyingHandService/detail/${item.id}`)}
>
<div className="item-top"> <div className="item-top">
<Image <Image
src={`${item.videoUrl}?x-oss-process=video/snapshot,t_1000,m_fast`} src={`${item.videoUrl}?x-oss-process=video/snapshot,t_1000,m_fast`}
...@@ -173,6 +177,21 @@ export default function FlyingHandService() { ...@@ -173,6 +177,21 @@ export default function FlyingHandService() {
} }
}, [router]); }, [router]);
//报名
const [isModalOpen, setIsModalOpen] = useState(false);
const [loading, setLoading] = useState(false);
const handleOk = () => {
setLoading(true);
setTimeout(() => {
setLoading(false);
setIsModalOpen(false);
}, 3000);
};
const handleCancel = () => {
setIsModalOpen(false);
};
return ( return (
<Layout> <Layout>
<Box> <Box>
...@@ -221,10 +240,37 @@ export default function FlyingHandService() { ...@@ -221,10 +240,37 @@ export default function FlyingHandService() {
/> />
</Space> </Space>
</div> </div>
<Button type="primary" className="btn"> <Button
type="primary"
className="btn"
onClick={() => setIsModalOpen(true)}
>
报名学习课程 报名学习课程
</Button> </Button>
</div> </div>
<Modal
wrapClassName="application"
title={<div className="title">报名学习课程</div>}
open={isModalOpen}
onCancel={handleCancel}
getContainer={false}
footer={[
<Button
style={{ width: "100%" }}
key="submit"
type="primary"
loading={loading}
onClick={handleOk}
>
立即报名
</Button>,
]}
>
<p>Some contents...</p>
<p>Some contents...</p>
<p>Some contents...</p>
</Modal>
<ContentBox <ContentBox
boxIndex={4} boxIndex={4}
leftcontentstyle={{ leftcontentstyle={{
......
...@@ -135,4 +135,15 @@ export const Box = styled.div` ...@@ -135,4 +135,15 @@ export const Box = styled.div`
.pagination-page { .pagination-page {
text-align: right; text-align: right;
} }
.application {
.title {
text-align: center;
height: 23px;
font-size: 18px;
font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
font-weight: bold;
color: #000000;
line-height: 23px;
}
}
`; `;
...@@ -22,8 +22,8 @@ export const Box = styled.div` ...@@ -22,8 +22,8 @@ export const Box = styled.div`
justify-content: center; justify-content: center;
align-items: center; align-items: center;
&:not(.slick-active) > button { &:not(.slick-active) > button {
width: 8px; width: 6px;
height: 8px; height: 6px;
border-radius: 50%; border-radius: 50%;
} }
& > button { & > button {
......
...@@ -172,7 +172,7 @@ export default function WaterfallFlowBody() { ...@@ -172,7 +172,7 @@ export default function WaterfallFlowBody() {
const resValuelist2 = res2 const resValuelist2 = res2
.map((item, index) => { .map((item, index) => {
return item.result?.map((it) => { return item.result?.map((it) => {
it.type = jobApiTypeList[index]; it.type = mallApiTypeList[index];
return it; return it;
}); });
}) })
...@@ -180,7 +180,7 @@ export default function WaterfallFlowBody() { ...@@ -180,7 +180,7 @@ export default function WaterfallFlowBody() {
const resValuelist3 = res3 const resValuelist3 = res3
.map((item, index) => { .map((item, index) => {
return item.result?.map((it) => { return item.result?.map((it) => {
it.type = mallApiTypeList[index]; it.type = flightApiTypeList[index];
return it; return it;
}); });
}) })
...@@ -188,7 +188,7 @@ export default function WaterfallFlowBody() { ...@@ -188,7 +188,7 @@ export default function WaterfallFlowBody() {
const resValuelist4 = res4 const resValuelist4 = res4
.map((item, index) => { .map((item, index) => {
return item.result?.map((it) => { return item.result?.map((it) => {
it.type = flightApiTypeList[index]; it.type = jobApiTypeList[index];
return it; return it;
}); });
}) })
...@@ -227,8 +227,6 @@ export default function WaterfallFlowBody() { ...@@ -227,8 +227,6 @@ export default function WaterfallFlowBody() {
}, []); }, []);
const routerPath = (index: number, item?: AllType) => { const routerPath = (index: number, item?: AllType) => {
console.log(index);
if (item) { if (item) {
router.push({ router.push({
pathname: columns[index].router, pathname: columns[index].router,
...@@ -253,7 +251,7 @@ export default function WaterfallFlowBody() { ...@@ -253,7 +251,7 @@ export default function WaterfallFlowBody() {
{/* <div className="item-left-icon"> {/* <div className="item-left-icon">
<Image src={icon[index]} alt="#" /> <Image src={icon[index]} alt="#" />
</div> */} </div> */}
<div className="item-left-label">{item.title}</div> <div className="item-left-label" onClick={() => routerPath(index)}>{item.title}</div>
</div> </div>
<div> <div>
<Select <Select
...@@ -307,9 +305,9 @@ export default function WaterfallFlowBody() { ...@@ -307,9 +305,9 @@ export default function WaterfallFlowBody() {
); );
})} })}
</Space> </Space>
<div className="item-bottom" onClick={() => routerPath(index)}> {/* <div className="item-bottom" onClick={() => routerPath(index)}>
全部 全部
</div> </div> */}
</div> </div>
</div> </div>
); );
...@@ -319,11 +317,11 @@ export default function WaterfallFlowBody() { ...@@ -319,11 +317,11 @@ export default function WaterfallFlowBody() {
return ( return (
<div key={1009} className="right-box-item right-item"> <div key={1009} className="right-box-item right-item">
<div className="title"> <div className="title">
行业新闻
<div <div
className="title-label" className="title-label"
onClick={() => router.push("/projectInfo")} onClick={() => router.push("/projectInfo")}
> >
行业新闻
&gt; &gt;
</div> </div>
</div> </div>
...@@ -353,11 +351,11 @@ export default function WaterfallFlowBody() { ...@@ -353,11 +351,11 @@ export default function WaterfallFlowBody() {
<Image src={xwbg} alt="#" width={384} height={249} /> <Image src={xwbg} alt="#" width={384} height={249} />
<div className="item-box"> <div className="item-box">
<div className="title"> <div className="title">
招标快讯
<div <div
className="title-label" className="title-label"
onClick={() => router.push("/projectInfo")} onClick={() => router.push("/projectInfo")}
> >
招标快讯
&gt; &gt;
</div> </div>
</div> </div>
......
...@@ -37,12 +37,16 @@ export const Box = styled.div` ...@@ -37,12 +37,16 @@ export const Box = styled.div`
font-weight: bold; font-weight: bold;
color: #000000; color: #000000;
line-height: 32px; line-height: 32px;
&:hover{
cursor: pointer;
color: #ff552d;
}
} }
} }
.select-box { .select-box {
background: #e0eeff; /* background: #e0eeff; */
border-radius: 2px; /* border-radius: 2px; */
border: 1px solid #aad0ff; /* border: 1px solid #aad0ff; */
font-size: 12px; font-size: 12px;
width: 49px; width: 49px;
.ant-select-selection-placeholder { .ant-select-selection-placeholder {
...@@ -56,6 +60,7 @@ export const Box = styled.div` ...@@ -56,6 +60,7 @@ export const Box = styled.div`
} }
.ant-select-arrow { .ant-select-arrow {
right: 2px; right: 2px;
color: #297ce0;
} }
} }
} }
...@@ -108,10 +113,9 @@ export const Box = styled.div` ...@@ -108,10 +113,9 @@ export const Box = styled.div`
color: #000000; color: #000000;
line-height: 25px; line-height: 25px;
&-label { &-label {
margin-left: 10px;
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 100;
&:hover { &:hover {
color: #ff552d; color: #ff552d;
} }
...@@ -201,10 +205,9 @@ export const Box = styled.div` ...@@ -201,10 +205,9 @@ export const Box = styled.div`
color: #000000; color: #000000;
line-height: 25px; line-height: 25px;
&-label { &-label {
margin-left: 10px;
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 100;
&:hover { &:hover {
color: #ff552d; color: #ff552d;
} }
......
pages/projectInfo/assets/banner.png

83.2 KB | W: | H:

pages/projectInfo/assets/banner.png

82.2 KB | W: | H:

pages/projectInfo/assets/banner.png
pages/projectInfo/assets/banner.png
pages/projectInfo/assets/banner.png
pages/projectInfo/assets/banner.png
  • 2-up
  • Swipe
  • Onion skin
.bannerWrap{ .bannerWrap{
height: 160px; height: 100px;
position: relative; position: relative;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论