1
0
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:
Xuan Sang LE 2018-02-21 22:42:19 +01:00
parent f94d2ffa50
commit 3fd4bd6e86
3 changed files with 18 additions and 3 deletions

View File

@ -1,6 +1,6 @@
BUILDDIR = ./build BUILDDIR = ./build
projs = grs info projs = grs info
copyfiles = index.html copyfiles = index.ls
main: copy main: copy
for f in $(projs); do make -C "$${f}" ; done for f in $(projs); do make -C "$${f}" ; done

View File

@ -79,6 +79,6 @@
padding: 0; padding: 0;
margin: 0; margin: 0;
line-height: 1.6; line-height: 1.6;
width: 500px; max-width: 500px;
} }

View File

@ -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> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
@ -26,7 +41,7 @@
<p class = "dedicate"> <p class = "dedicate">
<span class="fa fa-quote-left"></span> <span class="fa fa-quote-left"></span>
<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>
<span class="fa fa-quote-right"></span> <span class="fa fa-quote-right"></span>
</p> </p>