diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..66544f0
Binary files /dev/null and b/.DS_Store differ
diff --git a/components/BackGround.js b/components/BackGround.js
new file mode 100644
index 0000000..a40c518
--- /dev/null
+++ b/components/BackGround.js
@@ -0,0 +1,18 @@
+const BackGround = () => {
+ return
+
+
+}
+export default BackGround
diff --git a/components/Footer.js b/components/Footer.js
new file mode 100644
index 0000000..c2cd295
--- /dev/null
+++ b/components/Footer.js
@@ -0,0 +1,71 @@
+import Link from 'next/link';
+const CopyRight = () => {
+ return (
+
+ )
+}
+export default CopyRight
diff --git a/components/Header.js b/components/Header.js
index f0679d8..14775e0 100644
--- a/components/Header.js
+++ b/components/Header.js
@@ -55,8 +55,9 @@ const Header = (props) => {
@@ -116,7 +117,7 @@ const Header = (props) => {
border-radius: 1px;
}
- @media(max-width:500px){
+ @media(max-width:700px){
.arrow.active{
top: 5px;
transform: translateY(0);
@@ -170,7 +171,7 @@ const Header = (props) => {
opacity: 0;
visibility: hidden;
}
- @media(max-width:500px){
+ @media(max-width:700px){
.nav{
height: auto;
}
@@ -186,7 +187,7 @@ const Header = (props) => {
justify-content: space-between;
transition: 0.3s;
}
- @media(max-width:500px){
+ @media(max-width:700px){
.w1500{
flex-direction:column;
width: 100%;
@@ -203,7 +204,7 @@ const Header = (props) => {
padding: 0 10px;
line-height: 56px;
}
- @media(max-width:500px){
+ @media(max-width:700px){
.brand a{
display: inline-block;
}
@@ -221,7 +222,7 @@ const Header = (props) => {
.links a:hover{
color: #1890ff;
}
- @media(max-width:500px){
+ @media(max-width:700px){
.links{
overflow-x: scroll;
-webkit-overflow-scrolling: touch;
diff --git a/components/Layout.js b/components/Layout.js
index b3aa308..6f58d77 100644
--- a/components/Layout.js
+++ b/components/Layout.js
@@ -4,6 +4,7 @@ import {
createRef
} from 'react';
import Header from './Header';
+import Footer from './Footer';
const Layout = props => {
const [blur, setBlur] = useState(false);
@@ -12,6 +13,7 @@ const Layout = props => {
{props.children}
+
{/* background: rgba(255,255,255,0.6) */}
+
+}
+const Aside = () => {
+ const SpaceBorder = (props) => {
+ return
+ {props.children}
+
+
+ }
+ return
+}
+const Card = () => {
+ return
+
美女
+
+
+
+}
+const UserInfo = () => {
+ return
+
+
Blue
+
+
+}
+const List = () => {
+ const Item = () => {
+ return
+
+
+
+
+
+
+
+
[几天前]JavaScript 数据结构与算法之美 - 桶排序、计数排序、基数排序
+
之所以把计数排序、桶排序、基数排序 放在一起比较,是因为它们的平均时间复杂度都为 O(n)。
+
+
+
查看242评论3赞12019-07-30 22:54:16
+
+
+
+
+
+
+
+ }
+ const Page = () => {
+ return
+ }
+ return
+}
+const Label = () => {
+ let list = [{ title: '全部标签', value: 5 }, { title: 'javascript', value: 50, select: true }, { title: 'jQuery', value: 0 }, { title: '分享', value: 0 }, { title: '前端', value: 0 }]
+ const Item = (props) => {
+ const { item } = props;
+ return <>
+
+ {item.title}
+ {item.value ? {item.value} : ''}
+
+
+ >;
+ }
+ return
+ {list.map((value, index) => {
+ return
+ })}
+ {/* .container{
+ padding: 10px 0 0;
+ } */}
+
+
+}
diff --git a/pages/index.jsx b/pages/index.js
similarity index 83%
rename from pages/index.jsx
rename to pages/index.js
index c33cd62..0e7ed70 100644
--- a/pages/index.jsx
+++ b/pages/index.js
@@ -4,87 +4,18 @@ import React, {
} from 'react';
import Link from 'next/link';
import Layout from '../components/Layout';
-import '../css/reset.styl';
// back = #1890ff
// color = #333
export default (props) => {
+ const [mask, setMask] = useState(false);
return
-
-
+
+
-
}
-const CopyRight = () => {
- return (
-
- )
-}
+
const Drive = () => {
return
Next.js强力驱动
@@ -115,6 +46,7 @@ const Drive = () => {
color: #fff;
text-align: left;
padding: 5px 10px;
+ border-radius: 5px;
}
a{
color: #1890ff;
@@ -332,9 +264,9 @@ const Design = () => {
)
}
-const Home = () => {
+const Home = (props) => {
return