|
| 1 | +<script> |
| 2 | + export let index = 0; |
| 3 | + export let scrollInfo; |
| 4 | +
|
| 5 | + function computeImageScroll( start, scrollSpeed, currentIndex, reverse = false ) { |
| 6 | + if(index !== currentIndex || scrollInfo.offset <= 0) { |
| 7 | + return start; |
| 8 | + } |
| 9 | + else { |
| 10 | + let reverseMultiplier = reverse === false ? 1: -1; |
| 11 | + return start - scrollInfo.offset * scrollSpeed * reverseMultiplier; |
| 12 | + } |
| 13 | + } |
| 14 | +
|
| 15 | + let hideBodySection = true; |
| 16 | +
|
| 17 | + function toggleBodySection(){ |
| 18 | + hideBodySection = !hideBodySection; |
| 19 | + } |
| 20 | + |
| 21 | +</script> |
| 22 | +<div |
| 23 | + id="project-container-{index}" |
| 24 | + class="work-container--redesign" |
| 25 | + class:active={index === scrollInfo.index} |
| 26 | +> |
| 27 | + <div class="work-header" on:click={()=> toggleBodySection()}> |
| 28 | + <div class="image-container"> |
| 29 | + <div class="image-track image-track-1"> |
| 30 | + <img |
| 31 | + src="/projects/Kaggle22/line-chart.png" |
| 32 | + alt="stacked bar charts for UNDP project" |
| 33 | + style="transform: translate(-40%, {computeImageScroll( 150, 300, scrollInfo.index)}px);" |
| 34 | + /> |
| 35 | + </div> |
| 36 | + <div class="image-track image-track-2"> |
| 37 | + <img |
| 38 | + src="/projects/Kaggle22/area-bi.png" |
| 39 | + alt="tile chart for UNDP project" |
| 40 | + style="transform: translate(-34%, {computeImageScroll( -400, 300, scrollInfo.index, true)}px);" |
| 41 | + /> |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + |
| 45 | + <div class="text-container"> |
| 46 | + <div class="title"> |
| 47 | + <h2>State of Low-Code in Data</h2> |
| 48 | + </div> |
| 49 | + <div class="subtitle"> |
| 50 | + Winning entry for the Kaggle Machine Learning and Data Science |
| 51 | + Survey 2022 competition, where I looked at how data professionals |
| 52 | + were using low-code tools to quickly build and deploy data |
| 53 | + pipelines without the need for complex code. |
| 54 | + </div> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + |
| 58 | + {#if hideBodySection === false} |
| 59 | + <div class="work-body"> |
| 60 | + |
| 61 | + <div class="body-section"> |
| 62 | + <div class="section-desc"> |
| 63 | + <a class="site-link" |
| 64 | + href="https://schubert-da.github.io/undp/" |
| 65 | + target="_blank" |
| 66 | + rel="noreferrer">View project</a |
| 67 | + > |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + |
| 71 | + <div class="body-section"> |
| 72 | + <div class="section-title"> |
| 73 | + <h2>BRIEF</h2> |
| 74 | + </div> |
| 75 | + <div class="section-desc"> |
| 76 | + For my Kaggle ML and DS Survey 2022 submission, I looked at |
| 77 | + how data professionals were using low-code tools to quickly |
| 78 | + build and deploy data pipelines without the need for complex |
| 79 | + code. |
| 80 | + </div> |
| 81 | + </div> |
| 82 | + |
| 83 | + <div class="body-section"> |
| 84 | + <div class="section-title"> |
| 85 | + <h2>MY APPROACH</h2> |
| 86 | + </div> |
| 87 | + <div class="section-desc"> |
| 88 | + This competition entry won a runner-up spot in the |
| 89 | + competition. It used data from various low-code trend |
| 90 | + industry reports as well as Kaggle survey data to look into |
| 91 | + the usage of these tools. |
| 92 | + <br /><br /> |
| 93 | + |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + |
| 97 | + <div class="body-section"> |
| 98 | + <img |
| 99 | + src="/projects/Kaggle22/table.png" |
| 100 | + alt="tile chart for UNDP project" |
| 101 | + /> |
| 102 | + </div> |
| 103 | + |
| 104 | + <div class="body-section"> |
| 105 | + <div class="section-title"> |
| 106 | + <h2>TOOLS</h2> |
| 107 | + </div> |
| 108 | + <div class="section-desc"> |
| 109 | + The notebook contains graphs in Python(with Plotly), with |
| 110 | + more involved graphs and tables using <strong>Markdown</strong> |
| 111 | + + <strong>CSS</strong>. The graphs created with CSS (eg. the above tables) |
| 112 | + were created with HTML elements, inspired by how Svelte uses data to |
| 113 | + c |
| 114 | + </div> |
| 115 | + </div> |
| 116 | + </div> |
| 117 | + {/if} |
| 118 | +</div> |
| 119 | + |
| 120 | +<style lang="scss"> |
| 121 | + .work-container--redesign { |
| 122 | + .image-track-1 { |
| 123 | + background-color: #fff; |
| 124 | + } |
| 125 | +
|
| 126 | + .image-track-2 { |
| 127 | + background-color: #fff; |
| 128 | + } |
| 129 | + } |
| 130 | +</style> |
0 commit comments