Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'users of melange widget' to front page #196

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 80 additions & 0 deletions docs/.vitepress/theme/Users.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<script>
export const users = [
{
name: "Ahrefs",
image: "ahrefs.svg",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the newest ahrefs logo from https://ahrefs.com/logo

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in e51bf5e

infoLink: "https://ahrefs.com",
},
{
name: "Qwick",
image: "qwick.svg",
infoLink: "https://qwick.com"
},
{
name: "CMap",
image: "cmap.svg",
infoLink: "https://www.cmap.io/atvero-pim",
},
{
name: "Droplet",
image: "droplet.png",
infoLink: "https://droplet.io",
},
{
name: "Instapainting",
image: "instapainting.svg",
infoLink: "https://instapainting.com",
}
].map(user => { return { ...user, image: `${import.meta.env.BASE_URL}/logos/${user.image}` } })

export default {
data() {
return { users };
},
};
</script>

<template>
<div class="company-logos">
<h2>Users of Melange</h2>
<div class="logos">
<a v-for="user in users" :key="user.name" :href="user.infoLink">
<img :src="user.image" :alt="user.name" />
</a>
</div>
</div>
</template>

<style scoped>
.company-logos {
text-align: center;
padding-top: 48px;
}

.company-logos h2 {
font-family: var(--vp-font-family-base);
font-weight: 700;
font-size: 36px;
line-height: 36px;
color: var(--vp-c-brand-1);
}

.logos {
display: flex;
gap: 20px;
padding: 20px;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}

.logos img {
height: 70px;
max-width: 210px;
transition: transform 0.2s;
}

.logos img:hover {
transform: scale(1.05);
}
</style>
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ features:
details: Use existing JavaScript packages from NPM, or your own JavaScript libraries in your projects. With an expressive bindings language, and an ergonomic compilation model, Melange can help you build robust applications that leverage functionality from the JavaScript ecosystem.
- title: Stable and Industry Backed
details: Melange builds on top of decades of type system research, compiler engineering and tooling development to provide a polished developer experience. Companies like Ahrefs use Melange daily to deploy web applications for their users.

---
<script setup>
import Users from '.vitepress/theme/Users.vue'
</script>

<Users />
1 change: 1 addition & 0 deletions docs/public/logos/ahrefs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions docs/public/logos/cmap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/logos/droplet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/public/logos/instapainting.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/public/logos/qwick.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.