You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/public/react/src/modules/osshackathon/Osshackathon.js

107 lines
2.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import React, {Component} from 'react';
import axios from 'axios';
import {SnackbarHOC, WordsBtn,getImageUrl} from 'educoder';
import {Row, Col,Input,Divider,Card,Button} from 'antd';
import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
import { CNotificationHOC } from '../courses/common/CNotificationHOC';
import './Osshackathon.css';
const { Search } = Input;
class Osshackathon extends Component {
constructor(props) {
super(props)
this.state = {
}
}
componentDidMount() {
}
componentDidUpdate = (prevProps) => {
}
render() {
// let {} = this.state;
return (
<div className="newMain clearfix newMainybot">
<div className={"educontent mb20 persmstyle"} style={{width: "1200px", marginTop: "26px"}}>
<div className="registrationback"
style={{"background": `url(${getImageUrl(`images/educoder/competitions/tipregistit.jpg`)})`,"height":"360px"}}
></div>
<Row className={"mt20"}>
<Col span={6}>
<Search
placeholder="请输入项目名称进行搜索"
enterButton="搜索"
size="large"
onSearch={value => console.log(value)}
/>
</Col>
<Col span={3} className={"fr textright"}>
<div>
报名整数<span className={"color-red"}>280</span>
</div>
</Col>
</Row>
<Row className={"mt20"}>
<Col span={6} className={"Osshackathonfont"}>
大赛介绍
</Col>
<Col span={3} className={"fr textright"}>
<Button type="primary">编辑</Button>
</Col>
</Row>
<style>
{
`
.ant-divider-horizontal{
margin: 19px 0;
}
`
}
</style>
<Divider />
<p className={"Osshackathonfontlist mb30"}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista
probare, quae sunt a te dicta? Refert tamen, quo modo.
</p>
<Card className={"OsshackathonCard"}>
<Row>
<Col span={6} className={"OsshackathonCardtitle"}>
大赛介绍
</Col>
<Col span={6} className={"fr textright"}>
<Button type="primary fr ">立即报名</Button>
<Button type="primary fr mr20" disabled>
已报名
</Button>
</Col>
</Row>
<p>Card content</p>
<p>Card content</p>
</Card>
</div>
</div>
)
}
}
export default CNotificationHOC() (TPMIndexHOC (Osshackathon)) ;