|
15 | 15 | :h="item.h"
|
16 | 16 | :i="item.i"
|
17 | 17 | >
|
18 |
| - <div v-if="item.i === '2'" style="width: 90%;margin-left: auto;margin-right: auto;margin-top: 5px;height: 90%;"> |
19 |
| - <iframe src="https://github.com/sponsors/jbaysolutions/card" title="Sponsor jbaysolutions" height="100%" width="100%" style="border: 0;"></iframe> |
20 |
| -<!-- <iframe src="https://github.com/sponsors/jbaysolutions/button" title="Sponsor jbaysolutions" height="35" width="100%" style="border: 0; margin-left:auto;margin-right: auto;"></iframe>--> |
| 18 | + <div v-if="item.i === '2'" class="docsfold-features"> |
| 19 | + <img src="assets/img/docsfold-logo-sm.png" alt="DocsFold" style="max-width: 100%;"/> |
| 20 | + <div class="content"> |
| 21 | + <h2>API to generate image and PDF documents</h2> |
| 22 | + <div style="padding:10px 0;"> |
| 23 | + |
| 24 | + <a href="https://www.docsfold.com?utm_source=vue-grid-layout-website&utm_medium=web&utm_campaign=vue-grid-layout" target="_blank" class="btn-read-more">Get started for FREE</a> |
| 25 | + </div> |
| 26 | + </div> |
21 | 27 | </div>
|
22 |
| - <span v-else class="text">{{itemTitle(item)}}</span> |
| 28 | + <!-- <div v-if="item.i === '999'" style="width: 90%;margin-left: auto;margin-right: auto;margin-top: 5px;height: 90%;"> |
| 29 | + <iframe src="https://github.com/sponsors/jbaysolutions/card" title="Sponsor jbaysolutions" height="100%" width="100%" style="border: 0;"></iframe> |
| 30 | + <!– <iframe src="https://github.com/sponsors/jbaysolutions/button" title="Sponsor jbaysolutions" height="35" width="100%" style="border: 0; margin-left:auto;margin-right: auto;"></iframe>–> |
| 31 | + </div>--> |
| 32 | + <span v-else class="text">{{ itemTitle(item) }}</span> |
23 | 33 | </grid-item>
|
24 | 34 | </grid-layout>
|
25 | 35 | </template>
|
26 | 36 |
|
27 | 37 | <script>
|
28 |
| -import { GridLayout, GridItem } from "vue-grid-layout" |
| 38 | +import {GridLayout, GridItem} from "vue-grid-layout" |
29 | 39 |
|
30 | 40 | export default {
|
31 |
| - name: "HomepageGrid", |
32 |
| - components: { |
33 |
| - GridLayout, |
34 |
| - GridItem |
35 |
| - }, |
36 |
| - data() { |
37 |
| - return { |
38 |
| - layout: [ |
39 |
| - {"x":0,"y":0,"w":2,"h":2,"i":"0", static: false}, |
40 |
| - {"x":10,"y":0,"w":2,"h":4,"i":"1", static: true}, |
41 |
| - {"x":2,"y":0,"w":8,"h":4,"i":"2", static: false}, |
42 |
| - {"x":6,"y":4,"w":2,"h":3,"i":"3", static: false}, |
43 |
| - {"x":8,"y":4,"w":2,"h":3,"i":"4", static: false}, |
44 |
| - {"x":10,"y":4,"w":2,"h":3,"i":"5", static: false}, |
45 |
| - {"x":0,"y":2,"w":2,"h":5,"i":"6", static: false}, |
46 |
| - {"x":2,"y":4,"w":2,"h":5,"i":"7", static: false}, |
47 |
| - {"x":4,"y":4,"w":2,"h":5,"i":"8", static: false}, |
48 |
| - {"x":6,"y":7,"w":2,"h":4,"i":"9", static: true}, |
49 |
| - {"x":8,"y":7,"w":2,"h":4,"i":"10", static: false}, |
50 |
| - {"x":10,"y":7,"w":2,"h":4,"i":"11", static: false}, |
51 |
| - {"x":0,"y":10,"w":2,"h":5,"i":"12", static: false}, |
52 |
| - {"x":2,"y":11,"w":2,"h":5,"i":"13", static: false}, |
53 |
| - {"x":4,"y":9,"w":2,"h":4,"i":"14", static: false}, |
54 |
| - {"x":6,"y":11,"w":2,"h":4,"i":"15", static: false}, |
55 |
| - {"x":8,"y":11,"w":2,"h":5,"i":"16", static: false}, |
56 |
| - {"x":10,"y":11,"w":2,"h":2,"i":"17", static: false}, |
57 |
| - {"x":0,"y":7,"w":2,"h":3,"i":"18", static: false}, |
58 |
| - {"x":2,"y":9,"w":2,"h":2,"i":"19", static: false} |
59 |
| - ], |
60 |
| - draggable: true, |
61 |
| - resizable: true, |
62 |
| - index: 0 |
63 |
| - } |
64 |
| - }, |
65 |
| - methods: { |
66 |
| - itemTitle(item) { |
67 |
| - let result = item.i; |
68 |
| - if (item.static) { |
69 |
| - result += " - Static"; |
70 |
| - } |
71 |
| - return result; |
72 |
| - } |
73 |
| - } |
| 41 | + name: "HomepageGrid", |
| 42 | + components: { |
| 43 | + GridLayout, |
| 44 | + GridItem |
| 45 | + }, |
| 46 | + data() { |
| 47 | + return { |
| 48 | + layout: [ |
| 49 | + {"x": 0, "y": 0, "w": 2, "h": 2, "i": "0", static: false}, |
| 50 | + {"x": 10, "y": 0, "w": 2, "h": 4, "i": "1", static: true}, |
| 51 | + {"x": 2, "y": 0, "w": 8, "h": 4, "i": "2", static: false}, |
| 52 | + {"x": 6, "y": 4, "w": 2, "h": 3, "i": "3", static: false}, |
| 53 | + {"x": 8, "y": 4, "w": 2, "h": 3, "i": "4", static: false}, |
| 54 | + {"x": 10, "y": 4, "w": 2, "h": 3, "i": "5", static: false}, |
| 55 | + {"x": 0, "y": 2, "w": 2, "h": 5, "i": "6", static: false}, |
| 56 | + {"x": 2, "y": 4, "w": 2, "h": 5, "i": "7", static: false}, |
| 57 | + {"x": 4, "y": 4, "w": 2, "h": 5, "i": "8", static: false}, |
| 58 | + {"x": 6, "y": 7, "w": 2, "h": 4, "i": "9", static: true}, |
| 59 | + {"x": 8, "y": 7, "w": 2, "h": 4, "i": "10", static: false}, |
| 60 | + {"x": 10, "y": 7, "w": 2, "h": 4, "i": "11", static: false}, |
| 61 | + {"x": 0, "y": 10, "w": 2, "h": 5, "i": "12", static: false}, |
| 62 | + {"x": 2, "y": 11, "w": 2, "h": 5, "i": "13", static: false}, |
| 63 | + {"x": 4, "y": 9, "w": 2, "h": 4, "i": "14", static: false}, |
| 64 | + {"x": 6, "y": 11, "w": 2, "h": 4, "i": "15", static: false}, |
| 65 | + {"x": 8, "y": 11, "w": 2, "h": 5, "i": "16", static: false}, |
| 66 | + {"x": 10, "y": 11, "w": 2, "h": 2, "i": "17", static: false}, |
| 67 | + {"x": 0, "y": 7, "w": 2, "h": 3, "i": "18", static: false}, |
| 68 | + {"x": 2, "y": 9, "w": 2, "h": 2, "i": "19", static: false} |
| 69 | + ], |
| 70 | + draggable: true, |
| 71 | + resizable: true, |
| 72 | + index: 0 |
| 73 | + } |
| 74 | + }, |
| 75 | + methods: { |
| 76 | + itemTitle(item) { |
| 77 | + let result = item.i; |
| 78 | + if (item.static) { |
| 79 | + result += " - Static"; |
| 80 | + } |
| 81 | + return result; |
| 82 | + } |
| 83 | + } |
74 | 84 | }
|
75 | 85 | </script>
|
76 | 86 |
|
@@ -134,4 +144,74 @@ export default {
|
134 | 144 | }
|
135 | 145 |
|
136 | 146 |
|
| 147 | +.docsfold-features { |
| 148 | + width: 90%; |
| 149 | + margin-left: auto; |
| 150 | + margin-right: auto; |
| 151 | + /*margin-top: 5px;*/ |
| 152 | + height: 90%; |
| 153 | + /*text-align: center!important;*/ |
| 154 | + display: flex; |
| 155 | + flex-wrap: wrap; |
| 156 | + justify-content: center; |
| 157 | +} |
| 158 | +
|
| 159 | +.docsfold-features img { |
| 160 | + width: 30%; |
| 161 | + height: auto; |
| 162 | + object-fit: contain; |
| 163 | +} |
| 164 | +
|
| 165 | +.docsfold-features .content { |
| 166 | + width: 50%; |
| 167 | + height: 100%; |
| 168 | + display: flex; |
| 169 | + flex-direction: column; |
| 170 | + justify-content: center; |
| 171 | + flex-grow: 1; |
| 172 | + align-items: center; |
| 173 | + padding: 10px; |
| 174 | +} |
| 175 | +
|
| 176 | +.docsfold-features h2 { |
| 177 | + font-size: 18px; |
| 178 | + margin-bottom: 10px; |
| 179 | + border:0; |
| 180 | +} |
| 181 | +
|
| 182 | +.docsfold-features .btn-read-more:hover { |
| 183 | + background: #4104f1; |
| 184 | +} |
| 185 | +
|
| 186 | +.docsfold-features .btn-read-more { |
| 187 | + line-height: 0; |
| 188 | + /*padding: 15px 40px;*/ |
| 189 | + padding: 10px 20px; |
| 190 | + border-radius: 4px; |
| 191 | + transition: 0.5s; |
| 192 | + color: #fff; |
| 193 | + background: #4154f1; |
| 194 | + box-shadow: 0px 5px 25px rgba(65, 84, 241, 0.3); |
| 195 | + /*cursor: pointer;*/ |
| 196 | +} |
| 197 | +
|
| 198 | +.docsfold-features .btn-read-more span { |
| 199 | + font-family: "Nunito", sans-serif; |
| 200 | + font-weight: 600; |
| 201 | + font-size: 16px; |
| 202 | + letter-spacing: 1px; |
| 203 | +} |
| 204 | +
|
| 205 | +.docsfold-features .btn-read-more i { |
| 206 | + margin-left: 5px; |
| 207 | + font-size: 18px !important; |
| 208 | + transition: 0.3s; |
| 209 | + color: #fff !important; |
| 210 | +} |
| 211 | +
|
| 212 | +.docsfold-features .btn-read-more:hover i { |
| 213 | + transform: translateX(5px); |
| 214 | +} |
| 215 | +
|
| 216 | +
|
137 | 217 | </style>
|
0 commit comments