The next generation of the Teknik Services. Written in ASP.NET.
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 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. @using Teknik.Areas.Blog.Models
  2. <div class="container">
  3. <div class="row">
  4. <center>
  5. <img src="/Content/Images/logo-blue.svg" class="img-responsive" alt="Teknik">
  6. </center>
  7. </div>
  8. <br />
  9. <div class="row text-center">
  10. <h2>
  11. Teknik is dedicated to the advancement of technology and ideas, and we provide these services to help those who try to innovate.
  12. </h2>
  13. </div>
  14. </div>
  15. <br />
  16. <div class="container">
  17. <div class="row">
  18. <a href="@Url.Action("Index", "Upload", new { area = "Upload"})">
  19. <div class="col-md-3 text-center">
  20. <div class="thumbnail">
  21. <br />
  22. <i class="fa fa-lock fa-5x"></i>
  23. <div class="caption">
  24. <h3>Encrypted File Uploads</h3>
  25. </div>
  26. </div>
  27. </div>
  28. </a>
  29. <a href="@Url.Action("Index", "Paste", new { area = "Paste"})">
  30. <div class="col-md-3 text-center">
  31. <div class="thumbnail">
  32. <br />
  33. <i class="fa fa-code fa-5x"></i>
  34. <div class="caption">
  35. <h3>Clean Pastebin</h3>
  36. </div>
  37. </div>
  38. </div>
  39. </a>
  40. <a href="@Url.Action("Index", "Podcast", new { area = "Podcast"})">
  41. <div class="col-md-3 text-center">
  42. <div class="thumbnail">
  43. <br />
  44. <i class="fa fa-microphone fa-5x"></i>
  45. <div class="caption">
  46. <h3>Technical Podcasts</h3>
  47. </div>
  48. </div>
  49. </div>
  50. </a>
  51. <a href="@Url.Action("Index", "Help", new { area = "Help"})/#Mumble">
  52. <div class="col-md-3 text-center">
  53. <div class="thumbnail">
  54. <br />
  55. <i class="fa fa-comments fa-5x"></i>
  56. <div class="caption">
  57. <h3>Mumble Server</h3>
  58. </div>
  59. </div>
  60. </div>
  61. </a>
  62. </div>
  63. </div>
  64. <br />
  65. <div class="container">
  66. <div class="row text-center">
  67. <h1>Sign Up for free and get access to these features and more!</h1>
  68. </div>
  69. <br/>
  70. <div class="row">
  71. <a href="@Url.Action("Index", "Help", new { area = "Help"})/#Mail">
  72. <div class="col-md-3 text-center">
  73. <div class="thumbnail">
  74. <br/>
  75. <i class="fa fa-at fa-5x"></i>
  76. <div class="caption">
  77. <h3>Free Email</h3>
  78. </div>
  79. </div>
  80. </div>
  81. </a>
  82. <a href="@Url.Action("Index", "Git", new { area = "Git"})">
  83. <div class="col-md-3 text-center">
  84. <div class="thumbnail">
  85. <br/>
  86. <i class="fa fa-git fa-5x"></i>
  87. <div class="caption">
  88. <h3>Unlimited Git Repositories</h3>
  89. </div>
  90. </div>
  91. </div>
  92. </a>
  93. <a href="@Url.Action("Index", "Blog", new { area = "Blog"})">
  94. <div class="col-md-3 text-center">
  95. <div class="thumbnail">
  96. <br/>
  97. <i class="fa fa-book fa-5x"></i>
  98. <div class="caption">
  99. <h3>Personal Blog</h3>
  100. </div>
  101. </div>
  102. </div>
  103. </a>
  104. <a href="@Url.Action("Index", "Help", new { area = "Help"})/#IRC">
  105. <div class="col-md-3 text-center">
  106. <div class="thumbnail">
  107. <br/>
  108. <i class="fa fa-tag fa-5x"></i>
  109. <div class="caption">
  110. <h3>IRC Nickname</h3>
  111. </div>
  112. </div>
  113. </div>
  114. </a>
  115. </div>
  116. </div>
  117. <div class="container">
  118. <div class="col-sm-4">
  119. <div class="panel panel-default">
  120. <div class="panel-heading">
  121. <h3 class="panel-title text-center">Recent Blog Posts</h3>
  122. </div>
  123. <div class="panel-body">
  124. <p>
  125. <ul class="list-group">
  126. @foreach (Post post in Model)
  127. {
  128. <script>
  129. var converter = new Markdown.getSanitizingConverter();
  130. // Title Conversion
  131. var old_post = $("#title_@post.PostId").text();
  132. var new_post = converter.makeHtml(old_post);
  133. $("#title_@post.PostId").html(new_post);
  134. </script>
  135. <li class="list-group-item">
  136. <div class="row">
  137. <div class="col-sm-12">
  138. <div class="blog-post-sm">
  139. <h2 class="blog-post-title-sm text-left"><a href="@Url.Action("Index", "Blog", new { area = "Blog"}, "https")/@post.Blog.User.Username/@post.PostId" id="title_@post.PostId">@post.Title</a>
  140. </h2>
  141. <p class="blog-post-meta-sm text-left text-muted">
  142. Posted on @post.DatePosted.ToString("MMMM dd, yyyy") by <a href="@Url.Action("Index", "Profile", new { area = "Blog"}, "https")/@post.Blog.User.Username">@post.Blog.User.Username</a>
  143. </p>
  144. </div>
  145. </div>
  146. </div>
  147. </li>
  148. }
  149. </ul>
  150. </p>
  151. </div>
  152. </div>
  153. </div>
  154. </div>