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

59 lines
2.5 KiB
Plaintext
Raw Normal View History

2018-02-21 22:42:19 +01:00
<?lua
std.html()
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
local db = DBModel:new{db="/home/dany/databases/mrsang.db"}
2018-02-21 22:42:19 +01:00
if db == nil then die("cannot get db data") end
db:open()
local data, a = db:getAll("user")
2018-02-21 22:42:19 +01:00
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="https://fonts.googleapis.com/css?family=Ubuntu:regular,bold&subset=Latin">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" />
2018-02-21 19:04:26 +01:00
<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>