10 changed files with 397 additions and 475 deletions
File diff suppressed because it is too large
@ -1,10 +1,60 @@ |
|||||
.container { |
.container { |
||||
padding: 20px; |
padding: 20px; |
||||
|
|
||||
.title { |
.title { |
||||
font-size: 25px; |
font-size: 25px; |
||||
font-weight: bolder; |
font-weight: bolder; |
||||
} |
} |
||||
|
|
||||
.opeation { |
.opeation { |
||||
margin: 20px 0; |
margin: 20px 0; |
||||
} |
} |
||||
|
|
||||
|
.panel { |
||||
|
padding: 10px 20px; |
||||
|
border-radius: 6px; |
||||
|
|
||||
|
.panelTitle { |
||||
|
cursor: pointer; |
||||
|
margin-bottom: 10px; |
||||
|
|
||||
|
.panelTitleName { |
||||
|
display: inline-block; |
||||
|
font-size: 25px; |
||||
|
font-weight: bolder; |
||||
|
position: relative; |
||||
|
|
||||
|
&:before { |
||||
|
font-size: 20px; |
||||
|
content: "#"; |
||||
|
opacity: 0; |
||||
|
position: absolute; |
||||
|
color: red; |
||||
|
right: 100%; |
||||
|
top: 50%; |
||||
|
transform: translateY(-50%); |
||||
|
transition: opacity .3s linear; |
||||
|
} |
||||
|
|
||||
|
&:hover:before { |
||||
|
opacity: 1; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.panelTitleDesc { |
||||
|
display: inline-block; |
||||
|
font-size: 14px; |
||||
|
margin-left: 8px; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
.cell { |
||||
|
border: 1px solid #999999; |
||||
|
padding: 5px 15px; |
||||
|
font-size: 14px; |
||||
|
border-radius: 5px; |
||||
|
cursor: pointer; |
||||
|
user-select: none; |
||||
|
} |
||||
|
} |
||||
} |
} |
||||
|
@ -1,15 +1,41 @@ |
|||||
import electron from "@/plugins/electron" |
import { Grid, Paper } from "@material-ui/core" |
||||
import cs from "classnames" |
import cs from "classnames" |
||||
import _ from "lodash" |
import { motion } from "framer-motion" |
||||
import React from "react" |
import React from "react" |
||||
import style from "./index.module.scss" |
import style from "./index.module.scss" |
||||
|
|
||||
|
const MyComponent = ({ children }: any) => { |
||||
|
return ( |
||||
|
<motion.div initial="hidden" animate="visible" variants={{ |
||||
|
visible: { opacity: 1 }, |
||||
|
hidden: { opacity: 0 } |
||||
|
}}> |
||||
|
{children} |
||||
|
</motion.div> |
||||
|
) |
||||
|
} |
||||
|
|
||||
function Home() { |
function Home() { |
||||
return ( |
return ( |
||||
<div className={cs(style.container, "container")}> |
<MyComponent> |
||||
add |
<div className={cs(style.container, "container")}> |
||||
</div> |
<Paper className={cs(style.panel)} elevation={3} variant="outlined"> |
||||
|
<div className={style.panelTitle}> |
||||
|
<div className={style.panelTitleName}>通用工具</div> |
||||
|
<div className={style.panelTitleDesc}>方便开发</div> |
||||
|
</div> |
||||
|
<Grid container style={{ textAlign: "center" }} spacing={2}> |
||||
|
<Grid item xs={12} sm={6} md={2}> |
||||
|
<div className={style.cell}>Base64</div> |
||||
|
</Grid> |
||||
|
<Grid item xs={12} sm={6} md={2}> |
||||
|
<div className={style.cell}>二维码生成</div> |
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
</Paper> |
||||
|
</div> |
||||
|
</MyComponent> |
||||
) |
) |
||||
} |
} |
||||
|
|
||||
export default Home |
export default Home |
||||
|
Loading…
Reference in new issue