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

chore: format older vue components #1499

Merged
merged 1 commit into from
Mar 18, 2021
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ At Ajv, we are committed to creating more equitable and inclusive spaces for our

We strive to create an environment of respect and healthy discourse by setting standards for our interactions and we expect it from all members of our community - from long term project member to first time visitor. For more information, review our [code of conduct](./CODE_OF_CONDUCT.md) and values.

<Contributors/>
<Contributors />

### How we make decisions

Expand Down
39 changes: 20 additions & 19 deletions docs/.vuepress/components/Contributors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,34 @@
v-for="(contributor, i) in contributors"
class="contributor"
:style="'background-position: ' + (100 * i) / (contributors.length - 1) + '% 0'"
:href="'https://github.com/' + contributor">
:href="'https://github.com/' + contributor"
>
{{ contributor }}
</a>
</div>
</template>

<script>
import contributors from "./Contributors/_contributors.js";
export default {
data() {
return {
contributors: contributors
}
import contributors from "./Contributors/_contributors.js"
export default {
data() {
return {
contributors: contributors,
}
}
},
}
</script>

<style scoped>
.contributor {
width: 2.4em;
height: 2.4em;
border-radius: 50%;
text-indent: -9999px;
display: inline-block;
background: no-repeat url(./Contributors/contributors.jpg);
background-size: auto 102%;
margin: 0 0.5em 0.5em 0;
border: 2px solid var(--second);
}
.contributor {
width: 2.4em;
height: 2.4em;
border-radius: 50%;
text-indent: -9999px;
display: inline-block;
background: no-repeat url(./Contributors/contributors.jpg);
background-size: auto 102%;
margin: 0 0.5em 0.5em 0;
border: 2px solid var(--second);
}
</style>
29 changes: 16 additions & 13 deletions docs/.vuepress/components/GitHub.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
<template>
<ClientOnly>
<span>
<a class="github-button"
<a
class="github-button"
href="https://github.com/ajv-validator/ajv"
data-show-count="true"
data-size="large"
aria-label="Star ajv-validator/ajv on GitHub"
>Star</a>
>
Star
</a>
</span>
</ClientOnly>
</template>

<script>
export default {
mounted() {
let githubScript = document.createElement("script")
githubScript.setAttribute("src", "https://buttons.github.io/buttons.js")
document.head.appendChild(githubScript)
}
}
export default {
mounted() {
let githubScript = document.createElement("script")
githubScript.setAttribute("src", "https://buttons.github.io/buttons.js")
document.head.appendChild(githubScript)
},
}
</script>

<style scoped>
span {
vertical-align: -8px;
padding-left: 20px;
}
span {
vertical-align: -8px;
padding-left: 20px;
}
</style>
92 changes: 47 additions & 45 deletions docs/.vuepress/components/RecFeatures.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,63 +15,65 @@
<p class="text">Choose your JSON schema standard</p>
</div>

<br class="clearBoth"/>
<br class="clearBoth" />
</div>
</template>

<style scoped>
.rec {
display: inline-block;
float: left;
margin: 10px;
width: 430px;
height: 300px;
border-radius: 8px;
}
.rec {
display: inline-block;
float: left;
margin: 10px;
width: 430px;
height: 300px;
border-radius: 8px;
}

.rec#less-code {
background: #007BFF;
}
.rec#less-code {
background: #007bff;
}

.rec#fast-and-secure {
background: #00A3AA;
}
.rec#fast-and-secure {
background: #00a3aa;
}

.rec#multi-spec {
background: #F5775B;
}
.rec#multi-spec {
background: #f5775b;
}

.header {
position: relative;
width: 359px;
height: 39px;
left: 30px;
top: 30px;
.header {
position: relative;
width: 359px;
height: 39px;
left: 30px;
top: 30px;

font-family: Heebo;
font-style: normal;
font-weight: normal;
font-size: 36px;
line-height: 39px;
font-family: Heebo;
font-style: normal;
font-weight: normal;
font-size: 36px;
line-height: 39px;

color: #FFFFFF;
}
color: #ffffff;
}

.text {
position: relative;
width: 359px;
height: 78px;
left: 30px;
top: 30px;
.text {
position: relative;
width: 359px;
height: 78px;
left: 30px;
top: 30px;

font-family: Heebo;
font-style: normal;
font-weight: normal;
font-size: 24px;
line-height: 39px;
font-family: Heebo;
font-style: normal;
font-weight: normal;
font-size: 24px;
line-height: 39px;

color: #FFFFFF;
}
color: #ffffff;
}

.clearBoth { clear: both; }
.clearBoth {
clear: both;
}
</style>
4 changes: 2 additions & 2 deletions docs/HOME.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Safety, security and reliability for JavaScript applications

<RecFeatures/>
<RecFeatures />

## Ajv News

Expand Down Expand Up @@ -46,4 +46,4 @@ Try in the playground (TBC)

Ajv is free to use and open-source that many developers contributed to. Join us!

<Contributors/>
<Contributors />