index.ejs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <% var content = site.posts %>
  2. <div id="cover" class="background-haze">
  3. <div id="stars"></div>
  4. <div id="stars-2"></div>
  5. <div id="stars-3"></div>
  6. <div class="center-div" id="app">
  7. <h1>
  8. <a href="jamesperet.com">
  9. <img class="text-logo" alt="James Peret" src="images/jamesperet-logo-white.png">
  10. </a>
  11. </h1>
  12. <div class="container bottom-spacer">
  13. <div class="row bottom-spacer-lg">
  14. <div class="col-3">
  15. <img class="img-fluid" src="images/james-peret-drawing.png">
  16. </div>
  17. <div class="col-9">
  18. <div class="about-text">
  19. <p class="lead">Hello, I'm James Peret, a designer, programmer and filmmaker from Sao Paulo, Brazil.</p>
  20. <p class="hide-if-sm">My skills include developing games with unity and C#, coding web apps with node and javascript, designing user interfaces and 3d modeling for games and industrial design.</p>
  21. <p class="hide-if-sm">I'm available for work in the areas of programming, design and filmmaking assistance.</p>
  22. </div>
  23. </div>
  24. </div>
  25. <div class="row bottom-spacer">
  26. <div class="social-media-list">
  27. <a href="http://twitter.com/jamesperet" class="social-media-icon"><img src="images/icon-twitter.png" v-on:click="send_event('twitter')"></a>
  28. <a href="https://github.com/jamesperet" class="social-media-icon"><img src="images/icon-github.png" v-on:click="send_event('github')"></a>
  29. <a href="http://www.linkedin.com/in/jamesperet" class="social-media-icon"><img src="images/icon-linkedin.png" v-on:click="send_event('linkedin')"></a>
  30. <a href="https://vimeo.com/jamesperet" class="social-media-icon"><img src="images/icon-vimeo.png" v-on:click="send_event('vimeo')"></a>
  31. <a href="https://youtube.com/jamesperet" class="social-media-icon"><img src="images/icon-youtube.png" v-on:click="send_event('youtube')"></a>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="container">
  38. <div class="row" style="margin-bottom: 15px;">
  39. <div class="col-12">
  40. <h2 class="display-4">Latest Projects</h2>
  41. </div>
  42. </div>
  43. <div class="row blog-posts">
  44. <% limit(featured_projects(content), 3).forEach(function(post){ %>
  45. <% content = remove_from_list(content, post) %>
  46. <% var data = {post: post, size: 4, image: post.thumbnail_image} %>
  47. <%- partial('_partial/content-card', data) %>
  48. <% }) %>
  49. </div>
  50. <div class="row justify-content-end" style="text-align: right;">
  51. <div class="col-2">
  52. <a role="button" href="/projects" class="btn btn-sm btn-outline-secondary"><i class="fas fa-plus"></i> Projects</a>
  53. </div>
  54. </div>
  55. <% var games = limit(tagged(content, 'games'), 4) %>
  56. <% if(games.length > 0) { %>
  57. <div class="row" style="margin-bottom: 15px;">
  58. <div class="col-12">
  59. <h2 class="display-4">Games</h2>
  60. </div>
  61. </div>
  62. <div class="row">
  63. <% games.forEach(function(post){ %>
  64. <% if(games.length == 1) { %>
  65. <%- partial('_partial/content-thumbnail', {post: post, show_title: false, size: 12}) %>
  66. <% } else if(games.length == 2) { %>
  67. <%- partial('_partial/content-thumbnail', {post: post, show_title: false, size: 6}) %>
  68. <% } else if(games.lenth == 3) { %>
  69. <%- partial('_partial/content-thumbnail', {post: post, show_title: false, size: 4}) %>
  70. <% } else { %>
  71. <%- partial('_partial/content-thumbnail', {post: post, show_title: false, size: 3}) %>
  72. <% } %>
  73. <% content = remove_from_list(content, post) %>
  74. <% }) %>
  75. </div>
  76. <% } %>
  77. <div class="row justify-content-end" style="text-align: right;">
  78. <div class="col-2">
  79. <a role="button" href="/projects" class="btn btn-sm btn-outline-secondary"><i class="fas fa-plus"></i> Projects</a>
  80. </div>
  81. </div>
  82. <div class="row up-spacer" style="margin-bottom: 15px;">
  83. <div class="col-12">
  84. <h2 class="display-4">Latest Posts</h2>
  85. </div>
  86. </div>
  87. <div class="row blog-posts">
  88. <% limit(order_posts(content), 3).forEach(function(post){ %>
  89. <% content = remove_from_list(content, post) %>
  90. <% var data = {post: post, size: 4, image: `/${post.slug}/cover.jpg`} %>
  91. <%- partial('_partial/content-card', data) %>
  92. <% }) %>
  93. </div>
  94. <div class="row justify-content-end bottom-spacer" style="text-align: right;">
  95. <div class="col-2">
  96. <a role="button" href="/blog" class="btn btn-sm btn-outline-secondary"><i class="fas fa-plus"></i> Posts</a>
  97. </div>
  98. </div>
  99. </div>
  100. <%- partial('_partial/contact-form') %>