The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
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.

Index.cshtml 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. @model Teknik.Areas.Home.ViewModels.HomeViewModel
  2. @using Teknik.Areas.Blog.Models
  3. <div class="container">
  4. <div class="row">
  5. <center>
  6. <img src="/Images/logo-blue.svg" class="img-responsive" alt="Teknik">
  7. </center>
  8. </div>
  9. <br />
  10. <div class="row text-center">
  11. <h2>
  12. Teknik is dedicated to the advancement of technology and ideas, and we provide these services to help those who try to innovate.
  13. </h2>
  14. </div>
  15. </div>
  16. <br />
  17. <div class="container">
  18. <div class="row">
  19. <a href="@Url.Action("Index", "Upload", new { area = "Upload"})">
  20. <div class="col-md-3 text-center">
  21. <div class="thumbnail">
  22. <br />
  23. <i class="fa fa-lock fa-5x"></i>
  24. <div class="caption">
  25. <h3>Encrypted File Uploads</h3>
  26. </div>
  27. </div>
  28. </div>
  29. </a>
  30. <a href="@Url.Action("Index", "Paste", new { area = "Paste"})">
  31. <div class="col-md-3 text-center">
  32. <div class="thumbnail">
  33. <br />
  34. <i class="fa fa-code fa-5x"></i>
  35. <div class="caption">
  36. <h3>Clean Pastebin</h3>
  37. </div>
  38. </div>
  39. </div>
  40. </a>
  41. <a href="@Url.Action("Index", "Podcast", new { area = "Podcast"})">
  42. <div class="col-md-3 text-center">
  43. <div class="thumbnail">
  44. <br />
  45. <i class="fa fa-microphone fa-5x"></i>
  46. <div class="caption">
  47. <h3>Technical Podcasts</h3>
  48. </div>
  49. </div>
  50. </div>
  51. </a>
  52. <a href="@Url.Action("Index", "Help", new { area = "Help"})/#Mumble">
  53. <div class="col-md-3 text-center">
  54. <div class="thumbnail">
  55. <br />
  56. <i class="fa fa-comments fa-5x"></i>
  57. <div class="caption">
  58. <h3>Mumble Server</h3>
  59. </div>
  60. </div>
  61. </div>
  62. </a>
  63. </div>
  64. </div>
  65. <br />
  66. <div class="container">
  67. <div class="row text-center">
  68. <h1>Sign Up for free and get access to these features and more!</h1>
  69. </div>
  70. <br/>
  71. <div class="row">
  72. <a href="@Url.Action("Index", "Help", new { area = "Help"})/#Mail">
  73. <div class="col-md-3 text-center">
  74. <div class="thumbnail">
  75. <br/>
  76. <i class="fa fa-at fa-5x"></i>
  77. <div class="caption">
  78. <h3>Free Email</h3>
  79. </div>
  80. </div>
  81. </div>
  82. </a>
  83. <a href="@Url.Action("Index", "Git", new { area = "Git"})">
  84. <div class="col-md-3 text-center">
  85. <div class="thumbnail">
  86. <br/>
  87. <i class="fa fa-git fa-5x"></i>
  88. <div class="caption">
  89. <h3>Unlimited Git Repositories</h3>
  90. </div>
  91. </div>
  92. </div>
  93. </a>
  94. <a href="@Url.Action("blog", "Blog", new { area = "Blog"})">
  95. <div class="col-md-3 text-center">
  96. <div class="thumbnail">
  97. <br/>
  98. <i class="fa fa-book fa-5x"></i>
  99. <div class="caption">
  100. <h3>Personal Blog</h3>
  101. </div>
  102. </div>
  103. </div>
  104. </a>
  105. <a href="@Url.Action("Index", "Help", new { area = "Help"})/#IRC">
  106. <div class="col-md-3 text-center">
  107. <div class="thumbnail">
  108. <br/>
  109. <i class="fa fa-tag fa-5x"></i>
  110. <div class="caption">
  111. <h3>IRC Nickname</h3>
  112. </div>
  113. </div>
  114. </div>
  115. </a>
  116. </div>
  117. </div>
  118. <div class="container">
  119. <!-- Display Site News -->
  120. <div class="col-sm-4">
  121. <div class="panel panel-default">
  122. <div class="panel-heading">
  123. <h3 class="panel-title text-center">Recent News</h3>
  124. </div>
  125. <div class="panel-body">
  126. <p>
  127. <ul class="list-group">
  128. @if (Model.SitePosts.Any())
  129. {
  130. foreach (Post post in Model.SitePosts)
  131. {
  132. <script>
  133. var converter = new Markdown.getSanitizingConverter();
  134. // Title Conversion
  135. var old_post = $("#title_@post.PostId").text();
  136. var new_post = converter.makeHtml(old_post);
  137. $("#title_@post.PostId").html(new_post);
  138. </script>
  139. <li class="list-group-item">
  140. <div class="row">
  141. <div class="col-sm-12">
  142. <div class="blog-post-sm">
  143. <h2 class="blog-post-title-sm text-left">
  144. <a href="@Url.Action("Post", "Blog", new { area = "Blog", username = post.Blog.User.Username, id = post.PostId })" id="title_@post.PostId">@post.Title</a>
  145. </h2>
  146. <p class="blog-post-meta-sm text-left text-muted">
  147. Posted on @post.DatePosted.ToString("MMMM dd, yyyy") by <a href="@Url.Action("Index", "Profile", new { area = "Profile", username = post.Blog.User.Username })">@post.Blog.User.Username</a>
  148. </p>
  149. </div>
  150. </div>
  151. </div>
  152. </li>
  153. }
  154. }
  155. else
  156. {
  157. <li class="list-group-item">
  158. <div class="row">
  159. <div class="col-sm-12 text-center">
  160. <h2>No News Available</h2>
  161. </div>
  162. </div>
  163. </li>
  164. }
  165. </ul>
  166. </p>
  167. </div>
  168. </div>
  169. </div>
  170. <!-- Display Recent Podcasts -->
  171. <div class="col-sm-4">
  172. <div class="panel panel-default">
  173. <div class="panel-heading">
  174. <h3 class="panel-title text-center">Recent Podcasts</h3>
  175. </div>
  176. <div class="panel-body">
  177. <p>
  178. <ul class="list-group">
  179. @if (Model.Podcasts.Any())
  180. {
  181. foreach (Post post in Model.Podcasts)
  182. {
  183. <script>
  184. var converter = new Markdown.getSanitizingConverter();
  185. // Title Conversion
  186. var old_post = $("#title_@post.PostId").text();
  187. var new_post = converter.makeHtml(old_post);
  188. $("#title_@post.PostId").html(new_post);
  189. </script>
  190. <li class="list-group-item">
  191. <div class="row">
  192. <div class="col-sm-12">
  193. <div class="blog-post-sm">
  194. <h2 class="blog-post-title-sm text-left">
  195. <a href="@Url.Action("Post", "Blog", new { area = "Blog", username = post.Blog.User.Username, id = post.PostId })" id="title_@post.PostId">@post.Title</a>
  196. </h2>
  197. <p class="blog-post-meta-sm text-left text-muted">
  198. Posted on @post.DatePosted.ToString("MMMM dd, yyyy")
  199. </p>
  200. </div>
  201. </div>
  202. </div>
  203. </li>
  204. }
  205. }
  206. else
  207. {
  208. <li class="list-group-item">
  209. <div class="row">
  210. <div class="col-sm-12 text-center">
  211. <h2>No Podcasts Available</h2>
  212. </div>
  213. </div>
  214. </li>
  215. }
  216. </ul>
  217. </p>
  218. </div>
  219. </div>
  220. </div>
  221. <!-- Display Recent Blog Posts -->
  222. <div class="col-sm-4">
  223. <div class="panel panel-default">
  224. <div class="panel-heading">
  225. <h3 class="panel-title text-center">Recent Blog Posts</h3>
  226. </div>
  227. <div class="panel-body">
  228. <p>
  229. <ul class="list-group">
  230. @if (Model.BlogPosts.Any())
  231. {
  232. foreach (Post post in Model.BlogPosts)
  233. {
  234. <script>
  235. var converter = new Markdown.getSanitizingConverter();
  236. // Title Conversion
  237. var old_post = $("#title_@post.PostId").text();
  238. var new_post = converter.makeHtml(old_post);
  239. $("#title_@post.PostId").html(new_post);
  240. </script>
  241. <li class="list-group-item">
  242. <div class="row">
  243. <div class="col-sm-12">
  244. <div class="blog-post-sm">
  245. <h2 class="blog-post-title-sm text-left"><a href="@Url.Action("Post", "Blog", new { area = "Blog", username = post.Blog.User.Username, id = post.PostId })" id="title_@post.PostId">@post.Title</a>
  246. </h2>
  247. <p class="blog-post-meta-sm text-left text-muted">
  248. Posted on @post.DatePosted.ToString("MMMM dd, yyyy") by <a href="@Url.Action("Index", "Profile", new { area = "Profile", username = post.Blog.User.Username })">@post.Blog.User.Username</a>
  249. </p>
  250. </div>
  251. </div>
  252. </div>
  253. </li>
  254. }
  255. }
  256. else
  257. {
  258. <li class="list-group-item">
  259. <div class="row">
  260. <div class="col-sm-12 text-center">
  261. <h2>No Posts Available</h2>
  262. </div>
  263. </div>
  264. </li>
  265. }
  266. </ul>
  267. </p>
  268. </div>
  269. </div>
  270. </div>
  271. </div>