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>
|
2022-02-15 11:04:17 +01:00
|
|
|
<title>Hi, I'm <?=data.fullname?></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">
|
2022-02-15 11:04:17 +01:00
|
|
|
<p class = "greeting">Hi, I'm <b><?=data.fullname?></b></p>
|
2018-02-21 19:04:26 +01:00
|
|
|
<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>
|
2022-03-29 13:55:31 +02:00
|
|
|
<a href="https://blog.iohub.dev" class ="about">Read my blog</a>
|
|
|
|
<a href="https://info.iohub.dev" class ="about">More about me</a>
|
2018-02-21 19:04:26 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id = "bottom">
|
2022-03-29 13:55:31 +02:00
|
|
|
Powered by antd server, (c) 2017 - 2022 Dany LE
|
2018-02-21 19:04:26 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|