Skip to content

Commit

Permalink
feat: add ecosystem to homepage!
Browse files Browse the repository at this point in the history
with some easter-eggs for sponsors :)
  • Loading branch information
HerringtonDarkholme committed Dec 4, 2023
1 parent 6108df5 commit d83b796
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/src/Homepage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import Theme from 'vitepress/theme'
import Features from './homepage/Features.vue'
import Languages from './homepage/Languages.vue'
import Ecosystem from './homepage/Ecosystem.vue'
</script>

<template>
Expand All @@ -11,6 +12,7 @@ import Languages from './homepage/Languages.vue'
</template>
<template #home-features-after>
<Languages />
<Ecosystem />
</template>
</Theme.Layout>
</template>
82 changes: 82 additions & 0 deletions website/src/homepage/Ecosystem.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<template>
<div>
<div class="section-title">
<h1>Who is using ast-grep</h1>
</div>
<div class="ecosystem">
<a target="_blank" href="https://vue-vine.dev/" title="vue-vine" class="sponsor">
<img src='https://vue-vine.dev/vine-logo.png'/>
</a>
<a target="_blank" href="https://swc.rs" title="SWC" class="sponsor">
<img src='https://avatars.githubusercontent.com/u/26715726?s=200&v=4'/>
</a>
<a target="_blank" href="https://github.com/unplugin/unplugin-vue-cssvars#readme" title="unplugin-vue-cssvars">
<img src='https://raw.githubusercontent.com/baiwusanyu-c/unplugin-vue-cssvars/master/public/logo.png' style="padding: 25px"/>
</a>
<a target="_blank" href="https://hydrogen.shopify.dev/" title="Hydrogen">
<img src='https://camo.githubusercontent.com/5d9fcd60d8176292176f0552fb28cb52e510d67afc010705fb0619d18a79f468/68747470733a2f2f63646e2e73686f706966792e636f6d2f6f787967656e2f35393834383232383838362f393833303432322f3978623538777864792f66617669636f6e2e737667'/>
</a>
<a target="_blank" href="https://github.com/vue-macros/vue-macros-cli" title="vue-macros">
<img src='https://avatars.githubusercontent.com/u/120662729?s=200&v=4'/>
</a>
</div>
</div>
</template>
<style scoped>
.section-title {
margin-top: 1em;
text-align: center;
}
h1 {
display: inline-block;
margin: 48px auto 20px;
padding-top: 24px;
border-top: 1px solid var(--vp-c-divider);
text-align: center;
font-size: 24px;
opacity: 0.5;
letter-spacing: -0.02em;
}
.ecosystem {
width: 100%;
padding: 0 20px;
overflow: auto;
white-space: nowrap;
text-align: center;
scroll-behavior: smooth;
}
.ecosystem img {
padding: 10px;
width: 120px;
height: 120px;
transition: 0.2s ease-in-out;
}
.ecosystem a {
position: relative;
display: inline-block;
overflow: hidden;
transition: transform 0.2s linear;
}
.sponsor::before {
content: '';
background: linear-gradient(
to bottom, rgba(255, 255, 255, 0),
rgba(255, 255, 255, 0.4) 25%,
rgba(255, 255, 255, 0.4) 75%,
rgba(255, 255, 255, 0)
);
width: 60%;
height: 100%;
top: 0%;
transform: skew(45deg);
position: absolute;
transition: left 0.4s linear;
left: -125%;
}
.sponsor:hover {
transform: translateY(-5%);
}
.sponsor:hover::before {
left: 150%;
}
</style>

0 comments on commit d83b796

Please sign in to comment.