1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-11-20 02:18:20 +01:00

add blog template

This commit is contained in:
Xuan Sang LE 2018-02-23 00:41:46 +01:00
parent 4798faf4a9
commit 6d6f2bdbac
4 changed files with 403 additions and 4 deletions

View File

@ -1,5 +1,5 @@
BUILDDIR = ./build BUILDDIR = ./build
projs = grs info projs = grs info blog
copyfiles = index.ls copyfiles = index.ls
main: clean copy main: clean copy
for f in $(projs); do make -C "$${f}" ; done for f in $(projs); do make -C "$${f}" ; done
@ -8,4 +8,4 @@ copy:
cp -rf $(copyfiles) $(BUILDDIR) cp -rf $(copyfiles) $(BUILDDIR)
clean: clean:
for f in $(projs); do rm -r $(BUILDDIR)/"$${f}"; done -for f in $(projs); do rm -r $(BUILDDIR)/"$${f}"; done

10
blog/Makefile Normal file
View File

@ -0,0 +1,10 @@
BUILDDIR = ../build/blog
copyfiles = index.html assets
main:
- mkdir $(BUILDDIR)
cp -rf $(copyfiles) $(BUILDDIR)
- cd $(BUILDDIR) && ln -s ../grs ./rst
clean:
rm -rf $(BUILDDIR)/*

207
blog/assets/style.css Normal file
View File

@ -0,0 +1,207 @@
html,body{
margin: 0;
padding: 0;
font-family: "Ubuntu";
font-size: 15px;
line-height: 1.5;
width: 100%;
height: 100%;
overflow: hidden;
}
#desktop{
/*width:100%;
min-height:100%;
overflow:hidden;
margin:0 auto;
display: flex;
flex-direction: row-reverse;
color: #414339;*/
}
#top{
background-color: #2c2c2c;
color: white;
font-weight: bold;
display: block;
text-align: center;
height: 50px;
}
#top ul{
padding:0;
margin: 0;
padding-top: 16px;
list-style: none;
}
#top ul li{
float: left;
padding-left:10px;
padding-right: 10px;
}
#top ul li i{
margin-right: 3px;
}
#top ul li a{
text-decoration: none;
color: white;
}
#top ul li a:hover{
border-bottom: 1px dashed white;
}
#bottom{
position: fixed;
bottom: 0;
height: 20px;
text-align: center;
color:#878887;
background-color: white;
font-size: 12px;
width: 100%;
padding:5px;
border-top: 1px solid #878887;
}
#center{
height: calc(100% - 80px);
overflow-y: auto;
}
#navbar{
margin:0 auto;
max-width: 960px;
display: flex;
justify-content:flex-end;
flex-direction: row;
}
#container{
margin:0 auto;
max-width: 960px;
text-align: justify;
}
textarea{
margin-left: 10px;
margin-right: 10px;
border: 0;
font-family: "Ubuntu";
font-size: 14px;
padding: 3px;
outline: none;
}
input {
outline: none;
border: 0;
padding: 0;
height: 17px;
}
div.label{
color: #899aae;
}
button{
outline: none;
background-color: #5fa6cf;
font-weight: bold;
color: white;
border: 0;
border-radius: 5px;
padding:3px;
margin-right: 10px;
box-shadow: 1px 1px 1px #9f9F9F;
}
#container .card{
display: flex;
flex-direction: row;
}
#container .card .date{
padding-top:20px;
padding-bottom: 0;
margin: 0;
min-width: 74px;
line-height: 1.0;
color:#3170B2;
}
#container .card .date .day{
font-weight: bold;
display: block;
font-size: 60px;
}
#container .card .date .monthyear{
font-weight: bold;
display: block;
}
#container .blogentry{
padding-top:20px;
/*border-bottom: 1px solid #cccccc;
padding-bottom: 20px;*/
}
#container h1{
font-size: 20px;
padding:0;
margin: 0;
padding-bottom: 5px;
}
input.search-box{
flex:1;
padding:0;
margin:0;
padding-top:13px;
height: 25px;
background-color: transparent;
border-bottom: 1px solid #878887;
font-size: 18px;
font-family: "Ubuntu";
line-height: 0.5;
color: #878887;
}
div.search-icon:before{
padding-top:13px;
content: "\f002";
color:#878887;
display: block;
width:20px;
height: 25px;
font-family: "FontAwesome";
font-size: 18px;
border-bottom: 1px solid #878887;
}
div.logo:before{
display: block;
width: 75px;
height:50px;
color:white;
font-family: "FontAwesome";
font-size:48px;
line-height: 1.0;
content: "\f0ac";
}
div.detail {
display: flex;
flex-direction: row;
margin-top:20px;
}
div.detail span{
display: block;
height: 16px;
border-bottom: 1px solid #cccccc;
flex:1;
}
div.detail a{
width: 32px;
display: block;
height: 32px;
border: 1px solid #cccccc;
text-decoration: none;
border-radius: 16px;
margin-left: 10px;
margin-right: 10px;
}
div.detail a:before{
font-size:16px;
content:"\f039";
font-family: "FontAwesome";
line-height: 2.0;
padding-left:8px;
color: #cccccc;
}

View File

@ -1,11 +1,193 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Blog</title> <title>Hi, I'm Xuan Sang LE</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="rst/ubuntu-regular.css" />
<link rel="stylesheet" type="text/css" href="rst/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="assets/style.css" />
<script src="rst/gscripts/jquery-3.2.1.min.js"> </script>
</head> </head>
<body> <body>
<h1>Under maintenance</h1> <div id = "top">
<div id = "navbar">
<div class = "logo"></div>
<input type = "text" class = "search-box"></input>
<div class= "search-icon"></div>
<ul>
<li ><i class = "fa fa-address-card"></i><a href="https://info.lxsang.me" target="_blank">Porfolio</a></li>
<li><i class = "fa fa-newspaper-o"></i><a href="https://blog.lxsang.me" target="_blank">Blog</a></li>
<li><i class = "fa fa-paper-plane"></i><a href="#" onclick="" >Contact</a></li>
<li > <i class = "fa fa-globe"></i><a href = "https://os.lxsang.me" target="_blank">Web OS</a></li>
</ul>
</div>
</div>
<div id = "center">
<div id = "container">
<div class = "card">
<div class = "date">
<span class = "day">24</span>
<span class = "monthyear">July 2017</span>
</div>
<div class = "blogentry">
<h1>What is Lorem Ipsum?</h1>
<div class = "shortcontent">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsumhas been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha
</div>
<div class = "detail">
<span></span>
<a href="#" ></a>
<span></span>
</div>
</div>
</div>
<div class = "card">
<div class = "date">
<span class = "day">24</span>
<span class = "monthyear">July 2017</span>
</div>
<div class = "blogentry">
<h1>What is Lorem Ipsum?</h1>
<div class = "shortcontent">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsumhas been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha
</div>
<div class = "detail">
<span></span>
<a href="#" ></a>
<span></span>
</div>
</div>
</div>
<div class = "card">
<div class = "date">
<span class = "day">24</span>
<span class = "monthyear">July 2017</span>
</div>
<div class = "blogentry">
<h1>What is Lorem Ipsum?</h1>
<div class = "shortcontent">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsumhas been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha
</div>
<div class = "detail">
<span></span>
<a href="#" ></a>
<span></span>
</div>
</div>
</div>
<div class = "card">
<div class = "date">
<span class = "day">24</span>
<span class = "monthyear">July 2017</span>
</div>
<div class = "blogentry">
<h1>What is Lorem Ipsum?</h1>
<div class = "shortcontent">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsumhas been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha
</div>
<div class = "detail">
<span></span>
<a href="#" ></a>
<span></span>
</div>
</div>
</div>
<div class = "card">
<div class = "date">
<span class = "day">24</span>
<span class = "monthyear">July 2017</span>
</div>
<div class = "blogentry">
<h1>What is Lorem Ipsum?</h1>
<div class = "shortcontent">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsumhas been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha
</div>
<div class = "detail">
<span></span>
<a href="#" ></a>
<span></span>
</div>
</div>
</div>
<div class = "card">
<div class = "date">
<span class = "day">24</span>
<span class = "monthyear">July 2017</span>
</div>
<div class = "blogentry">
<h1>What is Lorem Ipsum?</h1>
<div class = "shortcontent">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsumhas been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha
</div>
<div class = "detail">
<span></span>
<a href="#" ></a>
<span></span>
</div>
</div>
</div>
<div class = "card">
<div class = "date">
<span class = "day">24</span>
<span class = "monthyear">July 2017</span>
</div>
<div class = "blogentry">
<h1>What is Lorem Ipsum?</h1>
<div class = "shortcontent">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsumhas been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha
</div>
<div class = "detail">
<span></span>
<a href="#" ></a>
<span></span>
</div>
</div>
</div>
<div class = "card">
<div class = "date">
<span class = "day">24</span>
<span class = "monthyear">July 2017</span>
</div>
<div class = "blogentry">
<h1>What is Lorem Ipsum?</h1>
<div class = "shortcontent">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsumhas been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha
</div>
<div class = "detail">
<span></span>
<a href="#" ></a>
<span></span>
</div>
</div>
</div>
</div>
</div>
<div id = "bottom">
Powered by antd server, (c) 2017 - 2018 Xuan Sang LE
</div>
</body> </body>
</html> </html>