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

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