Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
feat: support contributions from Open Collective
Browse files Browse the repository at this point in the history
  • Loading branch information
juliomrqz committed Nov 22, 2018
1 parent e7aa209 commit 257261f
Show file tree
Hide file tree
Showing 32 changed files with 802 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ about: Create a report to help us improve

<!-- Please ask questions via following several ways. -->
<!-- Free Support: https://stackoverflow.com/questions/ask?tags=statusfy -->
<!-- Commercial Support: This project is sponsored by https://www.bazzite.com. If you require professional assistance on your project(s), please contact us at https://statusfy.co/support. -->
<!-- Professional Support: This project is sponsored by https://www.bazzite.com. If you require Professional Assistance on your project(s), please contact us at https://statusfy.co/support. -->

## Bug report

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ about: Suggest an idea for this project

<!-- Please ask questions on StackOverflow. -->
<!-- Free Support: https://stackoverflow.com/questions/ask?tags=statusfy -->
<!-- Commercial Support: This project is sponsored by https://www.bazzite.com. If you require professional assistance on your project(s), please contact us at https://statusfy.co/support. -->
<!-- Professional Support: This project is sponsored by https://www.bazzite.com. If you require Professional Assistance on your project(s), please contact us at https://statusfy.co/support. -->

<!-- Issues which contain questions or support requests will be closed. -->

Expand Down
92 changes: 76 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@
[![License](https://img.shields.io/github/license/bazzite/statusfy.svg)][license-page]
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fbazzite%2Fstatusfy.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fbazzite%2Fstatusfy?ref=badge_shield)

<p align="center">
<a href="#partners" alt="Partner on Open Collective">
<img src="https://opencollective.com/statusfy/tiers/partners/badge.svg" />
</a>
<a href="#sponsors" alt="Sponsors on Open Collective">
<img src="https://opencollective.com/statusfy/tiers/sponsors/badge.svg" />
</a>
<a href="#backers" alt="Backers on Open Collective">
<img src="https://opencollective.com/statusfy/tiers/backers/badge.svg" />
</a>
<a href="https://bazzite.xyz/StatusfyOpenCollective">
<img src="https://img.shields.io/badge/Support%20us-Open%20Collective-0366d6.svg" alt="Support us">
</a>
</p>


<p align="center">
<a href="https://statusfy.co?utm_source=github&utm_medium=readme&utm_campaign=statusfy" target="_blank">
<img src="https://raw.githubusercontent.com/bazzite/statusfy/develop/packages/docs/src/.vuepress/public/assets/img/statusfy-home-en.png" alt="Statusfy" />
Expand All @@ -22,7 +38,55 @@ Statusfy is a Status Page System, easy to use and completely Open Source. You ca

A Statusfy site is a Web Application, created with [Vue][vue], [Nuxt.js][nuxt] and [Tailwind CSS][tailwindcss]. We use **Vue** to dynamically define the interfaces that represent the data, **Nuxt.js** to make a quick and useful abstraction of the client and server logic, and **Tailwind CSS** to rapidly define the default theme.

## Install

## Features

- Systems Definition
- Incidents Reports
- Progressive Web App (PWA) Support
- Google Analytics Integration
- Multi-language support
- A default theme with:
- Responsive layout
- Easy Customization
- Beautiful Design
- SEO Friendly
- Hosting flexibility: Static Generated or Server Rendered

## Sponsoring

We love Open Source Projects, we use them every day and **Statusfy is our contribution to the community**. Statusfy is created and maintained by [Bazzite][bazzite-website], a Software Development Company, but our resources are limited. If you want to support our work and help us to continue developing this Amazing Project, **please donate**, *we will appreciate it* ❤️.

This is how we use the donations:

- Allow the core team to work on Statusfy.
- Support external projects in the ecosystem.
- Cover any other expense.
- Thank contributors if they invested a large amount of time in contributing.

### Partners

**Become a Partner** and get your logo with a link to your site on our README on Github, **every page** of https://docs.statusfy.co and, the **home page** and **each blog post** of https://statusfy.co. [[Become a Partner][opencollective-contribute]]

<a href="https://opencollective.com/statusfy#contributors">
<img src="https://opencollective.com/statusfy/tiers/partners.svg?avatarHeight=96&width=890&button=false" />
</a>

### Sponsors

**Become a Sponsor** and get your logo on our README on Github with a link to your site.. [[Become a Sponsor][opencollective-contribute]]

<a href="https://opencollective.com/statusfy#contributors"><img src="https://opencollective.com/statusfy/tiers/sponsors.svg?avatarHeight=74&width=890&button=false" /></a>

### Backers

**Support us** with a monthly donation and help us continue our activities. It means a lot to us ❤️. [[Become a Backer][opencollective-contribute]]

<a href="https://opencollective.com/statusfy#contributors">
<img src="https://opencollective.com/statusfy/tiers/backers.svg?width=890&button=false" />
</a>

## Getting started

It’s pretty easy to get started with Statusfy. Install it globally with npm:

Expand Down Expand Up @@ -88,23 +152,18 @@ More information in the [Contributing Guide][contributing].

A Demo application is at [https://demo.statusfy.co][demo].

## Documentation & Support

If you want extra details of how to configure and use this project, the **full documentation** is available at [https://docs.statusfy.co][documentation].

You may want to check the examples projects for different popular hosting services at [the Examples Repository][examples].

For **Bug reports** or **Feature requests**, use the [Issues section][issues].

For **questions**, go to [https://stackoverflow.com/questions/ask?tags=statusfy](https://stackoverflow.com/questions/ask?tags=statusfy).

You can find useful **articles** in [our blog][statusfy-blog].
## Documentation & Community Support

You may also want to [follow the company supporting this project on Twitter][twitter].
- If you want extra details of how to configure and use this project, the **full documentation** is available at [https://docs.statusfy.co][documentation].
- You may want to check the **examples projects** for different popular hosting services at [the Examples Repository][examples].
- For **Bug reports** or **Feature requests**, use the [Issues section][issues].
- For **questions**, go to [https://stackoverflow.com/questions/ask?tags=statusfy](https://stackoverflow.com/questions/ask?tags=statusfy).
- You can find useful **articles** in [our blog][statusfy-blog].
- You may also want to **follow the company** supporting this project [on Twitter][twitter].

### Commercial Support
## Professional Support

This project is sponsored by [Bazzite][bazzite-website]. If you require professional assistance on your project(s), please contact us at [https://statusfy.co/support][support-page].
This project is sponsored by [Bazzite][bazzite-website]. If you require Professional Assistance on your project(s), please contact us at [https://statusfy.co/support][support-page].

## Contributing

Expand All @@ -124,7 +183,7 @@ Code released under the [Apache License 2.0][license-page].
[contributing]: https://github.com/bazzite/statusfy/blob/develop/CONTRIBUTING.md
[code-of-conduct]: https://www.bazzite.com/open-source/code-of-conduct?utm_source=github&utm_medium=readme&utm_campaign=statusfy
[issues]: https://github.com/bazzite/statusfy/issues
[twitter]: https://twitter.com/BazziteTech
[twitter]: https://bazzite.xyz/Twitter
[bazzite-website]: https://www.bazzite.com?utm_source=github&utm_medium=readme&utm_campaign=statusfy
[support-page]: https://statusfy.co/support?utm_source=github&utm_medium=readme&utm_campaign=statusfy
[statusfy-blog]: https://statusfy.co/blog?utm_source=github&utm_medium=readme&utm_campaign=statusfy
Expand All @@ -134,3 +193,4 @@ Code released under the [Apache License 2.0][license-page].
[tailwindcss]: https://tailwindcss.com/
[npx]: https://www.npmjs.com/package/npx
[npm]: https://www.npmjs.com/get-npm
[opencollective-contribute]: https://bazzite.xyz/StatusfyOpenCollective#contribute
4 changes: 4 additions & 0 deletions packages/@statusfy/common/lib/style/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ const colors = {
'blue-dark': '#005cc5',
'blue': '#0366d6',

'purple-dark': '#5a32a3',
'purple': '#6f42c1',

'green-dark': '#22863a',
'green': '#28a745',

'orange': '#f66a0a',
'red': '#d73a49',
'yellow': '#ffd33d'
Expand Down
3 changes: 3 additions & 0 deletions packages/docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,6 @@ $RECYCLE.BIN/

# Nuxt generate
dist


src/.vuepress/partners.json
8 changes: 6 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "Apache-2.0",
"main": "index.js",
"scripts": {
"dev": "npx vuepress dev src",
"build": "npx vuepress build src"
"dev": "npm run retrieve-partners && npx vuepress dev src",
"build": "npm run && retrieve-partners && npx vuepress build src",
"retrieve-partners": "node scripts/partners.js"
},
"engines": {
"node": ">=8.10"
Expand All @@ -31,6 +32,9 @@
"homepage": "https://docs.statusfy.co",
"devDependencies": {
"@statusfy/common": "0.1.3",
"axios": "^0.18.0",
"consola": "^2.3.0",
"fs-extra": "^7.0.1",
"markdown-it-block-image": "0.0.3",
"markdown-it-imsize": "^2.0.1",
"vuepress": "^0.14.4"
Expand Down
27 changes: 27 additions & 0 deletions packages/docs/scripts/partners.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const path = require('path')
const axios = require('axios')
const consola = require('consola')
const fs = require('fs-extra')

const retrieveParters = async () => {
console.info('Retrieveing Partners')

try {
const response = await axios.get('https://opencollective.com/statusfy/members/all.json?TierId=6927')

const partners = response.data.filter(p => p.isActive)

consola.success(`${partners.length} partner(s) were found`)

await fs.writeJson(
path.resolve(__dirname, '..', 'src', '.vuepress', './partners.json'),
partners)

process.exit(0)
} catch (error) {
consola.error(error)
process.exit(1)
}
}

retrieveParters()
177 changes: 177 additions & 0 deletions packages/docs/src/.vuepress/components/Partners.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
<template>
<section v-if="partners && partners.length > 0" :class="`mode-${mode}`">
<div v-if="mode === 'advanced'" class="container">
<div class="text-center">
<h2>
{{ text[language].title }}
</h2>

<p>
{{ text[language].description }}
</p>
</div>

<div class="text-center sponsors-container">
<a
v-for="partner in partners"
v-bind:key="partner.MemberId"
:href="partner.website"
rel="noopener"
target="_blank"
class="sponsor">
<img
:src="partner.image"
:alt="partner.name"
:title="partner.description" />
</a>
</div>

<div class="text-center">
<a
href="https://bazzite.xyz/StatusfyOpenCollective#contribute"
rel="noopener"
target="_blank"
class="btn btn-sm btn-outline">{{ text[language].becomePartner }}</a>
</div>
</div>
<div v-else-if="mode === 'sidebar'" class="container">
<div class="title">
{{ text[language].title }}
</div>

<div class="text-center sponsors-container">
<a
v-for="partner in partners"
v-bind:key="partner.MemberId"
:href="partner.website"
rel="noopener"
target="_blank"
class="sponsor">
<img
:src="partner.image"
:alt="partner.name"
:title="partner.description" />
</a>
</div>

<div class="text-center">
<a
href="https://bazzite.xyz/StatusfyOpenCollective#contribute"
rel="noopener"
target="_blank">{{ text[language].becomePartner }}</a>
</div>
</div>
</section>
</template>

<script>
export default {
data: () => ({
text: {
en: {
title: 'Sponsors',
description: 'We would like to acknowledge these sponsors that help us to continue developing Statusfy.',
becomePartner: 'Become a Partner'
},
es: {
title: 'Patrocinadores',
description: 'Nos gustaría reconocer a estos patrocinadores que nos ayudan a seguir desarollando Statusfy.',
becomePartner: 'Conviértete en un Socio'
}
}
}),
props: {
mode: {
type: String,
default: 'advanced',
validator: function (value) {
// The value must match one of these strings
return ['sidebar', 'advanced'].indexOf(value) !== -1
}
}
},
computed: {
partners() {
return process.env.PARTNERS
},
language() {
return this.$lang.split('-')[0];
}
}
}
</script>


<style lang="stylus" scoped>
.container
padding-bottom 1rem
.sponsor {
margin-top: .5rem;
margin-bottom: .5rem;
opacity: 1;
height: 3rem;
filter: none;
transition: all .35s ease;
> img {
height: 100%;
max-width: 100%;
}
}
// .mode-advanced {
.sponsors-container {
margin-bottom: 1rem;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
flex-direction: column;
display: flex;
}
// }
.mode-sidebar {
.container {
padding 1rem 1.5rem;
}
.title {
font-size 1.1em
font-weight bold
margin-bottom: 0.5rem;
}
.sponsors-container {
flex-wrap: wrap !important;
flex-direction: row !important;
// justify-content: start;
}
// .sponsor {
// width: 100%;
// }
}
@media (min-width: 992px) {
// .mode-advanced {
.sponsors-container {
flex-direction: row;
}
// }
}
@media (min-width: 768px) {
.sponsor {
opacity: 0.75;
filter: grayscale(100%);
&:hover {
opacity: 1;
filter: none;
}
}
}
</style>
Loading

0 comments on commit 257261f

Please sign in to comment.