The website of the KaosCube
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
4.6 KiB

1 year ago
  1. <!doctype html>
  2. <?php
  3. $lang=$_GET['lang'];
  4. if ( in_array ($lang, array('en-US'))){
  5. $loc = "$lang".".utf8";
  6. $loc1 = $lang;
  7. }
  8. else {
  9. $loc = "de-DE";
  10. $loc1 = "de-DE";
  11. }
  12. include "Spyc.php";
  13. $localeYaml = Spyc::YAMLLoad('locale.yaml');
  14. $domain = "messages";
  15. setlocale(LC_MESSAGES, $loc);
  16. setlocale(LC_ALL, $loc);
  17. $results = putenv("LC_ALL=$loc");
  18. $results = putenv("LC_MESSAGES=$loc");
  19. ?>
  20. <head>
  21. <meta charset="utf-8"/>
  22. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  23. <title><?php echo $localeYaml['title'][$loc1]?></title>
  24. <link rel="stylesheet" href="index.css">
  25. <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
  26. </head>
  27. <body>
  28. <center>
  29. <header style="height: 10 vh;">
  30. <img style="float: right; height: 15vh;" src="static/KaosCubeLogo.png" alt="logo">
  31. <div class="linkContainer">
  32. <a href="/" style="text-decoration:none; color:black;"><p class="pLink"><b><?php echo $localeYaml['indexLink'][$loc1]?></b></p></a>
  33. <a href="diy.php" style="text-decoration:none; color:black;"><p class="pLink"><?php echo $localeYaml['diyLink'][$loc1]?></p></a>
  34. <a href="buy.php" style="text-decoration:none; color:black;"><p class="pLink"><?php echo $localeYaml['buyLink'][$loc1]?></p></a>
  35. </div>
  36. </header>
  37. <div class="banner">
  38. <div class="withinBanner">
  39. <h1 class="bannerHeader glow"><?php echo $localeYaml['inputSite_header'][$loc1]?></h1><br/>
  40. <p class="bannerSubtext glow"><?php echo $localeYaml['inputSite_title_subtext_1'][$loc1]?></p>
  41. </div>
  42. </div>
  43. </br></br>
  44. </br></br>
  45. <center>
  46. <div class="infoContainer">
  47. <div class="infoImgDiv">
  48. <img style="width: 20vw;" src="static/icons/freedom.png" alt="logo">
  49. </div>
  50. <div class="infoDiv">
  51. <h2 class="infoHeader"><?php echo $localeYaml['info1Header'][$loc1]?></h2>
  52. <p class="info"><?php echo $localeYaml['info1'][$loc1]?></p>
  53. </div>
  54. </div>
  55. </center>
  56. </br></br>
  57. </br></br>
  58. <center>
  59. <div class="infoContainer">
  60. <div class="infoDiv">
  61. <h2 class="infoHeader"><?php echo $localeYaml['info2Header'][$loc1]?></h2>
  62. <p class="info"><?php echo $localeYaml['info2'][$loc1]?></p>
  63. </div>
  64. <div class="infoImgDiv">
  65. <img style="width: 20vw;" src="static/icons/sustainability.png" alt="logo">
  66. </div>
  67. </div>
  68. </center>
  69. </br></br>
  70. </br></br>
  71. <center>
  72. <div class="infoContainer">
  73. <div class="infoImgDiv">
  74. <img style="width: 30vw;" src="static/icons/opensource.png" alt="logo">
  75. </div>
  76. <div class="infoDiv">
  77. <h2 class="infoHeader"><?php echo $localeYaml['info3Header'][$loc1]?></h2>
  78. <p class="info"><?php echo $localeYaml['info3'][$loc1]?></p>
  79. </div>
  80. </div>
  81. </center>
  82. </br></br>
  83. </br></br>
  84. <center>
  85. <div class="infoContainer">
  86. <div class="infoDiv">
  87. <h2 class="infoHeader"><?php echo $localeYaml['info4Header'][$loc1]?></h2>
  88. <p class="info"><?php echo $localeYaml['info4'][$loc1]?></p>
  89. </div>
  90. <div class="infoImgDiv">
  91. <img style="width: 30vw;" src="static/icons/simplicity.png" alt="logo">
  92. </div>
  93. </div>
  94. </center>
  95. </br></br>
  96. </br></br>
  97. <center>
  98. <div class="infoContainer">
  99. <div class="infoImgDiv">
  100. <img style="width: 30vw;" src="static/icons/onion_icon.png" alt="logo">
  101. </div>
  102. <div class="infoDiv">
  103. <h2 class="infoHeader"><?php echo $localeYaml['info5Header'][$loc1]?></h2>
  104. <p class="info"><?php echo $localeYaml['info5'][$loc1]?></p>
  105. </div>
  106. </div>
  107. </center>
  108. </br></br></br></br></br>
  109. <footer>
  110. <a href="mailto:info@cannabinieri.de"><p class="pLink" style="color: deeppink;"><?php echo $localeYaml['contact'][$loc1]?></p></a>
  111. <p>© Cannabinieri 2022-CC BY-NC 4.0</p>
  112. <a href="https://www.cannabinieri.de"><p class="pLink" style="color: deeppink;"> <?php echo $localeYaml['contactWebsite'][$loc1]?> </p> </a> <br>
  113. <p>free open source Icons were taken from</p> <a href="https://thenounproject.com"><p class="pLink" style="color: deeppink;">the noun project </p> </a>
  114. </footer>
  115. </center>
  116. </body>
  117. </html>