Skip to content

Commit

Permalink
Merge pull request #27 from karelmaxa/partners
Browse files Browse the repository at this point in the history
Add section with partners.
  • Loading branch information
pavelhoral authored and karelmaxa committed Feb 29, 2024
2 parents 0fe3053 + 03c7d3f commit 8a219ad
Show file tree
Hide file tree
Showing 12 changed files with 90 additions and 67 deletions.
4 changes: 2 additions & 2 deletions site/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export default defineConfig({
]
},
{
text: 'Sponsors',
link: '/sponsors'
text: 'Partners',
link: '/partners'
},
],
sidebar: {
Expand Down
42 changes: 0 additions & 42 deletions site/.vitepress/theme/components/Sponsor.vue

This file was deleted.

44 changes: 44 additions & 0 deletions site/.vitepress/theme/components/partner/Partners.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<script setup lang="ts">
import { withBase } from 'vitepress';
import type { Partner } from '../../types/partner';
defineProps({
data: { type: Array<Partner>, required: true },
});
</script>

<template>
<p class="partner-container">
<a
v-for="partner of data"
:key="partner.name"
:href="partner.url"
target="_blank"
class="partner-item"
>
<img :src="withBase('partner/' + partner.logo)">
</a>
</p>
</template>

<style scoped>
.partner-container {
display: flex;
flex-wrap: wrap;
row-gap: 10px;
}
.partner-item {
display: flex;
align-items: center;
max-width: 33%;
min-width: 180px;
padding: 20px;
box-sizing: border-box;
}
.partner-item > img {
max-height: 50px;
margin: auto;
}
</style>
4 changes: 2 additions & 2 deletions site/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { App } from 'vue';
import DefaultTheme from 'vitepress/theme';
// Custom components
import Sponsor from './components/Sponsor.vue';
import Partners from './components/partner/Partners.vue';
import Blog from './components/blog/Blog.vue';
import PostList from './components/common/PostList.vue';
import Post from './components/common/Post.vue';
Expand All @@ -13,7 +13,7 @@ import './custom.css';
export default {
...DefaultTheme,
enhanceApp({ app }: { app: App }) {
app.component('Sponsor', Sponsor);
app.component('Partners', Partners);
app.component('PostList', PostList);
app.component('Blog', Blog);
app.component('Post', Post);
Expand Down
5 changes: 5 additions & 0 deletions site/.vitepress/theme/types/partner.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface Partner {
name: string,
url: string,
logo: string,
}
37 changes: 37 additions & 0 deletions site/partners.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: Partners
sidebar: false
---

<script setup>
const certPartners = [
{ name: 'orchitech', url: 'https://orchi.tech/en/', logo: 'orchitech.png' }
];
const implPartners = [
{ name: 'orchitech', url: 'https://orchi.tech/en/', logo: 'orchitech.png' },
{ name: 'j3ag', url: 'https://www.j3ag.cz/', logo: 'j3ag.png' },
{ name: 'sonpo', url: 'https://www.sonpo.cz/en/', logo: 'sonpo.png' },
{ name: 'systemboost', url: 'https://www.system-boost.cz/en/', logo: 'systemboost.png' },
];
const infraPartners = [
{ name: 'jfrog', url: 'https://jfrog.com/artifactory/', logo: 'jfrog-artifactory.png' },
];
</script>

# Partners

The following is a list of Wren Security partners.
Partners are listed in no particular order within each section.


### Authorized certifying partner

<Partners :data="certPartners" />

### Implementation partners

<Partners :data="implPartners" />

### Infrastructure partners

<Partners :data="infraPartners" />
Binary file added site/public/partner/j3ag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added site/public/partner/sonpo.png
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 site/public/partner/systemboost.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 0 additions & 21 deletions site/sponsors.md

This file was deleted.

0 comments on commit 8a219ad

Please sign in to comment.