home.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <!DOCTYPE html>
  2. <html lang='<?=$page->lang?>'>
  3. <head>
  4. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  5. <meta charset='utf-8'/>
  6. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'/>
  7. <title><?=$page->title?></title>
  8. <link rel='shortcut icon' href='<?=$page->favicon?>'/>
  9. <!-- CSS files -->
  10. <link rel='stylesheet' type='text/css' href='<?=$static["css"]?>ui.css'/>
  11. <link rel='stylesheet' type='text/css' href='<?=$static["css"]?>home.css'/>
  12. <!-- Script files -->
  13. <script type="text/javascript" src="<?=$static["js"]?>ui.js"></script>
  14. <!-- Meta tags -->
  15. <link rel='canonical' href='<?=$page->canonical?>'/>
  16. <link rel='author' href='<?=$page->author?>'/>
  17. <link rel='publisher' href='<?=$page->author?>'/>
  18. <meta name='description' content='<?=$page->description?>'/>
  19. <meta property='og:title' content='<?=$page->title?>'/>
  20. <meta property='og:url' content='<?=$page->canonical?>'/>
  21. <meta property='og:description' content='<?=$page->description?>'/>
  22. <meta property='og:image' content='<?=$page->icon?>'/>
  23. <meta property='og:site_name' content='<?=$page->name?>'/>
  24. <meta property='og:type' content='website'/>
  25. <meta property='og:locale' content='<?=$page->lang?>'/>
  26. <meta name='twitter:card' content='summary'/>
  27. <meta name='twitter:title' content='<?=$page->title?>'/>
  28. <meta name='twitter:description' content='<?=$page->description?>'/>
  29. <meta name='twitter:image' content='<?=$page->icon?>'/>
  30. <meta name='twitter:url' content='<?=$page->canonical?>'/>
  31. <meta name='robots' content='index follow'/>
  32. </head>
  33. <body>
  34. <?php
  35. include $path["inc"] . "header.php";
  36. ?>
  37. <main>
  38. <section id='profile'>
  39. <h3>
  40. <?=$page->name?>
  41. </h3>
  42. <!-- TODO: Profile form model -->
  43. <article>
  44. <img id='profile_image' srcset='<?=srcset("profile/profile.png")?>' src='<?=$static["content"]?>profile/x400/profile.png' alt='<?=text($page, "USER_NAME");?>' title='<?=text($page, "USER_NAME");?>' />
  45. <div id='profile_content'>
  46. <h4 id='tagline'><?=text($page, "USER_TAGLINE");?></h4>
  47. <p id='bio'><?=text($page, "USER_BIO");?></p>
  48. </div>
  49. <div class='buttons'>
  50. <a class='a_button' href='<?=$base_url?>/profile/'>
  51. <?=text($page, "INDEX_PROFILE_MORE");?>
  52. </a>
  53. </div>
  54. </article>
  55. </section>
  56. <section id='projects'>
  57. <h3>
  58. <?=text($page, "INDEX_PROJECTS");?>
  59. </h3>
  60. <?php
  61. foreach ($page->project as $project){
  62. ?>
  63. <article class='project'>
  64. <table>
  65. <tr>
  66. <?php
  67. if (strlen($project->logo) > 0){
  68. ?>
  69. <td>
  70. <a href='<?=$base_url?>/project/<?=$project->permalink?>'>
  71. <img class='project_image' alt='<?=text($page, $project->title)?>' title='<?=text($page, $project->title)?>' srcset='<?=srcset("project/" . $project->logo)?>' src='<?=$static["content"]?>project/x200/<?=$project->logo?>'/>
  72. </a>
  73. </td>
  74. <?php
  75. }
  76. ?>
  77. <td class='project_details'>
  78. <a href='<?=$base_url?>/project/<?=$project->permalink?>'>
  79. <h4 class='project_name'><?=$project->title?></h4>
  80. </a>
  81. <span>
  82. <?=$project->header?>
  83. </span>
  84. </td>
  85. </tr>
  86. </table>
  87. </article>
  88. <?php
  89. }
  90. ?>
  91. <div class='buttons'>
  92. <a class='a_button' href='<?=$base_url?>/project/'>
  93. <?=text($page, "INDEX_PROJECTS_ALL");?>
  94. </a>
  95. </div>
  96. </section>
  97. </main>
  98. <?php
  99. include $path["inc"] . "footer.php";
  100. ?>
  101. </body>
  102. </html>