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

64 lines
2.6 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" />
2018-02-22 15:47:09 +01:00
<script src="grs/gscripts/jquery-3.2.1.min.js"> </script>
2018-03-13 00:25:06 +01:00
<script src="grs/gscripts/riot.min.js"> </script>
2018-03-13 00:34:23 +01:00
<script src="grs/resources/antos_tags.js"></script>
2018-03-15 22:36:05 +01:00
<script src="grs/main.js"></script>
2018-02-21 19:04:26 +01:00
</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>
2018-03-15 22:47:54 +01:00
<li><i class = "fa fa-paper-plane"></i><a href="#" onclick="mailtoMe('grs')" >Contact</a></li>
2018-02-21 19:04:26 +01:00
<li > <i class = "fa fa-globe"></i><a href = "https://os.lxsang.me" target="_blank">Web OS</a></li>
</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>