Skip to content

Commit

Permalink
feat:添加站点说明
Browse files Browse the repository at this point in the history
  • Loading branch information
hejialiang02 committed Mar 4, 2024
1 parent 73d4521 commit 130fd7c
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 2 deletions.
23 changes: 23 additions & 0 deletions docs/.vuepress/theme/layouts/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
<slot name="page-top" #top />
<slot name="page-bottom" #bottom />
</Page>
<footer class="footer">
<div class="container">
<p class="text-center">© 2024 web全栈体系. All Rights Reserved.(所有文章未经授权禁止转载、摘编、复制或建立镜像,如有违反,追究法律责任。)</p>
<p class="text-center"><a href="https://beian.miit.gov.cn" target="_blank">豫ICP备19041317号-1</a></p>
</div>
</footer>
</div>
</template>

Expand Down Expand Up @@ -138,3 +144,20 @@ export default {
},
}
</script>

<style scoped >
.footer {
background-color: #000;
color: #fff;
padding: 20px 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.text-center {
text-align: center;
}
</style>
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ features:
details: 同构项目
- title: 杂项
details: react原理、js基础等
footer: MAYI | Copyright © 2020-present(版权所有,转载请注来源)
# footer: MAYI | Copyright © 2020-present(版权所有,转载请注来源)
---
2 changes: 1 addition & 1 deletion docs/en-US/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ features:
details: DSA and approaches to solving these problems
- title: Real-life Projects
details: Production-grade, real-world applications
footer: MAYI | Copyright © 2020-present
# footer: MAYI | Copyright © 2020-present
---
12 changes: 12 additions & 0 deletions examples/sundry/react/build-your-own-react/Didact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

function createElement (){

}



const Didact ={
createElement
}

export default Didact
28 changes: 28 additions & 0 deletions examples/sundry/react/build-your-own-react/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>build-your-own-react</title>
</head>
<body>
<div id ="root"></div>
<script>
const element = {
type: 'h1',
props: {
title: 'foo',
children: 'Hello',
},
}

const root = document.getElementById('root')
const node = document.createElement(element.type)
node['title'] = element.props.title
const text = document.createTextNode(element.props.children)
// text['nodeValue'] = element.props.children
node.appendChild(text)
root.appendChild(node)
</script>
</body>
</html>

0 comments on commit 130fd7c

Please sign in to comment.