Skip to content

Commit

Permalink
Merge pull request #230 from zirreal/master
Browse files Browse the repository at this point in the history
few layout fixes + changed books links
  • Loading branch information
zirreal authored Nov 2, 2023
2 parents 6066aa6 + 20e514d commit 893be8e
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 40 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"scripts": {
"build": "gridsome --max_old_space_size=4096 build",
"test:e2e": "vue-cli-service test:e2e",
"build-m1": "export NODE_OPTIONS=--openssl-legacy-provider && gridsome build",
"develop": "gridsome develop",
"develop-m1": "export NODE_OPTIONS=--openssl-legacy-provider && gridsome develop",
Expand All @@ -15,24 +16,23 @@
"@noxify/gridsome-plugin-remark-embed": "^1.3.1",
"axios": "^0.24.0",
"gridsome": "^0.7.23",
"gridsome-plugin-google-sheets-post": "^2.0.1",
"gridsome-plugin-google-sheets-post": "^3.0.4",
"gridsome-plugin-matomo": "^0.1.0",
"gridsome-plugin-translateit": "^1.0.10",
"gridsome-source-github-api": "^0.2.0",
"i18n-pro": "^2.0.0",
"parallax-js": "^3.1.0",
"vue-client-actions-tracker-component": "^1.0.2",
"vue-in-viewport-directive": "^2.0.2",
"vue-recaptcha": "1.3.0",
"vue-svg-loader": "^0.16.0",
"vue2-smooth-scroll": "^1.5.1",
"vueinview": "^1.0.7",
"vuex": "^3.6.2"
},
"devDependencies": {},
"overrides": {
"gridsome": {
"sharp": "^0.30.7"
}
},
"devDependencies": {}
}
}
6 changes: 6 additions & 0 deletions src/assets/style/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,10 @@ input[type="submit"], button {
input[type="submit"]:hover, button:hover {
background-color: var(--color-green);
border-color: var(--color-green);
}

/* some captcha styles */
.jCaptcha {
width: 100%;
margin-bottom: 20px;
}
1 change: 1 addition & 0 deletions src/assets/style/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ h1, h2, h3, h4, h5 {
letter-spacing: 0.1rem;
margin-top: calc(var(--space)*2);
text-align: center;
font-weight: 500;
}

h1 {
Expand Down
9 changes: 6 additions & 3 deletions src/assets/style/utils.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
/* min-height: 200px; */
display: inline-block;
margin-top: 0;
padding-top: 22px;
padding-top: 3px;
max-width: 1040px;
width: 100%;
overflow: hidden;
Expand Down Expand Up @@ -169,13 +169,16 @@
.title-with-bg span,
.title-with-bg a {
padding-bottom: 15px;
padding-left: calc(var(--space));
padding-right: var(--space) !important;;
padding-left: calc(var(--space) * 0.5);
padding-right: calc(var(--space) * 0.5);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
color: var(--color-light);
transition: opacity 0.33s ease-in-out;
text-transform: uppercase;
font-size: calc( var(--base-font-size)* 1.5);
font-style: normal;
font-weight: 500;
}

.title-with-bg a:hover {
Expand Down
1 change: 1 addition & 0 deletions src/components/BookItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default {
display: grid;
grid-template-columns: 210px 1fr;
gap: var(--space);
margin-bottom: calc(var(--space) * 0.6);
}
h3 {
Expand Down
2 changes: 1 addition & 1 deletion src/components/HeaderNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
display: none;
position: fixed;
z-index: 1012;
top: calc(var(--screen-padding-top) - -6px);
top: calc(var(--screen-padding-top) - -3px);
left: 0;
right: 0;
bottom: 0;
Expand Down
12 changes: 0 additions & 12 deletions src/components/blocks/UserForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
</label>

<label><input type="checkbox" name="agreement" required/> {{$t('I agree to receive emails')}}</label>

<vue-recaptcha
ref="invisibleRecaptcha"
@verify="onVerify"
size="invisible"
:sitekey="recaptchaSitekey">
</vue-recaptcha>
<div>
<rbnet-button>{{$t('Send')}}</rbnet-button>
</div>
Expand Down Expand Up @@ -110,9 +103,6 @@

<script>
export default {
components: {
VueRecaptcha: () => import("vue-recaptcha")
},
metaInfo: {
script: [
Expand All @@ -131,8 +121,6 @@ export default {
return {
email: null,
status: 'none',
recaptchaSitekey: process.env.GRIDSOME_RECAPTCHA
// recaptchaSitekey: "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI" //test localhost
}
},
Expand Down
13 changes: 10 additions & 3 deletions src/components/utils/contactsForm.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<gsp-form class="contacts__form" :gscriptID="gscript" :captchaID="recaptchaSitekey">
<gsp-form class="contacts__form" :gscriptID="gscript" :captchaStyle="captchaStyle">
<input
required
name="email"
Expand Down Expand Up @@ -48,9 +48,16 @@ export default {
result: this.$response,
interval: null,
location: '',
recaptchaSitekey: process.env.GRIDSOME_RECAPTCHA,
gscript: process.env.GRIDSOME_CONTACTS_FORM_SCRIPT,
// recaptchaSitekey: "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI" //test localhost
captchaStyle: {
width: 100,
height: 25,
textBaseline: 'top',
font: '25px Roboto',
textAlign: 'left',
fillStyle: '#6E9BEF'
}
}
},
Expand Down
12 changes: 6 additions & 6 deletions src/data/books.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
img: 'docs-book-2.png'
buttonicon: ''
options:
- link: 'https://ipfs.io/ipfs/QmQ3k8p9SQS5wjovPcjUtQceRZZ6nv3Eqirt1vVQ2wP2JL'
- link: 'https://crustipfs.info/ipfs/QmQ3k8p9SQS5wjovPcjUtQceRZZ6nv3Eqirt1vVQ2wP2JL'
text: 'English'
id: 0
- link: 'https://ipfs.io/ipfs/QmUqNnzdZnic61UYTuKT9EzBNzMW6jc5uHSFk4Xzd3iM93'
- link: 'https://crustipfs.info/ipfs/QmUqNnzdZnic61UYTuKT9EzBNzMW6jc5uHSFk4Xzd3iM93'
text: 'Русский'
id: 2
- link: 'https://ipfs.io/ipfs/QmXhWarATZNTy3CweoVAdy4aTMrGMCsipo3gPSWVsUyQW6'
- link: 'https://crustipfs.info/ipfs/QmXhWarATZNTy3CweoVAdy4aTMrGMCsipo3gPSWVsUyQW6'
text: 'Italiano'
id: 1

Expand All @@ -49,12 +49,12 @@
img: 'docs-book-1.png'
buttonicon: ''
options:
- link: 'https://ipfs.io/ipfs/QmWue3YfuZvuRvgcNb4vZuheX9TaZ9E1b8aCdxSoaGTbVN'
- link: 'https://crustipfs.info/ipfs/QmWue3YfuZvuRvgcNb4vZuheX9TaZ9E1b8aCdxSoaGTbVN'
text: 'English'
id: 0
- link: 'https://ipfs.io/ipfs/QmUjBPgDzmHFHiDkQAG93szJQguiZiowm9sedFMhPfQP4y'
- link: 'https://crustipfs.info/ipfs/QmUjBPgDzmHFHiDkQAG93szJQguiZiowm9sedFMhPfQP4y'
text: 'Русский'
id: 2
- link: 'https://ipfs.io/ipfs/QmTp3srjo3r1L2TKpAEGFafjdzSCTKJT9kkBEkCQDEF6tz'
- link: 'https://crustipfs.info/ipfs/QmTp3srjo3r1L2TKpAEGFafjdzSCTKJT9kkBEkCQDEF6tz'
text: 'Deutsch'
id: 1
11 changes: 9 additions & 2 deletions src/pages/contact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<span class="line-7"></span>
</div>
</div>
<gsp-form class="contacts__form oldy" :gscriptID="gscript" :captchaID="recaptchaSitekey">
<gsp-form class="contacts__form oldy" :gscriptID="gscript" :captchaStyle="captchaStyle">
<h3>{{ $t('Get latest updates') }}</h3>
<label class="contacts__label">
<input
Expand Down Expand Up @@ -108,8 +108,15 @@
result: this.$response,
location: '',
interval: null,
recaptchaSitekey: process.env.GRIDSOME_RECAPTCHA,
gscript: process.env.GRIDSOME_CONTACTS_FORM_SCRIPT,
captchaStyle: {
width: 100,
height: 25,
textBaseline: 'top',
font: '25px Roboto',
textAlign: 'left',
fillStyle: '#6E9BEF'
}
}
},
Expand Down

0 comments on commit 893be8e

Please sign in to comment.