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

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