mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
fix home page
This commit is contained in:
parent
f94d2ffa50
commit
3fd4bd6e86
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
||||
BUILDDIR = ./build
|
||||
projs = grs info
|
||||
copyfiles = index.html
|
||||
copyfiles = index.ls
|
||||
main: copy
|
||||
for f in $(projs); do make -C "$${f}" ; done
|
||||
|
||||
|
@ -79,6 +79,6 @@
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 1.6;
|
||||
width: 500px;
|
||||
max-width: 500px;
|
||||
|
||||
}
|
@ -1,3 +1,18 @@
|
||||
<?lua
|
||||
std.html()
|
||||
local user = "mrsang"
|
||||
local die = function(m)
|
||||
echo(m)
|
||||
debug.traceback=nil
|
||||
error("Permission denied")
|
||||
end
|
||||
local db = require("db.model").get(user,"user",nil)
|
||||
if db == nil then die("cannot get db data") end
|
||||
local data, a = db:getAll()
|
||||
db:close()
|
||||
if data == nil or data[0] == nil then die("Cannot fetch user info") end
|
||||
data = data[0]
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@ -26,7 +41,7 @@
|
||||
<p class = "dedicate">
|
||||
<span class="fa fa-quote-left"></span>
|
||||
<span>
|
||||
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.
|
||||
<?=data.shortbiblio?>
|
||||
</span>
|
||||
<span class="fa fa-quote-right"></span>
|
||||
</p>
|
Loading…
Reference in New Issue
Block a user