The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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