1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-28 02:08:22 +01:00
antd-web-apps/index.ls

59 lines
2.3 KiB
Plaintext
Raw Normal View History

2018-02-21 22:42:19 +01:00
<?lua
std.html()
2018-09-12 18:30:53 +02:00
require("sqlite")
2018-02-21 22:42:19 +01:00
local user = "mrsang"
local die = function(m)
echo(m)
debug.traceback=nil
error("Permission denied")
end
2018-02-25 13:54:37 +01:00
local mobilecls = ""
if HEADER.mobile then mobilecls = "mobile" end
2018-09-12 18:30:53 +02:00
local db = require("os.libs.dbmodel").get(user,"user",nil)
2018-02-21 22:42:19 +01:00
if db == nil then die("cannot get db data") end
local data, a = db:getAll()
db:close()
2018-03-07 14:18:25 +01:00
if data == nil or data[1] == nil then die("Cannot fetch user info") end
data = data[1]
2018-02-21 22:42:19 +01:00
?>
2018-02-21 19:04:26 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
2018-02-22 20:46:56 +01:00
<title>Hi, I'm Xuan Sang LE</title>
2018-02-21 19:04:26 +01:00
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="grs/ubuntu-regular.css" />
<link rel="stylesheet" type="text/css" href="grs/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="grs/mainsite.css" />
</head>
<body>
2018-02-22 15:47:09 +01:00
<div id = "desktop">
2018-02-21 19:04:26 +01:00
<div id = "top">
<ul>
2018-02-26 13:17:46 +01:00
<li ><i class = "fa fa-address-card"></i><a href="https://info.lxsang.me" >Porfolio</a></li>
<li><i class = "fa fa-newspaper-o"></i><a href="https://blog.lxsang.me" >Blog</a></li>
2020-09-24 19:18:40 +02:00
<li > <i class = "fa fa-globe"></i><a href = "https://os.iohub.dev" target="_blank">Web OS</a></li>
2018-02-21 19:04:26 +01:00
</ul>
</div>
<div id = "center">
2018-02-25 13:54:37 +01:00
<div id = "container" class="<?=mobilecls?>" >
2018-02-21 19:04:26 +01:00
<img src = "grs/images/mrsang.png" ></img>
<div id = "vcard">
<p class = "greeting">Hi, I'm <b>Xuan Sang LE</b></p>
<p class = "dedicate">
<span class="fa fa-quote-left"></span>
<span>
2018-02-21 22:42:19 +01:00
<?=data.shortbiblio?>
2018-02-21 19:04:26 +01:00
</span>
<span class="fa fa-quote-right"></span>
</p>
2018-02-26 13:17:46 +01:00
<a href="https://info.lxsang.me" class ="about">Find out more about me</a>
2018-02-21 19:04:26 +01:00
</div>
</div>
</div>
<div id = "bottom">
2018-02-22 15:47:09 +01:00
Powered by antd server, (c) 2017 - 2018 Xuan Sang LE
2018-02-21 19:04:26 +01:00
</div>
</div>
</body>
</html>