├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── config.yml │ └── feature_request.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .npmrc ├── LICENSE ├── README.md ├── app ├── components │ ├── Bounded.vue │ ├── Footer.vue │ ├── Header.vue │ ├── Heading.vue │ └── SignUpForm.vue ├── composables │ ├── useAlternateLanguages.ts │ ├── useNavigation.ts │ └── useSettings.ts ├── layouts │ └── default.vue ├── pages │ ├── [uid].vue │ ├── index.vue │ └── slice-simulator.vue ├── prismic │ ├── linkResolver.ts │ └── richTextSerializer.ts ├── slices │ ├── Hero │ │ ├── index.vue │ │ ├── mocks.json │ │ ├── model.json │ │ ├── screenshot-default.png │ │ └── screenshot-withButton.png │ ├── Image │ │ ├── index.vue │ │ ├── mocks.json │ │ ├── model.json │ │ ├── screenshot-lightSlate.png │ │ └── screenshot-white.png │ ├── TextWithFeatures │ │ ├── index.vue │ │ ├── mocks.json │ │ ├── model.json │ │ └── screenshot-default.png │ ├── TextWithImage │ │ ├── index.vue │ │ ├── mocks.json │ │ ├── model.json │ │ └── screenshot-default.png │ └── index.ts └── styles │ └── global.css ├── customtypes ├── navigation │ ├── index.json │ └── mocks.json ├── page │ ├── index.json │ └── mocks.json └── settings │ ├── index.json │ └── mocks.json ├── degit.json ├── docs └── README.md ├── documents ├── en-us │ ├── ZkdWZBIAACkA08xc=#=ZkdeMBIAACgA09kN=#=settings=#=YldhUhcAACgA9jsi=#=en-us=#=y.json │ ├── ZkdWZRIAACkA08xe=#=ZkdfNRIAACgA09q2=#=navigation=#=YldlaRcAACgA9k0q=#=en-us=#=y.json │ ├── ZkdWZhIAACMA08xo=#=ZkdeWhIAACMA09lV=#=page=#=YldjQxcAACgA9kOy=#=en-us=#=y.json │ └── ZkdWZhIAACoA08xl=#=ZkdeihIAACgA09ml=#=page=#=YldlRhcAACkA9kyL=#=en-us=#=y.json ├── fr-fr │ ├── ZkdWYxIAACoA08xV=#=ZkdesRIAACoA09nm=#=page=#=YldlRhcAACkA9kyL=#=fr-fr=#=n.json │ ├── ZkdWZBIAACoA08xa=#=ZkdewBIAACgA09n-=#=settings=#=YldhUhcAACgA9jsi=#=fr-fr=#=n.json │ ├── ZkdWZRIAACgA08xj=#=ZkdfIxIAACMA09qW=#=navigation=#=YldlaRcAACgA9k0q=#=fr-fr=#=n.json │ └── ZkdWZRIAACoA08xh=#=Zkde3BIAACgA09oo=#=page=#=YldjQxcAACgA9kOy=#=fr-fr=#=n.json └── index.json ├── eslint.config.mjs ├── nuxt.config.ts ├── package-lock.json ├── package.json ├── prismicio-types.d.ts ├── public └── favicon.ico ├── server ├── api │ └── sign-up.post.ts └── tsconfig.json ├── slicemachine.config.json ├── tailwind.config.ts └── tsconfig.json /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🚨 Bug report 3 | about: Report a bug report to help improve the starter. 4 | title: "" 5 | labels: "bug" 6 | assignees: "" 7 | --- 8 | 9 | 16 | 17 | ### Versions 18 | 19 | - node: 20 | 21 | ### Reproduction 22 | 23 | 24 | 25 |
26 | Additional Details 27 |
28 | 29 |
30 | 31 | ### Steps to reproduce 32 | 33 | ### What is expected? 34 | 35 | ### What is actually happening? 36 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: 👪 Prismic Community Forum 4 | url: https://community.prismic.io 5 | about: Ask a question about the starter or raise an issue directly related to Prismic. You will usually get support there more quickly! 6 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 🙋‍♀️ Feature request 3 | about: Suggest an idea or enhancement for the starter. 4 | title: "" 5 | labels: "enhancement" 6 | assignees: "" 7 | --- 8 | 9 | 10 | 11 | ### Is your feature request related to a problem? Please describe. 12 | 13 | 14 | 15 | ### Describe the solution you'd like 16 | 17 | 18 | 19 | ### Describe alternatives you've considered 20 | 21 | 22 | 23 | ### Additional context 24 | 25 | 26 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Types of changes 4 | 5 | 6 | 7 | - [ ] Chore (a non-breaking change which is related to starter maintenance) 8 | - [ ] Bug fix (a non-breaking change which fixes an issue) 9 | - [ ] New feature (a non-breaking change which adds functionality) 10 | - [ ] Breaking change (fix or feature that would cause existing functionality to change) 11 | 12 | ## Description 13 | 14 | 15 | 16 | 17 | 18 | ## Checklist: 19 | 20 | 21 | 22 | 23 | - [ ] My change requires an update to the official documentation. 24 | - [ ] All [TSDoc](https://tsdoc.org) comments are up-to-date and new ones have been added where necessary. 25 | - [ ] All new and existing tests are passing. 26 | 27 | 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log* 3 | .nuxt 4 | .nitro 5 | .cache 6 | .output 7 | .env 8 | dist 9 | .DS_Store 10 | .fleet 11 | .idea 12 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | shamefully-hoist=true 2 | strict-peer-dependencies=false 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Prismic + Nuxt Multi-Lang Starter 2 | 3 | Want to see an example of a multi-language [Nuxt][nuxt] website using [Prismic][prismic]? Look no further! In this project, we provide all the code you need for a website with a homepage, information pages, and navigation. 4 | 5 | - **Demo**: [Open live demo][live-demo] 6 | - **Learn more about Prismic and Nuxt**: [Prismic Nuxt Documentation][prismic-docs] 7 | 8 |   9 | 10 | Screenshots of the site seen on deskop and mobile browsers 11 | 12 |   13 | 14 | ## 🚀 Quick Start 15 | 16 | To start a new project using this starter, run the following commands in your terminal: 17 | 18 | ```sh 19 | npx degit prismicio-community/nuxt-starter-prismic-multi-language your-project-name 20 | cd your-project-name 21 | npx @slicemachine/init@latest 22 | ``` 23 | 24 | The commands will do the following: 25 | 26 | 1. Start a new Nuxt project using this starter. 27 | 2. Ask you to log in to Prismic or [create an account][prismic-sign-up]. 28 | 3. Create a new Prismic content repository with sample content. 29 | 30 | When you're ready to start your project, run the following command: 31 | 32 | ```sh 33 | npm run dev 34 | ``` 35 | 36 | ## Documentation 37 | 38 | To learn how to work with your new project, [**see this starter's docs**][starter-docs]. 39 | 40 | To learn more about working with Prismic, [**see the Prismic docs**][prismic-docs]. 41 | 42 | ## License 43 | 44 | ``` 45 | Copyright 2013-2023 Prismic (https://prismic.io) 46 | 47 | Licensed under the Apache License, Version 2.0 (the "License"); 48 | you may not use this file except in compliance with the License. 49 | You may obtain a copy of the License at 50 | 51 | http://www.apache.org/licenses/LICENSE-2.0 52 | 53 | Unless required by applicable law or agreed to in writing, software 54 | distributed under the License is distributed on an "AS IS" BASIS, 55 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 56 | See the License for the specific language governing permissions and 57 | limitations under the License. 58 | ``` 59 | 60 | [prismic]: https://prismic.io 61 | [prismic-docs]: https://prismic.io/docs/nuxt-3-setup 62 | [prismic-sign-up]: https://prismic.io/dashboard/signup 63 | [starter-docs]: ./docs/README.md 64 | [nuxt]: https://nuxt.com 65 | [live-demo]: https://nuxt-starter-prismic-multi-language.vercel.app 66 | -------------------------------------------------------------------------------- /app/components/Bounded.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 33 | -------------------------------------------------------------------------------- /app/components/Footer.vue: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /app/components/Header.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 49 | -------------------------------------------------------------------------------- /app/components/Heading.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 27 | -------------------------------------------------------------------------------- /app/components/SignUpForm.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 61 | -------------------------------------------------------------------------------- /app/composables/useAlternateLanguages.ts: -------------------------------------------------------------------------------- 1 | import type { Content } from '@prismicio/client' 2 | 3 | export const useAlternateLanguages = () => { 4 | return useState(() => []) 5 | } -------------------------------------------------------------------------------- /app/composables/useNavigation.ts: -------------------------------------------------------------------------------- 1 | export const useNavigation = () => { 2 | const { locale } = useI18n() 3 | const prismic = usePrismic() 4 | return useAsyncData( 5 | '$navigation', 6 | () => prismic.client.getSingle('navigation', { lang: locale.value}), 7 | { watch: [locale]} 8 | ).data 9 | } -------------------------------------------------------------------------------- /app/composables/useSettings.ts: -------------------------------------------------------------------------------- 1 | export const useSettings = () => { 2 | const { locale } = useI18n() 3 | const prismic = usePrismic() 4 | return useAsyncData( 5 | '$settings', 6 | () => prismic.client.getSingle('settings', { lang: locale.value}), 7 | { watch: [locale]} 8 | ).data 9 | } -------------------------------------------------------------------------------- /app/layouts/default.vue: -------------------------------------------------------------------------------- 1 | 32 | -------------------------------------------------------------------------------- /app/pages/[uid].vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 28 | -------------------------------------------------------------------------------- /app/pages/index.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 26 | -------------------------------------------------------------------------------- /app/pages/slice-simulator.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 14 | -------------------------------------------------------------------------------- /app/prismic/linkResolver.ts: -------------------------------------------------------------------------------- 1 | import type { LinkResolverFunction } from '@prismicio/client'; 2 | 3 | const linkResolver: LinkResolverFunction = (doc) => { 4 | const prefix = doc.lang === 'en-us' ? '' : `/${doc.lang}` 5 | 6 | switch (doc.type) { 7 | case 'page': 8 | return doc.uid === 'home' ? prefix || '/' : `${prefix}/${doc.uid}` 9 | default: 10 | return prefix || '/' 11 | } 12 | } 13 | 14 | export default linkResolver -------------------------------------------------------------------------------- /app/prismic/richTextSerializer.ts: -------------------------------------------------------------------------------- 1 | import type { HTMLRichTextMapSerializer } from '@prismicio/client'; 2 | 3 | const serializer: HTMLRichTextMapSerializer = { 4 | paragraph: ({ children }) => 5 | /* html */ `

${children}

`, 6 | oList: ({ children }) => 7 | /* html */ `
    ${children}
`, 8 | oListItem: ({ children }) => 9 | /* html */ `
  • ${children}
  • `, 10 | list: ({ children }) => 11 | /* html */ ``, 12 | listItem: ({ children }) => 13 | /* html */ `
  • ${children}
  • `, 14 | preformatted: ({ children }) => 15 | /* html */ `
    ${children}
    `, 16 | strong: ({ children }) => 17 | /* html */ `${children}`, 18 | hyperlink: ({ children, node }) => 19 | /* html */`${children}` 20 | } 21 | 22 | export default serializer; -------------------------------------------------------------------------------- /app/slices/Hero/index.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 51 | -------------------------------------------------------------------------------- /app/slices/Hero/mocks.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__TYPE__": "SharedSliceContent", 4 | "variation": "default", 5 | "primary": { 6 | "text": { 7 | "__TYPE__": "StructuredTextContent", 8 | "value": [ 9 | { 10 | "type": "paragraph", 11 | "content": { 12 | "text": "Exercitation sint amet quis do aute in esse anim nostrud." 13 | } 14 | } 15 | ] 16 | }, 17 | "image": { 18 | "__TYPE__": "ImageContent", 19 | "origin": { 20 | "id": "main", 21 | "url": "https://images.unsplash.com/photo-1496181133206-80ce9b88a853", 22 | "width": 5243, 23 | "height": 3495 24 | }, 25 | "url": "https://images.unsplash.com/photo-1496181133206-80ce9b88a853", 26 | "width": 5243, 27 | "height": 3495, 28 | "edit": { 29 | "zoom": 1, 30 | "crop": { 31 | "x": 0, 32 | "y": 0 33 | }, 34 | "background": "transparent" 35 | }, 36 | "thumbnails": {} 37 | } 38 | }, 39 | "items": [ 40 | { 41 | "__TYPE__": "GroupItemContent", 42 | "value": [] 43 | } 44 | ] 45 | }, 46 | { 47 | "__TYPE__": "SharedSliceContent", 48 | "variation": "withButton", 49 | "primary": { 50 | "text": { 51 | "__TYPE__": "StructuredTextContent", 52 | "value": [ 53 | { 54 | "type": "paragraph", 55 | "content": { 56 | "text": "Pariatur nulla enim dolor consequat voluptate. Cillum cupidatat anim excepteur eu aute ad ullamco cupidatat culpa pariatur duis quis. Elit commodo nostrud qui consectetur amet ullamco deserunt eiusmod incididunt officia commodo pariatur." 57 | } 58 | } 59 | ] 60 | }, 61 | "buttonText": { 62 | "__TYPE__": "FieldContent", 63 | "value": "slipped", 64 | "type": "Text" 65 | }, 66 | "buttonLink": { 67 | "__TYPE__": "LinkContent", 68 | "value": { 69 | "__TYPE__": "ExternalLink", 70 | "url": "http://google.com" 71 | } 72 | }, 73 | "image": { 74 | "__TYPE__": "ImageContent", 75 | "origin": { 76 | "id": "main", 77 | "url": "https://images.unsplash.com/photo-1491975474562-1f4e30bc9468", 78 | "width": 4000, 79 | "height": 6000 80 | }, 81 | "url": "https://images.unsplash.com/photo-1491975474562-1f4e30bc9468", 82 | "width": 4000, 83 | "height": 6000, 84 | "edit": { 85 | "zoom": 1, 86 | "crop": { 87 | "x": 0, 88 | "y": 0 89 | }, 90 | "background": "transparent" 91 | }, 92 | "thumbnails": {} 93 | } 94 | }, 95 | "items": [ 96 | { 97 | "__TYPE__": "GroupItemContent", 98 | "value": [] 99 | } 100 | ] 101 | } 102 | ] -------------------------------------------------------------------------------- /app/slices/Hero/model.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "hero", 3 | "type": "SharedSlice", 4 | "name": "Hero", 5 | "description": "Hero", 6 | "variations": [ 7 | { 8 | "id": "default", 9 | "name": "Default", 10 | "docURL": "...", 11 | "version": "sktwi1xtmkfgx8626", 12 | "description": "Hero", 13 | "primary": { 14 | "text": { 15 | "type": "StructuredText", 16 | "config": { 17 | "label": "Text", 18 | "placeholder": "Introductory text for the page", 19 | "allowTargetBlank": true, 20 | "multi": "paragraph,em,strong,heading1,hyperlink" 21 | } 22 | }, 23 | "image": { 24 | "type": "Image", 25 | "config": { 26 | "label": "Image", 27 | "constraint": {}, 28 | "thumbnails": [] 29 | } 30 | } 31 | }, 32 | "items": {}, 33 | "imageUrl": "https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format" 34 | }, 35 | { 36 | "id": "withButton", 37 | "name": "With Button", 38 | "docURL": "...", 39 | "version": "sktwi1xtmkfgx8626", 40 | "description": "Hero", 41 | "primary": { 42 | "text": { 43 | "type": "StructuredText", 44 | "config": { 45 | "label": "Text", 46 | "placeholder": "Introductory text for the page", 47 | "allowTargetBlank": true, 48 | "multi": "paragraph,em,strong,heading1,hyperlink" 49 | } 50 | }, 51 | "buttonText": { 52 | "type": "Text", 53 | "config": { 54 | "label": "Button Text", 55 | "placeholder": "" 56 | } 57 | }, 58 | "buttonLink": { 59 | "type": "Link", 60 | "config": { 61 | "label": "Button Link", 62 | "placeholder": "", 63 | "select": null 64 | } 65 | }, 66 | "image": { 67 | "type": "Image", 68 | "config": { 69 | "label": "Image", 70 | "constraint": {}, 71 | "thumbnails": [] 72 | } 73 | } 74 | }, 75 | "items": {}, 76 | "imageUrl": "https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format" 77 | } 78 | ] 79 | } -------------------------------------------------------------------------------- /app/slices/Hero/screenshot-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prismicio-community/nuxt-starter-prismic-multi-language/fa5715b4701c3543e297075e3fef0b5a51b7c40b/app/slices/Hero/screenshot-default.png -------------------------------------------------------------------------------- /app/slices/Hero/screenshot-withButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prismicio-community/nuxt-starter-prismic-multi-language/fa5715b4701c3543e297075e3fef0b5a51b7c40b/app/slices/Hero/screenshot-withButton.png -------------------------------------------------------------------------------- /app/slices/Image/index.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 34 | -------------------------------------------------------------------------------- /app/slices/Image/mocks.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__TYPE__": "SharedSliceContent", 4 | "variation": "white", 5 | "primary": { 6 | "image": { 7 | "__TYPE__": "ImageContent", 8 | "origin": { 9 | "id": "main", 10 | "url": "https://images.unsplash.com/photo-1596195689404-24d8a8d1c6ea", 11 | "width": 5000, 12 | "height": 4613 13 | }, 14 | "url": "https://images.unsplash.com/photo-1596195689404-24d8a8d1c6ea", 15 | "width": 5000, 16 | "height": 4613, 17 | "edit": { 18 | "zoom": 1, 19 | "crop": { 20 | "x": 0, 21 | "y": 0 22 | }, 23 | "background": "transparent" 24 | }, 25 | "thumbnails": {} 26 | }, 27 | "withAccent": { 28 | "__TYPE__": "BooleanContent", 29 | "value": false 30 | } 31 | }, 32 | "items": [ 33 | { 34 | "__TYPE__": "GroupItemContent", 35 | "value": [] 36 | } 37 | ] 38 | }, 39 | { 40 | "__TYPE__": "SharedSliceContent", 41 | "variation": "lightSlate", 42 | "primary": { 43 | "image": { 44 | "__TYPE__": "ImageContent", 45 | "origin": { 46 | "id": "main", 47 | "url": "https://images.unsplash.com/photo-1547394765-185e1e68f34e", 48 | "width": 6000, 49 | "height": 4000 50 | }, 51 | "url": "https://images.unsplash.com/photo-1547394765-185e1e68f34e", 52 | "width": 6000, 53 | "height": 4000, 54 | "edit": { 55 | "zoom": 1, 56 | "crop": { 57 | "x": 0, 58 | "y": 0 59 | }, 60 | "background": "transparent" 61 | }, 62 | "thumbnails": {} 63 | }, 64 | "withAccent": { 65 | "__TYPE__": "BooleanContent", 66 | "value": false 67 | } 68 | }, 69 | "items": [ 70 | { 71 | "__TYPE__": "GroupItemContent", 72 | "value": [] 73 | } 74 | ] 75 | } 76 | ] -------------------------------------------------------------------------------- /app/slices/Image/model.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "image", 3 | "type": "SharedSlice", 4 | "name": "Image", 5 | "description": "Image", 6 | "variations": [ 7 | { 8 | "id": "white", 9 | "name": "White", 10 | "docURL": "...", 11 | "version": "sktwi1xtmkfgx8626", 12 | "description": "Image", 13 | "primary": { 14 | "image": { 15 | "type": "Image", 16 | "config": { 17 | "label": "Image", 18 | "constraint": {}, 19 | "thumbnails": [] 20 | } 21 | }, 22 | "withAccent": { 23 | "type": "Boolean", 24 | "config": { 25 | "label": "With Accent", 26 | "placeholder_false": "No", 27 | "placeholder_true": "Yes", 28 | "default_value": true 29 | } 30 | } 31 | }, 32 | "items": {}, 33 | "imageUrl": "https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format" 34 | }, 35 | { 36 | "id": "lightSlate", 37 | "name": "Light Slate", 38 | "docURL": "...", 39 | "version": "sktwi1xtmkfgx8626", 40 | "description": "Image", 41 | "primary": { 42 | "image": { 43 | "type": "Image", 44 | "config": { 45 | "constraint": {}, 46 | "thumbnails": [], 47 | "label": "Image" 48 | } 49 | }, 50 | "withAccent": { 51 | "type": "Boolean", 52 | "config": { 53 | "label": "With Accent", 54 | "placeholder_false": "No", 55 | "placeholder_true": "Yes", 56 | "default_value": true 57 | } 58 | } 59 | }, 60 | "items": {}, 61 | "imageUrl": "https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format" 62 | } 63 | ] 64 | } -------------------------------------------------------------------------------- /app/slices/Image/screenshot-lightSlate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prismicio-community/nuxt-starter-prismic-multi-language/fa5715b4701c3543e297075e3fef0b5a51b7c40b/app/slices/Image/screenshot-lightSlate.png -------------------------------------------------------------------------------- /app/slices/Image/screenshot-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prismicio-community/nuxt-starter-prismic-multi-language/fa5715b4701c3543e297075e3fef0b5a51b7c40b/app/slices/Image/screenshot-white.png -------------------------------------------------------------------------------- /app/slices/TextWithFeatures/index.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 59 | 60 | -------------------------------------------------------------------------------- /app/slices/TextWithFeatures/mocks.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__TYPE__": "SharedSliceContent", 4 | "variation": "default", 5 | "primary": { 6 | "icon": { 7 | "origin": { 8 | "id": "main", 9 | "url": "https://images.unsplash.com/photo-1515378791036-0648a3ef77b2", 10 | "width": 5616, 11 | "height": 3744 12 | }, 13 | "url": "https://images.unsplash.com/photo-1515378791036-0648a3ef77b2", 14 | "width": 5616, 15 | "height": 3744, 16 | "edit": { 17 | "zoom": 1, 18 | "crop": { 19 | "x": 0, 20 | "y": 0 21 | }, 22 | "background": "transparent" 23 | }, 24 | "credits": null, 25 | "alt": null, 26 | "__TYPE__": "ImageContent", 27 | "thumbnails": {} 28 | }, 29 | "text": { 30 | "__TYPE__": "StructuredTextContent", 31 | "value": [ 32 | { 33 | "type": "paragraph", 34 | "content": { 35 | "text": "Fugiat eiusmod cillum ad culpa ullamco cupidatat tempor id nisi commodo fugiat aute velit tempor tempor." 36 | } 37 | } 38 | ] 39 | }, 40 | "features": { 41 | "__TYPE__": "GroupContentType", 42 | "value": [ 43 | { 44 | "__TYPE__": "GroupItemContent", 45 | "value": [ 46 | [ 47 | "description", 48 | { 49 | "__TYPE__": "StructuredTextContent", 50 | "value": [ 51 | { 52 | "type": "paragraph", 53 | "content": { 54 | "text": "Minim nisi nulla deserunt. Nulla esse aliquip quis et quis id nulla." 55 | } 56 | } 57 | ] 58 | } 59 | ] 60 | ] 61 | } 62 | ] 63 | } 64 | }, 65 | "items": [] 66 | } 67 | ] -------------------------------------------------------------------------------- /app/slices/TextWithFeatures/model.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "text_with_features", 3 | "type": "SharedSlice", 4 | "name": "TextWithFeatures", 5 | "description": "TextWithFeatures", 6 | "variations": [ 7 | { 8 | "id": "default", 9 | "name": "Default", 10 | "docURL": "...", 11 | "version": "sktwi1xtmkfgx8626", 12 | "description": "TextWithFeatures", 13 | "primary": { 14 | "icon": { 15 | "type": "Image", 16 | "config": { 17 | "label": "Icon", 18 | "constraint": {}, 19 | "thumbnails": [] 20 | } 21 | }, 22 | "text": { 23 | "type": "StructuredText", 24 | "config": { 25 | "label": "Text", 26 | "placeholder": "Primary text with rich formatting", 27 | "allowTargetBlank": true, 28 | "multi": "paragraph,preformatted,heading1,heading2,heading3,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl" 29 | } 30 | }, 31 | "features": { 32 | "type": "Group", 33 | "config": { 34 | "label": "Features", 35 | "repeat": true, 36 | "fields": { 37 | "description": { 38 | "type": "StructuredText", 39 | "config": { 40 | "label": "Feature Description", 41 | "placeholder": "Description of a feature", 42 | "allowTargetBlank": true, 43 | "multi": "paragraph,preformatted,heading3,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl" 44 | } 45 | } 46 | } 47 | } 48 | } 49 | }, 50 | "items": {}, 51 | "imageUrl": "https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format" 52 | } 53 | ] 54 | } -------------------------------------------------------------------------------- /app/slices/TextWithFeatures/screenshot-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prismicio-community/nuxt-starter-prismic-multi-language/fa5715b4701c3543e297075e3fef0b5a51b7c40b/app/slices/TextWithFeatures/screenshot-default.png -------------------------------------------------------------------------------- /app/slices/TextWithImage/index.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 47 | -------------------------------------------------------------------------------- /app/slices/TextWithImage/mocks.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "__TYPE__": "SharedSliceContent", 4 | "variation": "default", 5 | "primary": { 6 | "text": { 7 | "__TYPE__": "StructuredTextContent", 8 | "value": [ 9 | { 10 | "type": "paragraph", 11 | "content": { 12 | "text": "Massa sapien faucibus et molestie ac feugiat sed lectus. Dignissim cras tincidunt lobortis feugiat vivamus at augue. Pharetra pharetra massa massa ultricies.", 13 | "spans": [] 14 | }, 15 | "direction": "ltr" 16 | } 17 | ] 18 | }, 19 | "image": { 20 | "origin": { 21 | "id": "bKfkhVRAJTQ", 22 | "url": "https://images.unsplash.com/photo-1638742385167-96fc60e12f59?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMzc0NjN8MHwxfHNlYXJjaHwyOXx8Z3JhZGllbnR8ZW58MHx8fHwxNjcyOTM5MzI3&ixlib=rb-4.0.3&q=80", 23 | "width": 5760, 24 | "height": 3240 25 | }, 26 | "url": "https://images.unsplash.com/photo-1638742385167-96fc60e12f59?crop=entropy&cs=tinysrgb&fm=jpg&ixid=MnwzMzc0NjN8MHwxfHNlYXJjaHwyOXx8Z3JhZGllbnR8ZW58MHx8fHwxNjcyOTM5MzI3&ixlib=rb-4.0.3&q=80", 27 | "width": 5760, 28 | "height": 3240, 29 | "edit": { 30 | "background": "transparent", 31 | "zoom": 1, 32 | "crop": { 33 | "x": 0, 34 | "y": 0 35 | } 36 | }, 37 | "credits": null, 38 | "alt": "A colorful gradient", 39 | "__TYPE__": "ImageContent", 40 | "thumbnails": {} 41 | } 42 | }, 43 | "items": [ 44 | { 45 | "__TYPE__": "GroupItemContent", 46 | "value": [] 47 | } 48 | ] 49 | } 50 | ] -------------------------------------------------------------------------------- /app/slices/TextWithImage/model.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "text_with_image", 3 | "type": "SharedSlice", 4 | "name": "TextWithImage", 5 | "description": "TextWithImage", 6 | "variations": [ 7 | { 8 | "id": "default", 9 | "name": "Default", 10 | "docURL": "...", 11 | "version": "sktwi1xtmkfgx8626", 12 | "description": "TextWithImage", 13 | "primary": { 14 | "text": { 15 | "type": "StructuredText", 16 | "config": { 17 | "label": "Text", 18 | "placeholder": "Text displayed next to image", 19 | "allowTargetBlank": true, 20 | "multi": "paragraph,preformatted,heading1,heading2,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl" 21 | } 22 | }, 23 | "image": { 24 | "type": "Image", 25 | "config": { 26 | "constraint": {}, 27 | "thumbnails": [], 28 | "label": "Image" 29 | } 30 | } 31 | }, 32 | "items": {}, 33 | "imageUrl": "https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format" 34 | } 35 | ] 36 | } -------------------------------------------------------------------------------- /app/slices/TextWithImage/screenshot-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prismicio-community/nuxt-starter-prismic-multi-language/fa5715b4701c3543e297075e3fef0b5a51b7c40b/app/slices/TextWithImage/screenshot-default.png -------------------------------------------------------------------------------- /app/slices/index.ts: -------------------------------------------------------------------------------- 1 | // Code generated by Slice Machine. DO NOT EDIT. 2 | 3 | import { defineAsyncComponent } from "vue"; 4 | import { defineSliceZoneComponents } from "@prismicio/vue"; 5 | 6 | export const components = defineSliceZoneComponents({ 7 | hero: defineAsyncComponent(() => import("./Hero/index.vue")), 8 | image: defineAsyncComponent(() => import("./Image/index.vue")), 9 | text_with_features: defineAsyncComponent( 10 | () => import("./TextWithFeatures/index.vue") 11 | ), 12 | text_with_image: defineAsyncComponent( 13 | () => import("./TextWithImage/index.vue") 14 | ), 15 | }); 16 | -------------------------------------------------------------------------------- /app/styles/global.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | body { 6 | @apply overflow-x-hidden antialiased; 7 | } 8 | 9 | [data-collapsible="true"].bg-white + [data-collapsible="true"].bg-white, 10 | [data-collapsible="true"].bg-slate-100 11 | + [data-collapsible="true"].bg-slate-100 { 12 | @apply pt-0 md:pt-0; 13 | } 14 | -------------------------------------------------------------------------------- /customtypes/navigation/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "navigation", 3 | "label": "Navigation", 4 | "format": "custom", 5 | "repeatable": false, 6 | "status": true, 7 | "json": { 8 | "Main": { 9 | "links": { 10 | "type": "Group", 11 | "config": { 12 | "label": "Links", 13 | "fields": { 14 | "label": { 15 | "type": "StructuredText", 16 | "config": { 17 | "label": "Label", 18 | "placeholder": "Optional - Label for the link", 19 | "allowTargetBlank": false, 20 | "single": "heading3" 21 | } 22 | }, 23 | "link": { 24 | "type": "Link", 25 | "config": { 26 | "label": "Link", 27 | "placeholder": "Link for navigation item", 28 | "select": null 29 | } 30 | } 31 | } 32 | } 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /customtypes/navigation/mocks.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "links": { 4 | "__TYPE__": "GroupContentType", 5 | "value": [ 6 | { 7 | "__TYPE__": "GroupItemContent", 8 | "value": [ 9 | [ 10 | "label", 11 | { 12 | "__TYPE__": "StructuredTextContent", 13 | "value": [ 14 | { 15 | "type": "heading3", 16 | "content": { 17 | "text": "Possible" 18 | } 19 | } 20 | ] 21 | } 22 | ], 23 | [ 24 | "link", 25 | { 26 | "__TYPE__": "LinkContent", 27 | "value": { 28 | "__TYPE__": "ExternalLink", 29 | "url": "https://slicemachine.dev" 30 | } 31 | } 32 | ] 33 | ] 34 | } 35 | ] 36 | } 37 | } 38 | ] -------------------------------------------------------------------------------- /customtypes/page/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "page", 3 | "label": "Page", 4 | "format": "page", 5 | "repeatable": true, 6 | "status": true, 7 | "json": { 8 | "Main": { 9 | "uid": { 10 | "type": "UID", 11 | "config": { "label": "UID", "placeholder": "URL slug for the page" } 12 | }, 13 | "title": { 14 | "type": "StructuredText", 15 | "config": { 16 | "label": "Title", 17 | "placeholder": "Title for the page", 18 | "allowTargetBlank": false, 19 | "single": "heading1" 20 | } 21 | }, 22 | "slices": { 23 | "type": "Slices", 24 | "fieldset": "Slice Zone", 25 | "config": { 26 | "choices": { 27 | "hero": { "type": "SharedSlice" }, 28 | "image": { "type": "SharedSlice" }, 29 | "text_with_features": { "type": "SharedSlice" }, 30 | "text_with_image": { "type": "SharedSlice" } 31 | } 32 | } 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /customtypes/page/mocks.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "uid": { 4 | "__TYPE__": "UIDContent", 5 | "value": "bare" 6 | }, 7 | "title": { 8 | "__TYPE__": "StructuredTextContent", 9 | "value": [ 10 | { 11 | "type": "heading1", 12 | "content": { 13 | "text": "Matter" 14 | } 15 | } 16 | ] 17 | }, 18 | "slices": { 19 | "__TYPE__": "SliceContentType", 20 | "value": [ 21 | { 22 | "key": "hero$be5f5ca6-3c66-4d44-918b-3f9831d1e509", 23 | "name": "hero", 24 | "widget": { 25 | "__TYPE__": "SharedSliceContent", 26 | "variation": "default", 27 | "primary": { 28 | "text": { 29 | "__TYPE__": "StructuredTextContent", 30 | "value": [ 31 | { 32 | "type": "paragraph", 33 | "content": { 34 | "text": "Eu esse laboris amet ex deserunt aute quis nostrud eu. Laboris qui duis voluptate." 35 | } 36 | } 37 | ] 38 | }, 39 | "image": { 40 | "__TYPE__": "ImageContent", 41 | "origin": { 42 | "id": "main", 43 | "url": "https://images.unsplash.com/photo-1560762484-813fc97650a0", 44 | "width": 3344, 45 | "height": 2509 46 | }, 47 | "url": "https://images.unsplash.com/photo-1560762484-813fc97650a0", 48 | "width": 3344, 49 | "height": 2509, 50 | "edit": { 51 | "zoom": 1, 52 | "crop": { 53 | "x": 0, 54 | "y": 0 55 | }, 56 | "background": "transparent" 57 | }, 58 | "thumbnails": {} 59 | } 60 | }, 61 | "items": [ 62 | { 63 | "__TYPE__": "GroupItemContent", 64 | "value": [] 65 | } 66 | ] 67 | } 68 | }, 69 | { 70 | "key": "image$d626cccb-6a4f-4993-a6aa-647c42c567ad", 71 | "name": "image", 72 | "widget": { 73 | "__TYPE__": "SharedSliceContent", 74 | "variation": "white", 75 | "primary": { 76 | "image": { 77 | "__TYPE__": "ImageContent", 78 | "origin": { 79 | "id": "main", 80 | "url": "https://images.unsplash.com/photo-1494173853739-c21f58b16055", 81 | "width": 3277, 82 | "height": 4092 83 | }, 84 | "url": "https://images.unsplash.com/photo-1494173853739-c21f58b16055", 85 | "width": 3277, 86 | "height": 4092, 87 | "edit": { 88 | "zoom": 1, 89 | "crop": { 90 | "x": 0, 91 | "y": 0 92 | }, 93 | "background": "transparent" 94 | }, 95 | "thumbnails": {} 96 | }, 97 | "withAccent": { 98 | "__TYPE__": "BooleanContent", 99 | "value": false 100 | } 101 | }, 102 | "items": [ 103 | { 104 | "__TYPE__": "GroupItemContent", 105 | "value": [] 106 | } 107 | ] 108 | } 109 | }, 110 | { 111 | "key": "text_with_features$682c14d7-0829-47e2-8347-607eb8a9aeef", 112 | "name": "text_with_features", 113 | "widget": { 114 | "__TYPE__": "SharedSliceContent", 115 | "variation": "default", 116 | "primary": { 117 | "icon": { 118 | "__TYPE__": "ImageContent", 119 | "origin": { 120 | "id": "main", 121 | "url": "https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d", 122 | "width": 4076, 123 | "height": 2712 124 | }, 125 | "url": "https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d", 126 | "width": 4076, 127 | "height": 2712, 128 | "edit": { 129 | "zoom": 1, 130 | "crop": { 131 | "x": 0, 132 | "y": 0 133 | }, 134 | "background": "transparent" 135 | }, 136 | "thumbnails": {} 137 | }, 138 | "text": { 139 | "__TYPE__": "StructuredTextContent", 140 | "value": [ 141 | { 142 | "type": "paragraph", 143 | "content": { 144 | "text": "Tempor ut ex tempor laborum minim eu occaecat enim ea anim esse anim sunt cillum. Laboris fugiat anim Lorem tempor id aliqua proident mollit ad aliqua sit laborum. Sint minim ullamco voluptate consectetur velit aliquip labore." 145 | } 146 | } 147 | ] 148 | } 149 | }, 150 | "items": [ 151 | { 152 | "__TYPE__": "GroupItemContent", 153 | "value": [ 154 | [ 155 | "featureDescription", 156 | { 157 | "__TYPE__": "StructuredTextContent", 158 | "value": [ 159 | { 160 | "type": "paragraph", 161 | "content": { 162 | "text": "Nisi sunt aliquip sit minim voluptate magna ullamco nulla reprehenderit in mollit dolore id." 163 | } 164 | } 165 | ] 166 | } 167 | ] 168 | ] 169 | } 170 | ] 171 | } 172 | }, 173 | { 174 | "key": "text_with_image$21f40c38-8468-43c8-8cb3-373ad7a194e2", 175 | "name": "text_with_image", 176 | "widget": { 177 | "__TYPE__": "SharedSliceContent", 178 | "variation": "default", 179 | "primary": { 180 | "text": { 181 | "__TYPE__": "StructuredTextContent", 182 | "value": [ 183 | { 184 | "type": "paragraph", 185 | "content": { 186 | "text": "Sint amet culpa cillum. Ullamco proident ut pariatur exercitation fugiat eiusmod in quis magna dolor. Nisi minim ullamco minim in et dolore nisi reprehenderit fugiat ipsum fugiat enim." 187 | } 188 | } 189 | ] 190 | }, 191 | "image": { 192 | "__TYPE__": "ImageContent", 193 | "origin": { 194 | "id": "main", 195 | "url": "https://images.unsplash.com/photo-1593642633279-1796119d5482", 196 | "width": 4016, 197 | "height": 6016 198 | }, 199 | "url": "https://images.unsplash.com/photo-1593642633279-1796119d5482", 200 | "width": 4016, 201 | "height": 6016, 202 | "edit": { 203 | "zoom": 1, 204 | "crop": { 205 | "x": 0, 206 | "y": 0 207 | }, 208 | "background": "transparent" 209 | }, 210 | "thumbnails": {} 211 | } 212 | }, 213 | "items": [ 214 | { 215 | "__TYPE__": "GroupItemContent", 216 | "value": [] 217 | } 218 | ] 219 | } 220 | } 221 | ] 222 | } 223 | } 224 | ] -------------------------------------------------------------------------------- /customtypes/settings/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "settings", 3 | "label": "Settings", 4 | "format": "custom", 5 | "repeatable": false, 6 | "status": true, 7 | "json": { 8 | "Main": { 9 | "siteTitle": { 10 | "type": "StructuredText", 11 | "config": { 12 | "label": "Site Title", 13 | "placeholder": "Title of the site", 14 | "allowTargetBlank": false, 15 | "single": "heading1" 16 | } 17 | }, 18 | "logo": { 19 | "type": "Image", 20 | "config": { "constraint": {}, "thumbnails": [], "label": "Logo" } 21 | }, 22 | "newsletterDescription": { 23 | "type": "StructuredText", 24 | "config": { 25 | "label": "Newsletter Description", 26 | "placeholder": "Text above the sign up form", 27 | "allowTargetBlank": true, 28 | "multi": "heading1,paragraph,strong,em,hyperlink,list-item,o-list-item" 29 | } 30 | }, 31 | "newsletterDisclaimer": { 32 | "type": "StructuredText", 33 | "config": { 34 | "label": "Newsletter Disclaimer", 35 | "placeholder": "Small text below sign up form", 36 | "allowTargetBlank": true, 37 | "multi": "paragraph,em,strong,hyperlink" 38 | } 39 | } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /customtypes/settings/mocks.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "siteTitle": { 4 | "__TYPE__": "StructuredTextContent", 5 | "value": [ 6 | { 7 | "type": "heading1", 8 | "content": { 9 | "text": "Disappear" 10 | } 11 | } 12 | ] 13 | }, 14 | "logo": { 15 | "__TYPE__": "ImageContent", 16 | "origin": { 17 | "id": "main", 18 | "url": "https://images.unsplash.com/photo-1494173853739-c21f58b16055", 19 | "width": 3277, 20 | "height": 4092 21 | }, 22 | "url": "https://images.unsplash.com/photo-1494173853739-c21f58b16055", 23 | "width": 3277, 24 | "height": 4092, 25 | "edit": { 26 | "zoom": 1, 27 | "crop": { 28 | "x": 0, 29 | "y": 0 30 | }, 31 | "background": "transparent" 32 | }, 33 | "thumbnails": {} 34 | }, 35 | "newsletterDescription": { 36 | "__TYPE__": "StructuredTextContent", 37 | "value": [ 38 | { 39 | "type": "paragraph", 40 | "content": { 41 | "text": "Laboris esse labore incididunt tempor est magna cillum aliquip. Cillum mollit ut irure mollit." 42 | } 43 | } 44 | ] 45 | }, 46 | "newsletterDisclaimer": { 47 | "__TYPE__": "StructuredTextContent", 48 | "value": [ 49 | { 50 | "type": "paragraph", 51 | "content": { 52 | "text": "Do ullamco ex id minim esse dolor laborum. Duis ipsum id incididunt consectetur ipsum dolore anim. Id deserunt elit quis in." 53 | } 54 | } 55 | ] 56 | } 57 | } 58 | ] -------------------------------------------------------------------------------- /degit.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "action": "remove", 4 | "files": [ 5 | ".github" 6 | ] 7 | } 8 | ] -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | # Prismic + Nuxt Multi-Language Starter 2 | 3 | This page covers how to use **Prismic + Nuxt Multi-Language Starter** with Prismic. 4 | 5 | - **Demo**: [Open live demo][live-demo] 6 | - **Learn more about Prismic and Nuxt**: [Prismic Nuxt Documentation][prismic-docs] 7 | 8 |   9 | 10 | Screenshots of the site seen on deskop and mobile browsers 11 | 12 |   13 | 14 | ## 🚀 Quick Start 15 | 16 | To start a new project using this starter, run the following commands in your terminal: 17 | 18 | ```sh 19 | npx degit prismicio-community/nuxt-starter-prismic-multi-language your-project-name 20 | cd your-project-name 21 | npx @slicemachine/init 22 | ``` 23 | 24 | The commands will do the following: 25 | 26 | 1. Start a new Nuxt project using this starter. 27 | 2. Ask you to log in to Prismic or [create an account][prismic-sign-up]. 28 | 3. Create a new Prismic content repository with sample content. 29 | 30 | When you're ready to start your project, run the following command: 31 | 32 | ```sh 33 | npm run dev 34 | ``` 35 | 36 | To learn more about working with Prismic, [**see the Prismic docs**](https://prismic.io/docs/nuxt-3-setup). 37 | 38 | ## Using and customizing your project 39 | 40 | To get started after creating your new project, go to [prismic.io/dashboard](https://prismic.io/dashboard), click on the repository for this website, and start editing. 41 | 42 | ### Create a page 43 | 44 | To create a page, click on the green pencil icon, then select **Page**. 45 | 46 | Your new page will be accessible by its URL, but it won't appear on the website automatically. To let users discover it, add it to the navigation. 47 | 48 | ### Update the navigation 49 | 50 | To add a page to your navigation menu, go to the document list and open the **Navigation** document. In the **Links** group, click **Add a new element in Links**. Select the page to add and fill in a label. 51 | 52 | ### Preview documents 53 | 54 | In your repository, go to _Settings > Previews_. Under _Create a New Preview_, fill in the three fields: 55 | 56 | - a name (like **Development** or **Production**) 57 | - the domain where your app is running (like or ) 58 | - `/api/preview` for the Link Resolver 59 | 60 | Now, go to a draft document and click the eye icon in the top-right corner. 61 | 62 | To learn more about how to configure previews, read [Preview Drafts in Nuxt](https://prismic.io/docs/technologies/nuxt-preview-drafts) in the Prismic documentation. 63 | 64 | ### Customize this website 65 | 66 | This website is preconfigured with Prismic. Functionality is provided by the `@nuxtjs/prismic` package, which makes Prismic utilities available throughout the app. Take a look at the code to see how it's used. 67 | 68 | ### Edit the code 69 | 70 | There are two steps to rendering content from Prismic in your Nuxt project: 71 | 72 | 1. Fetch content from the Prismic API 73 | 2. Template the content 74 | 75 | Here are some of the files in your project that you can edit: 76 | 77 | - `nuxt.config.ts` - The `prismic` property includes configurations for `@nuxtjs/prismic`. 78 | - `pages/index.vue` - This is the app homepage. It queries and renders a page document with the UID (unique identifier) "home" from the Prismic API. 79 | - `pages/[uid].vue` - This is the page component, which queries and renders a page document from your Prismic repository based on the UID. 80 | - `server/api/sign-up.post.ts` - This is the server function for your newsletter form. To allow signups, send a POST request to a newsletter service like Mailchimp. 81 | - `slices/\*/index.vue` - Each Slice in your project has an index.js file that renders the Slice component. Edit this file to customize your Slices. 82 | 83 | These are important files that you should leave as-is: 84 | 85 | - `pages/slice-simulator.vue` - Do not edit or delete this file. This file simulates your Slice components in development. 86 | - `slices/` - This directory contains Slice components, which are generated programmatically by Slice Machine. To customize a Slice template, you can edit the Slice's `index.ts` file. To add Slices, delete Slices, or edit Slice models, use Slice Machine (more info below). 87 | 88 | Learn more about how to edit your components with [Fetch Data in Nuxt](https://prismic.io/docs/nuxt-3-fetch-data) and [Template Content in Nuxt](https://prismic.io/docs/nuxt-3-template-content). 89 | 90 | Styling in this project is implemented with Tailwind CSS. See the [Tailwind docs](https://tailwindcss.com/docs) for more info. 91 | 92 | ### Deploy to the web 93 | 94 | To put your project online, see [Deploy your Nuxt App](https://prismic.io/docs/technologies/nuxt-deploy). 95 | 96 | ### Edit content models with Slice Machine 97 | 98 | This project includes an application called Slice Machine, which generates models for your Custom Types and Slices. Slice Machine stores the models locally in your codebase, so you can save and version them. It also syncs your models to Prismic. To learn how to use Slice Machine, read [Model Content in Nuxt](https://prismic.io/docs/content-modeling). 99 | 100 | If you change or add to your Custom Types, you'll need to update your route handling to match. To learn how to do that, read [Define Paths in Nuxt](https://prismic.io/docs/nuxt-3-define-routes). 101 | 102 | ## Learn more 103 | 104 | For the official Prismic documentation, see [Prismic's guide for Nuxt][prismic-docs] or the [technical references for the installed Prismic packages](https://prismic.io/docs/technologies/technical-references). 105 | 106 | [prismic]: https://prismic.io 107 | [prismic-docs]: https://prismic.io/docs/nuxt-3-setup 108 | [prismic-sign-up]: https://prismic.io/dashboard/signup 109 | [nuxt]: https://nuxt.com 110 | [live-demo]: https://nuxt-starter-prismic-multi-language.vercel.app 111 | -------------------------------------------------------------------------------- /documents/en-us/ZkdWZBIAACkA08xc=#=ZkdeMBIAACgA09kN=#=settings=#=YldhUhcAACgA9jsi=#=en-us=#=y.json: -------------------------------------------------------------------------------- 1 | {"siteTitle":[{"type":"heading1","content":{"text":"Todoop","spans":[]}}],"newsletterDescription":[{"type":"heading1","content":{"text":"Get notified","spans":[]}},{"type":"paragraph","content":{"text":"Get notified about updates and be the first to get early access to the new, safer and smarter way to archive your files.","spans":[]}}],"newsletterDisclaimer":[{"type":"paragraph","content":{"text":"By subscribing to our newsletter you accept to receive recurring emails about our product and our company","spans":[]}}],"logo":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":20,"origin":{"id":"ZkdcrSol0Zci9PlL","url":"https://i18n-24.cdn.prismic.io/i18n-24/ZkdcrSol0Zci9PlL_logo.svg","width":160,"height":20},"width":160,"thumbnails":{},"url":"https://i18n-24.cdn.prismic.io/i18n-24/ZkdcrSol0Zci9PlL_logo.svg"},"siteTitle_TYPE":"StructuredText","siteTitle_POSITION":0,"logo_TYPE":"Image","logo_POSITION":1,"newsletterDescription_TYPE":"StructuredText","newsletterDescription_POSITION":2,"newsletterDisclaimer_TYPE":"StructuredText","newsletterDisclaimer_POSITION":3,"uids_INTERNAL":[],"slugs_INTERNAL":["settings"]} -------------------------------------------------------------------------------- /documents/en-us/ZkdWZRIAACkA08xe=#=ZkdfNRIAACgA09q2=#=navigation=#=YldlaRcAACgA9k0q=#=en-us=#=y.json: -------------------------------------------------------------------------------- 1 | {"links":[{"label":[{"type":"heading3","content":{"text":"Home","spans":[]}}],"link":{"id":"ZkdWZhIAACMA08xo"}},{"label":[{"type":"heading3","content":{"text":"About","spans":[]}}],"link":{"id":"ZkdWZhIAACoA08xl"}}],"links_TYPE":"Group","links_POSITION":0,"links.label_TYPE":"StructuredText","links.label_POSITION":1,"links.link_TYPE":"Link","links.link_POSITION":2,"uids_INTERNAL":[],"slugs_INTERNAL":["navigation"]} -------------------------------------------------------------------------------- /documents/en-us/ZkdWZhIAACMA08xo=#=ZkdeWhIAACMA09lV=#=page=#=YldjQxcAACgA9kOy=#=en-us=#=y.json: -------------------------------------------------------------------------------- 1 | {"uid":"home","title":[{"type":"heading1","content":{"text":"Todoop – Keep your life organized","spans":[]}}],"slices":[{"key":"hero$c8333f95-8af0-472f-ad53-dfe58ff64b2a","value":{"primary":{"text":[{"type":"heading1","content":{"text":"Keep your life organized","spans":[]}},{"type":"paragraph","content":{"text":"Life can feel overwhelming, but it doesn’t have to. Todoop lets you keep track of everything in one place, so you can get it all done and enjoy more peace of mind along the way.","spans":[]}}],"buttonText":"Download the app","buttonLink":{"url":"https://prismic.io","preview":null},"image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":658,"origin":{"id":"Zkdcpyol0Zci9PlC","url":"https://images.prismic.io/i18n-24/Zkdcpyol0Zci9PlC_app--dark.jpg?auto=format,compress","width":1228,"height":658},"width":1228,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/Zkdcpyol0Zci9PlC_app--dark.jpg?auto=format,compress"}},"items":[{}],"variation":"withButton"}},{"key":"text_with_features$4b736702-9254-4be0-a452-d6bcc011d188","value":{"primary":{"icon":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":128,"origin":{"id":"Zkdcqyol0Zci9PlH","url":"https://i18n-24.cdn.prismic.io/i18n-24/Zkdcqyol0Zci9PlH_checkmark.svg","width":128,"height":128},"width":128,"thumbnails":{},"url":"https://i18n-24.cdn.prismic.io/i18n-24/Zkdcqyol0Zci9PlH_checkmark.svg"},"text":[{"type":"heading1","content":{"text":"The future of Todoop application","spans":[]}},{"type":"paragraph","content":{"text":"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mttis eroas. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non.","spans":[]}}],"features":[{"description":[{"type":"heading3","content":{"text":"Never worry about forgetting things again","spans":[]},"direction":"ltr"},{"type":"paragraph","content":{"text":"Let Todoist remember it all for you. You can get tasks out of your head and onto your to-do list anytime, anywhere, on any device – even offline.","spans":[]},"direction":"ltr"}]},{"description":[{"type":"heading3","content":{"text":"Todoist helps millions of people feel more in control of their lives","spans":[]},"direction":"ltr"},{"type":"paragraph","content":{"text":"Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Morbi in sem quis dui placerat ornare.","spans":[]},"direction":"ltr"}]},{"description":[{"type":"heading3","content":{"text":"Focus your energy on the right things","spans":[]},"direction":"ltr"},{"type":"paragraph","content":{"text":"Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Morbi in sem quis dui placerat ornare.","spans":[]},"direction":"ltr"}]}]},"items":[{"featureDescription":[{"type":"heading2","content":{"text":"Never worry about forgetting things again","spans":[]}},{"type":"paragraph","content":{"text":"Let Todoist remember it all for you. You can get tasks out of your head and onto your to-do list anytime, anywhere, on any device – even offline.","spans":[]}}]},{"featureDescription":[{"type":"heading2","content":{"text":"Todoist helps millions of people feel more in control of their lives","spans":[]}},{"type":"paragraph","content":{"text":"Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Morbi in sem quis dui placerat ornare.","spans":[]}}]},{"featureDescription":[{"type":"heading2","content":{"text":"Focus your energy on the right things","spans":[]}},{"type":"paragraph","content":{"text":"Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Morbi in sem quis dui placerat ornare.","spans":[]}}]}],"variation":"default"}},{"key":"image$b089a49b-e86b-4cf3-ba37-521dfde66422","value":{"primary":{"image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":1252,"origin":{"id":"ZkdcqCol0Zci9PlD","url":"https://images.prismic.io/i18n-24/ZkdcqCol0Zci9PlD_app--light.png?auto=format,compress","width":2256,"height":1252},"width":2256,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/ZkdcqCol0Zci9PlD_app--light.png?auto=format,compress"},"withAccent":true},"items":[{}],"variation":"lightSlate"}}],"meta_title":"Todoop – Keep your life organized","meta_description":"Life can feel overwhelming, but it doesn’t have to. Todoop lets you keep track of everything in one place, so you can get it all done and enjoy more peace of mind along the way.","meta_image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":7}},"height":1260,"origin":{"id":"Zkdcpyol0Zci9PlC","url":"https://images.prismic.io/i18n-24/Zkdcpyol0Zci9PlC_app--dark.jpg?auto=format,compress","width":1228,"height":658},"width":2400,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/Zkdcpyol0Zci9PlC_app--dark.jpg?auto=format%2Ccompress&rect=0%2C7%2C1228%2C645&w=2400&h=1260"},"slices.text_with_features.variations.default.items.featureDescription_TYPE":"StructuredText","uid_TYPE":"UID","uid_POSITION":0,"title_TYPE":"StructuredText","title_POSITION":1,"slices_TYPE":"Slices","slices_POSITION":2,"slices.hero_TYPE":"SharedSlice","slices.hero_POSITION":3,"slices.hero.variations.default.primary.text_TYPE":"StructuredText","slices.hero.variations.default.primary.text_POSITION":4,"slices.hero.variations.default.primary.image_TYPE":"Image","slices.hero.variations.default.primary.image_POSITION":5,"slices.hero.variations.withButton.primary.text_TYPE":"StructuredText","slices.hero.variations.withButton.primary.text_POSITION":6,"slices.hero.variations.withButton.primary.buttonText_TYPE":"Text","slices.hero.variations.withButton.primary.buttonText_POSITION":7,"slices.hero.variations.withButton.primary.buttonLink_TYPE":"Link","slices.hero.variations.withButton.primary.buttonLink_POSITION":8,"slices.hero.variations.withButton.primary.image_TYPE":"Image","slices.hero.variations.withButton.primary.image_POSITION":9,"slices.image_TYPE":"SharedSlice","slices.image_POSITION":10,"slices.image.variations.white.primary.image_TYPE":"Image","slices.image.variations.white.primary.image_POSITION":11,"slices.image.variations.white.primary.withAccent_TYPE":"Boolean","slices.image.variations.white.primary.withAccent_POSITION":12,"slices.image.variations.lightSlate.primary.image_TYPE":"Image","slices.image.variations.lightSlate.primary.image_POSITION":13,"slices.image.variations.lightSlate.primary.withAccent_TYPE":"Boolean","slices.image.variations.lightSlate.primary.withAccent_POSITION":14,"slices.text_with_features_TYPE":"SharedSlice","slices.text_with_features_POSITION":15,"slices.text_with_features.variations.default.primary.icon_TYPE":"Image","slices.text_with_features.variations.default.primary.icon_POSITION":16,"slices.text_with_features.variations.default.primary.text_TYPE":"StructuredText","slices.text_with_features.variations.default.primary.text_POSITION":17,"slices.text_with_features.variations.default.primary.features_TYPE":"Group","slices.text_with_features.variations.default.primary.features_POSITION":18,"slices.text_with_features.variations.default.primary.features.description_TYPE":"StructuredText","slices.text_with_features.variations.default.primary.features.description_POSITION":19,"slices.text_with_image_TYPE":"SharedSlice","slices.text_with_image_POSITION":20,"slices.text_with_image.variations.default.primary.text_TYPE":"StructuredText","slices.text_with_image.variations.default.primary.text_POSITION":21,"slices.text_with_image.variations.default.primary.image_TYPE":"Image","slices.text_with_image.variations.default.primary.image_POSITION":22,"meta_title_TYPE":"Text","meta_title_POSITION":23,"meta_description_TYPE":"Text","meta_description_POSITION":24,"meta_image_TYPE":"Image","meta_image_POSITION":25,"uids_INTERNAL":["home"],"slugs_INTERNAL":["todoop--keep-your-life-organized"]} -------------------------------------------------------------------------------- /documents/en-us/ZkdWZhIAACoA08xl=#=ZkdeihIAACgA09ml=#=page=#=YldlRhcAACkA9kyL=#=en-us=#=y.json: -------------------------------------------------------------------------------- 1 | {"meta_title":"About Todoop","meta_description":"Life can feel overwhelming, but it doesn’t have to. Todoist lets you keep track of everything in one place, so you can get it all done and enjoy more peace of mind along the way.","meta_image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":39}},"height":1260,"origin":{"id":"Zkdcriol0Zci9PlM","url":"https://images.prismic.io/i18n-24/Zkdcriol0Zci9PlM_office.jpg?auto=format,compress","width":2236,"height":1252},"width":2400,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/Zkdcriol0Zci9PlM_office.jpg?auto=format%2Ccompress&rect=0%2C39%2C2236%2C1174&w=2400&h=1260"},"uid":"about","title":[{"type":"heading1","content":{"text":"About Preview","spans":[]}}],"slices":[{"key":"hero$8feb2a99-735e-4cef-88de-2a226e39821c","value":{"primary":{"text":[{"type":"heading1","content":{"text":"About Todoop","spans":[]}},{"type":"paragraph","content":{"text":"Life can feel overwhelming, but it doesn’t have to. Todoist lets you keep track of everything in one place, so you can get it all done and enjoy more peace of mind along the way.","spans":[]}}],"buttonText":"Follow us on Twitter","buttonLink":{"url":"https://twitter.com/prismicio","preview":null}},"items":[{}],"variation":"withButton"}},{"key":"image$73fd1b1b-76d7-46f9-ab4c-93ba35ac6249","value":{"primary":{"image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":1252,"origin":{"id":"Zkdcriol0Zci9PlM","url":"https://images.prismic.io/i18n-24/Zkdcriol0Zci9PlM_office.jpg?auto=format,compress","width":2236,"height":1252},"width":2236,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/Zkdcriol0Zci9PlM_office.jpg?auto=format,compress"},"withAccent":false},"items":[{}],"variation":"white"}},{"key":"text_with_image$fdc28b62-b232-4ee7-8183-f6608cd9d9f1","value":{"primary":{"text":[{"type":"heading1","content":{"text":"The future of Todoop application","spans":[]}},{"type":"heading2","content":{"text":"Life can feel overwhelming, but it doesn’t have to. Todoist lets you keep track of everything in one place, so you can get it all done and enjoy more peace of mind along the way.","spans":[]}},{"type":"paragraph","content":{"text":"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mttis eroas. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non.","spans":[]}}],"image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":1214,"origin":{"id":"ZkdcrCol0Zci9PlK","url":"https://images.prismic.io/i18n-24/ZkdcrCol0Zci9PlK_laptop.png?auto=format,compress","width":912,"height":1214},"width":912,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/ZkdcrCol0Zci9PlK_laptop.png?auto=format,compress"}},"items":[{}],"variation":"default"}}],"uid_TYPE":"UID","uid_POSITION":0,"title_TYPE":"StructuredText","title_POSITION":1,"slices_TYPE":"Slices","slices_POSITION":2,"slices.hero_TYPE":"SharedSlice","slices.hero_POSITION":3,"slices.hero.variations.default.primary.text_TYPE":"StructuredText","slices.hero.variations.default.primary.text_POSITION":4,"slices.hero.variations.default.primary.image_TYPE":"Image","slices.hero.variations.default.primary.image_POSITION":5,"slices.hero.variations.withButton.primary.text_TYPE":"StructuredText","slices.hero.variations.withButton.primary.text_POSITION":6,"slices.hero.variations.withButton.primary.buttonText_TYPE":"Text","slices.hero.variations.withButton.primary.buttonText_POSITION":7,"slices.hero.variations.withButton.primary.buttonLink_TYPE":"Link","slices.hero.variations.withButton.primary.buttonLink_POSITION":8,"slices.hero.variations.withButton.primary.image_TYPE":"Image","slices.hero.variations.withButton.primary.image_POSITION":9,"slices.image_TYPE":"SharedSlice","slices.image_POSITION":10,"slices.image.variations.white.primary.image_TYPE":"Image","slices.image.variations.white.primary.image_POSITION":11,"slices.image.variations.white.primary.withAccent_TYPE":"Boolean","slices.image.variations.white.primary.withAccent_POSITION":12,"slices.image.variations.lightSlate.primary.image_TYPE":"Image","slices.image.variations.lightSlate.primary.image_POSITION":13,"slices.image.variations.lightSlate.primary.withAccent_TYPE":"Boolean","slices.image.variations.lightSlate.primary.withAccent_POSITION":14,"slices.text_with_features_TYPE":"SharedSlice","slices.text_with_features_POSITION":15,"slices.text_with_features.variations.default.primary.icon_TYPE":"Image","slices.text_with_features.variations.default.primary.icon_POSITION":16,"slices.text_with_features.variations.default.primary.text_TYPE":"StructuredText","slices.text_with_features.variations.default.primary.text_POSITION":17,"slices.text_with_features.variations.default.primary.features_TYPE":"Group","slices.text_with_features.variations.default.primary.features_POSITION":18,"slices.text_with_features.variations.default.primary.features.description_TYPE":"StructuredText","slices.text_with_features.variations.default.primary.features.description_POSITION":19,"slices.text_with_image_TYPE":"SharedSlice","slices.text_with_image_POSITION":20,"slices.text_with_image.variations.default.primary.text_TYPE":"StructuredText","slices.text_with_image.variations.default.primary.text_POSITION":21,"slices.text_with_image.variations.default.primary.image_TYPE":"Image","slices.text_with_image.variations.default.primary.image_POSITION":22,"meta_title_TYPE":"Text","meta_title_POSITION":23,"meta_description_TYPE":"Text","meta_description_POSITION":24,"meta_image_TYPE":"Image","meta_image_POSITION":25,"uids_INTERNAL":["about"],"slugs_INTERNAL":["about-preview"]} -------------------------------------------------------------------------------- /documents/fr-fr/ZkdWYxIAACoA08xV=#=ZkdesRIAACoA09nm=#=page=#=YldlRhcAACkA9kyL=#=fr-fr=#=n.json: -------------------------------------------------------------------------------- 1 | {"uid":"a-propos-de-nous","title":[{"type":"heading1","content":{"text":"À propos de Todoop","spans":[]}}],"slices":[{"key":"hero$9546678e-8bd9-4eb1-b0ee-17fbe1070a58","value":{"primary":{"text":[{"type":"heading1","content":{"text":"À propos de Todoop","spans":[]}},{"type":"paragraph","content":{"text":"La vie peut sembler écrasante, mais ce n’est pas nécessaire. Todoist vous permet de tout garder au même endroit, pour que tout soit fini et que vous ayez l'esprit tranquille en chemin.","spans":[]}}],"buttonLink":{"url":"https://twitter.com/prismicio","preview":null}},"items":[{}],"variation":"withButton"}},{"key":"image$6d1c6f4a-2672-4ba1-8ed9-f78c3778a1c3","value":{"primary":{"image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":1252,"origin":{"id":"Zkdcriol0Zci9PlM","url":"https://images.prismic.io/i18n-24/Zkdcriol0Zci9PlM_office.jpg?auto=format,compress","width":2236,"height":1252},"width":2236,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/Zkdcriol0Zci9PlM_office.jpg?auto=format,compress"},"withAccent":false},"items":[{}],"variation":"white"}},{"key":"text_with_image$1210bdd8-c85b-4268-baf3-a3b10186a2e5","value":{"primary":{"text":[{"type":"heading1","content":{"text":"L'avenir de l'application Todo","spans":[]}},{"type":"heading2","content":{"text":"La vie peut sembler écrasante, mais ce n’est pas nécessaire. Todoist vous permet de tout garder au même endroit, pour que tout soit fini et que vous ayez l'esprit tranquille en chemin.","spans":[]}},{"type":"paragraph","content":{"text":"Suspendisse mauris. Fusce accumsan mollis eros. Pellentesque a diam sit amet mi ullamcorper vehicula. Integer adipiscing risus a sem. Nullam quis massa sit amet nibh viverra malesuada. Nunc sem lacus, accumsan quis, faucibus non, congue vel, arcu. Ut scelerisque hendrerit tellus. Integer sagittis. Vivamus a mauris eget arcu gravida tristique. Nunc iaculis mi in ante.","spans":[{"start":80,"end":100,"type":"hyperlink","data":{"url":"https://nextjs-multi-language-site.vercel.app/fr-fr/a-propos-de-nous"}}]}}],"image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":1214,"origin":{"id":"ZkdcrCol0Zci9PlK","url":"https://images.prismic.io/i18n-24/ZkdcrCol0Zci9PlK_laptop.png?auto=format,compress","width":912,"height":1214},"width":912,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/ZkdcrCol0Zci9PlK_laptop.png?auto=format,compress"}},"items":[{}],"variation":"default"}}],"meta_title":"À propos de Todoop","meta_description":"La vie peut sembler écrasante, mais ce n’est pas nécessaire. Todoist vous permet de tout garder au même endroit, pour que tout soit fini et que vous ayez l'esprit tranquille en chemin.","meta_image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":39}},"height":1260,"origin":{"id":"Zkdcriol0Zci9PlM","url":"https://images.prismic.io/i18n-24/Zkdcriol0Zci9PlM_office.jpg?auto=format,compress","width":2236,"height":1252},"width":2400,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/Zkdcriol0Zci9PlM_office.jpg?auto=format%2Ccompress&rect=0%2C39%2C2236%2C1174&w=2400&h=1260"},"uid_TYPE":"UID","uid_POSITION":0,"title_TYPE":"StructuredText","title_POSITION":1,"slices_TYPE":"Slices","slices_POSITION":2,"slices.hero_TYPE":"SharedSlice","slices.hero_POSITION":3,"slices.hero.variations.default.primary.text_TYPE":"StructuredText","slices.hero.variations.default.primary.text_POSITION":4,"slices.hero.variations.default.primary.image_TYPE":"Image","slices.hero.variations.default.primary.image_POSITION":5,"slices.hero.variations.withButton.primary.text_TYPE":"StructuredText","slices.hero.variations.withButton.primary.text_POSITION":6,"slices.hero.variations.withButton.primary.buttonText_TYPE":"Text","slices.hero.variations.withButton.primary.buttonText_POSITION":7,"slices.hero.variations.withButton.primary.buttonLink_TYPE":"Link","slices.hero.variations.withButton.primary.buttonLink_POSITION":8,"slices.hero.variations.withButton.primary.image_TYPE":"Image","slices.hero.variations.withButton.primary.image_POSITION":9,"slices.image_TYPE":"SharedSlice","slices.image_POSITION":10,"slices.image.variations.white.primary.image_TYPE":"Image","slices.image.variations.white.primary.image_POSITION":11,"slices.image.variations.white.primary.withAccent_TYPE":"Boolean","slices.image.variations.white.primary.withAccent_POSITION":12,"slices.image.variations.lightSlate.primary.image_TYPE":"Image","slices.image.variations.lightSlate.primary.image_POSITION":13,"slices.image.variations.lightSlate.primary.withAccent_TYPE":"Boolean","slices.image.variations.lightSlate.primary.withAccent_POSITION":14,"slices.text_with_features_TYPE":"SharedSlice","slices.text_with_features_POSITION":15,"slices.text_with_features.variations.default.primary.icon_TYPE":"Image","slices.text_with_features.variations.default.primary.icon_POSITION":16,"slices.text_with_features.variations.default.primary.text_TYPE":"StructuredText","slices.text_with_features.variations.default.primary.text_POSITION":17,"slices.text_with_features.variations.default.primary.features_TYPE":"Group","slices.text_with_features.variations.default.primary.features_POSITION":18,"slices.text_with_features.variations.default.primary.features.description_TYPE":"StructuredText","slices.text_with_features.variations.default.primary.features.description_POSITION":19,"slices.text_with_image_TYPE":"SharedSlice","slices.text_with_image_POSITION":20,"slices.text_with_image.variations.default.primary.text_TYPE":"StructuredText","slices.text_with_image.variations.default.primary.text_POSITION":21,"slices.text_with_image.variations.default.primary.image_TYPE":"Image","slices.text_with_image.variations.default.primary.image_POSITION":22,"meta_title_TYPE":"Text","meta_title_POSITION":23,"meta_description_TYPE":"Text","meta_description_POSITION":24,"meta_image_TYPE":"Image","meta_image_POSITION":25,"uids_INTERNAL":["a-propos-de-nous"],"slugs_INTERNAL":["a-propos-de-todoop"]} -------------------------------------------------------------------------------- /documents/fr-fr/ZkdWZBIAACoA08xa=#=ZkdewBIAACgA09n-=#=settings=#=YldhUhcAACgA9jsi=#=fr-fr=#=n.json: -------------------------------------------------------------------------------- 1 | {"siteTitle":[{"type":"heading1","content":{"text":"Todoop","spans":[]}}],"newsletterDescription":[{"type":"heading1","content":{"text":"Recevez une notification","spans":[]}},{"type":"paragraph","content":{"text":"Soyez averti des mises à jour et soyez le premier à accéder rapidement à la nouvelle façon plus sûre et plus intelligente d'archiver vos fichiers.","spans":[]}}],"newsletterDisclaimer":[{"type":"paragraph","content":{"text":"En vous inscrivant à notre newsletter vous acceptez de recevoir des emails récurrents sur notre produit et notre entreprise","spans":[]}}],"logo":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":20,"origin":{"id":"ZkdcrSol0Zci9PlL","url":"https://i18n-24.cdn.prismic.io/i18n-24/ZkdcrSol0Zci9PlL_logo.svg","width":160,"height":20},"width":160,"thumbnails":{},"url":"https://i18n-24.cdn.prismic.io/i18n-24/ZkdcrSol0Zci9PlL_logo.svg"},"siteTitle_TYPE":"StructuredText","siteTitle_POSITION":0,"logo_TYPE":"Image","logo_POSITION":1,"newsletterDescription_TYPE":"StructuredText","newsletterDescription_POSITION":2,"newsletterDisclaimer_TYPE":"StructuredText","newsletterDisclaimer_POSITION":3,"uids_INTERNAL":[],"slugs_INTERNAL":["settings"]} -------------------------------------------------------------------------------- /documents/fr-fr/ZkdWZRIAACgA08xj=#=ZkdfIxIAACMA09qW=#=navigation=#=YldlaRcAACgA9k0q=#=fr-fr=#=n.json: -------------------------------------------------------------------------------- 1 | {"links":[{"label":[{"type":"heading3","content":{"text":"Page accueil","spans":[]}}],"link":{"id":"ZkdWZRIAACoA08xh"}},{"label":[{"type":"heading3","content":{"text":"À propos","spans":[]},"direction":"ltr"}],"link":{"id":"ZkdWYxIAACoA08xV"}}],"links_TYPE":"Group","links_POSITION":0,"links.label_TYPE":"StructuredText","links.label_POSITION":1,"links.link_TYPE":"Link","links.link_POSITION":2,"uids_INTERNAL":[],"slugs_INTERNAL":["navigation"]} -------------------------------------------------------------------------------- /documents/fr-fr/ZkdWZRIAACoA08xh=#=Zkde3BIAACgA09oo=#=page=#=YldjQxcAACgA9kOy=#=fr-fr=#=n.json: -------------------------------------------------------------------------------- 1 | {"meta_title":"Todoop – Gardez votre vie organisée","meta_description":"La vie peut sembler écrasante, mais ce n’est pas nécessaire. Todoist vous permet de tout garder au même endroit, pour que tout soit fini et que vous ayez l'esprit tranquille en chemin.","meta_image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":7}},"height":1260,"origin":{"id":"Zkdcpyol0Zci9PlC","url":"https://images.prismic.io/i18n-24/Zkdcpyol0Zci9PlC_app--dark.jpg?auto=format,compress","width":1228,"height":658},"width":2400,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/Zkdcpyol0Zci9PlC_app--dark.jpg?auto=format%2Ccompress&rect=0%2C7%2C1228%2C645&w=2400&h=1260"},"uid":"home","title":[{"type":"heading1","content":{"text":"Todoop – Gardez votre vie organisée","spans":[]}}],"slices":[{"key":"hero$089d8400-921f-4a16-8111-479a93024b34","value":{"primary":{"text":[{"type":"heading1","content":{"text":"Gardez votre vie organisée","spans":[]}},{"type":"paragraph","content":{"text":"La vie peut sembler écrasante, mais ce n’est pas nécessaire. Todoist vous permet de tout garder au même endroit, pour que tout soit fini et que vous ayez l'esprit tranquille en chemin.","spans":[]}}],"buttonLink":{"url":"https://prismic.io","preview":null},"image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":658,"origin":{"id":"Zkdcpyol0Zci9PlC","url":"https://images.prismic.io/i18n-24/Zkdcpyol0Zci9PlC_app--dark.jpg?auto=format,compress","width":1228,"height":658},"width":1228,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/Zkdcpyol0Zci9PlC_app--dark.jpg?auto=format,compress"}},"items":[{}],"variation":"withButton"}},{"key":"text_with_features$feabad1c-7f5b-4669-a262-f7683792bf8d","value":{"primary":{"icon":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":128,"origin":{"id":"Zkdcqyol0Zci9PlH","url":"https://i18n-24.cdn.prismic.io/i18n-24/Zkdcqyol0Zci9PlH_checkmark.svg","width":128,"height":128},"width":128,"thumbnails":{},"url":"https://i18n-24.cdn.prismic.io/i18n-24/Zkdcqyol0Zci9PlH_checkmark.svg"},"text":[{"type":"heading1","content":{"text":"L'avenir de l'application Todo","spans":[]}},{"type":"paragraph","content":{"text":"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non.","spans":[{"start":87,"end":98,"type":"hyperlink","data":{"url":"https://nextjs-multi-language-site.vercel.app/fr-fr"}}]}}],"features":[{"description":[{"type":"heading3","content":{"text":"Ne vous inquiétez plus jamais pour oublier des choses","spans":[]},"direction":"ltr"},{"type":"paragraph","content":{"text":"Laissez Todoist s'en souvenir pour vous. Vous pouvez obtenir des tâches de votre tête et sur votre liste de tâches à tout moment, n'importe où, sur n'importe quel appareil - même hors ligne.","spans":[]},"direction":"ltr"}]},{"description":[{"type":"heading3","content":{"text":"Todoist aide des millions de personnes à se sentir plus maîtres de leur vie","spans":[]},"direction":"ltr"},{"type":"paragraph","content":{"text":"Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Morbi in sem quis dui placerat ornare.","spans":[]},"direction":"ltr"}]},{"description":[{"type":"heading3","content":{"text":"Concentrez votre énergie sur les bonnes choses","spans":[]},"direction":"ltr"},{"type":"paragraph","content":{"text":"Praesent dapibus, neque id cursus faucibus, tortor neque egestas auguae, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis.","spans":[]},"direction":"ltr"}]}]},"items":[{"featureDescription":[{"type":"heading2","content":{"text":"Ne vous inquiétez plus jamais pour oublier des choses","spans":[]}},{"type":"paragraph","content":{"text":"Laissez Todoist s'en souvenir pour vous. Vous pouvez obtenir des tâches de votre tête et sur votre liste de tâches à tout moment, n'importe où, sur n'importe quel appareil - même hors ligne.","spans":[]}}]},{"featureDescription":[{"type":"heading2","content":{"text":"Todoist aide des millions de personnes à se sentir plus maîtres de leur vie","spans":[]}},{"type":"paragraph","content":{"text":"Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris sit amet orci. Aenean dignissim pellentesque felis. Morbi in sem quis dui placerat ornare.","spans":[]}}]},{"featureDescription":[{"type":"heading2","content":{"text":"Concentrez votre énergie sur les bonnes choses","spans":[]}},{"type":"paragraph","content":{"text":"Praesent dapibus, neque id cursus faucibus, tortor neque egestas auguae, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis.","spans":[]}}]}],"variation":"default"}},{"key":"image$5fdfc3a7-7506-48e6-acc1-0fba7c89bb0b","value":{"primary":{"image":{"edit":{"background":"transparent","zoom":1,"crop":{"x":0,"y":0}},"height":1252,"origin":{"id":"ZkdcqCol0Zci9PlD","url":"https://images.prismic.io/i18n-24/ZkdcqCol0Zci9PlD_app--light.png?auto=format,compress","width":2256,"height":1252},"width":2256,"thumbnails":{},"url":"https://images.prismic.io/i18n-24/ZkdcqCol0Zci9PlD_app--light.png?auto=format,compress"},"withAccent":true},"items":[{}],"variation":"white"}}],"slices.text_with_features.variations.default.items.featureDescription_TYPE":"StructuredText","uid_TYPE":"UID","uid_POSITION":0,"title_TYPE":"StructuredText","title_POSITION":1,"slices_TYPE":"Slices","slices_POSITION":2,"slices.hero_TYPE":"SharedSlice","slices.hero_POSITION":3,"slices.hero.variations.default.primary.text_TYPE":"StructuredText","slices.hero.variations.default.primary.text_POSITION":4,"slices.hero.variations.default.primary.image_TYPE":"Image","slices.hero.variations.default.primary.image_POSITION":5,"slices.hero.variations.withButton.primary.text_TYPE":"StructuredText","slices.hero.variations.withButton.primary.text_POSITION":6,"slices.hero.variations.withButton.primary.buttonText_TYPE":"Text","slices.hero.variations.withButton.primary.buttonText_POSITION":7,"slices.hero.variations.withButton.primary.buttonLink_TYPE":"Link","slices.hero.variations.withButton.primary.buttonLink_POSITION":8,"slices.hero.variations.withButton.primary.image_TYPE":"Image","slices.hero.variations.withButton.primary.image_POSITION":9,"slices.image_TYPE":"SharedSlice","slices.image_POSITION":10,"slices.image.variations.white.primary.image_TYPE":"Image","slices.image.variations.white.primary.image_POSITION":11,"slices.image.variations.white.primary.withAccent_TYPE":"Boolean","slices.image.variations.white.primary.withAccent_POSITION":12,"slices.image.variations.lightSlate.primary.image_TYPE":"Image","slices.image.variations.lightSlate.primary.image_POSITION":13,"slices.image.variations.lightSlate.primary.withAccent_TYPE":"Boolean","slices.image.variations.lightSlate.primary.withAccent_POSITION":14,"slices.text_with_features_TYPE":"SharedSlice","slices.text_with_features_POSITION":15,"slices.text_with_features.variations.default.primary.icon_TYPE":"Image","slices.text_with_features.variations.default.primary.icon_POSITION":16,"slices.text_with_features.variations.default.primary.text_TYPE":"StructuredText","slices.text_with_features.variations.default.primary.text_POSITION":17,"slices.text_with_features.variations.default.primary.features_TYPE":"Group","slices.text_with_features.variations.default.primary.features_POSITION":18,"slices.text_with_features.variations.default.primary.features.description_TYPE":"StructuredText","slices.text_with_features.variations.default.primary.features.description_POSITION":19,"slices.text_with_image_TYPE":"SharedSlice","slices.text_with_image_POSITION":20,"slices.text_with_image.variations.default.primary.text_TYPE":"StructuredText","slices.text_with_image.variations.default.primary.text_POSITION":21,"slices.text_with_image.variations.default.primary.image_TYPE":"Image","slices.text_with_image.variations.default.primary.image_POSITION":22,"meta_title_TYPE":"Text","meta_title_POSITION":23,"meta_description_TYPE":"Text","meta_description_POSITION":24,"meta_image_TYPE":"Image","meta_image_POSITION":25,"uids_INTERNAL":["home"],"slugs_INTERNAL":["todoop--gardez-votre-vie-organisee"]} -------------------------------------------------------------------------------- /documents/index.json: -------------------------------------------------------------------------------- 1 | {"signature":"32a416aacb4b5de7c0fea8934850bbbd589c2b46"} -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- 1 | // @ts-check 2 | import withNuxt from './.nuxt/eslint.config.mjs' 3 | 4 | export default withNuxt( 5 | // Your custom configs here 6 | { 7 | rules: { 8 | "vue/multi-word-component-names": "off" 9 | } 10 | } 11 | ) 12 | -------------------------------------------------------------------------------- /nuxt.config.ts: -------------------------------------------------------------------------------- 1 | import { repositoryName } from './slicemachine.config.json' 2 | 3 | // https://nuxt.com/docs/api/configuration/nuxt-config 4 | export default defineNuxtConfig({ 5 | future: { 6 | compatibilityVersion: 4 7 | }, 8 | 9 | devtools: { enabled: true }, 10 | 11 | app: { 12 | head: { 13 | title: 'Prismic + Nuxt blog example', 14 | htmlAttrs: { 15 | lang: 'en' 16 | }, 17 | meta: [ 18 | { charset: 'utf-8' }, 19 | { name: 'viewport', content: 'width=device-width, initial-scale=1' }, 20 | { 21 | hid: 'description', 22 | name: 'description', 23 | content: 'Prismic + Nuxt blog example' 24 | }, 25 | { name: 'format-detection', content: 'telephone=no' } 26 | ], 27 | link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }] 28 | } 29 | }, 30 | 31 | css: [ 32 | '~/styles/global.css', 33 | '@fontsource/inter/400.css', 34 | '@fontsource/inter/600.css', 35 | '@fontsource/libre-baskerville/400.css', 36 | '@fontsource/libre-baskerville/400-italic.css', 37 | '@fontsource/libre-baskerville/700.css', 38 | 'flag-icons/css/flag-icons.css' 39 | ], 40 | 41 | modules: [ 42 | '@nuxt/eslint', 43 | '@nuxtjs/i18n', 44 | '@nuxtjs/prismic', 45 | '@nuxtjs/tailwindcss' 46 | ], 47 | 48 | i18n: { 49 | locales: ['en-us', 'fr-fr'], 50 | defaultLocale: 'en-us' 51 | }, 52 | 53 | prismic: { 54 | endpoint: repositoryName, 55 | preview: '/api/preview' 56 | }, 57 | 58 | compatibilityDate: '2025-01-06', 59 | }) -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nuxt-starter-prismic-multi-language", 3 | "version": "0.0.0", 4 | "private": true, 5 | "license": "Apache-2.0", 6 | "author": "Prismic (https://prismic.io)", 7 | "scripts": { 8 | "dev": "concurrently \"npm:nuxt:dev\" \"npm:slicemachine\" --names \"nuxt,slicemachine\" --prefix-colors green,magenta", 9 | "nuxt:dev": "nuxt dev", 10 | "build": "nuxt build", 11 | "generate": "nuxt generate", 12 | "preview": "nuxt preview", 13 | "postinstall": "nuxt prepare", 14 | "slicemachine": "start-slicemachine", 15 | "lint": "eslint ." 16 | }, 17 | "dependencies": { 18 | "@fontsource/inter": "^5.1.1", 19 | "@fontsource/libre-baskerville": "^5.1.1", 20 | "flag-icons": "^7.3.2" 21 | }, 22 | "devDependencies": { 23 | "@nuxt/eslint": "^0.7.5", 24 | "@nuxtjs/i18n": "^9.1.1", 25 | "@nuxtjs/prismic": "^4.0.0", 26 | "@nuxtjs/tailwindcss": "^6.13.1", 27 | "@slicemachine/adapter-nuxt": "^0.3.64", 28 | "@tailwindcss/aspect-ratio": "^0.4.2", 29 | "concurrently": "^9.1.2", 30 | "eslint": "^9.18.0", 31 | "nuxt": "^3.15.2", 32 | "slice-machine-ui": "^2.12.2" 33 | } 34 | } -------------------------------------------------------------------------------- /prismicio-types.d.ts: -------------------------------------------------------------------------------- 1 | // Code generated by Slice Machine. DO NOT EDIT. 2 | 3 | import type * as prismic from "@prismicio/client"; 4 | 5 | type Simplify = { [KeyType in keyof T]: T[KeyType] }; 6 | 7 | /** 8 | * Item in *Navigation → Links* 9 | */ 10 | export interface NavigationDocumentDataLinksItem { 11 | /** 12 | * Label field in *Navigation → Links* 13 | * 14 | * - **Field Type**: Title 15 | * - **Placeholder**: Optional - Label for the link 16 | * - **API ID Path**: navigation.links[].label 17 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 18 | */ 19 | label: prismic.TitleField; 20 | 21 | /** 22 | * Link field in *Navigation → Links* 23 | * 24 | * - **Field Type**: Link 25 | * - **Placeholder**: Link for navigation item 26 | * - **API ID Path**: navigation.links[].link 27 | * - **Documentation**: https://prismic.io/docs/field#link-content-relationship 28 | */ 29 | link: prismic.LinkField; 30 | } 31 | 32 | /** 33 | * Content for Navigation documents 34 | */ 35 | interface NavigationDocumentData { 36 | /** 37 | * Links field in *Navigation* 38 | * 39 | * - **Field Type**: Group 40 | * - **Placeholder**: *None* 41 | * - **API ID Path**: navigation.links[] 42 | * - **Tab**: Main 43 | * - **Documentation**: https://prismic.io/docs/field#group 44 | */ 45 | links: prismic.GroupField>; 46 | } 47 | 48 | /** 49 | * Navigation document from Prismic 50 | * 51 | * - **API ID**: `navigation` 52 | * - **Repeatable**: `false` 53 | * - **Documentation**: https://prismic.io/docs/custom-types 54 | * 55 | * @typeParam Lang - Language API ID of the document. 56 | */ 57 | export type NavigationDocument = 58 | prismic.PrismicDocumentWithoutUID< 59 | Simplify, 60 | "navigation", 61 | Lang 62 | >; 63 | 64 | type PageDocumentDataSlicesSlice = 65 | | HeroSlice 66 | | ImageSlice 67 | | TextWithFeaturesSlice 68 | | TextWithImageSlice; 69 | 70 | /** 71 | * Content for Page documents 72 | */ 73 | interface PageDocumentData { 74 | /** 75 | * Title field in *Page* 76 | * 77 | * - **Field Type**: Title 78 | * - **Placeholder**: Title for the page 79 | * - **API ID Path**: page.title 80 | * - **Tab**: Main 81 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 82 | */ 83 | title: prismic.TitleField; 84 | 85 | /** 86 | * Slice Zone field in *Page* 87 | * 88 | * - **Field Type**: Slice Zone 89 | * - **Placeholder**: *None* 90 | * - **API ID Path**: page.slices[] 91 | * - **Tab**: Main 92 | * - **Documentation**: https://prismic.io/docs/field#slices 93 | */ 94 | slices: prismic.SliceZone; 95 | } 96 | 97 | /** 98 | * Page document from Prismic 99 | * 100 | * - **API ID**: `page` 101 | * - **Repeatable**: `true` 102 | * - **Documentation**: https://prismic.io/docs/custom-types 103 | * 104 | * @typeParam Lang - Language API ID of the document. 105 | */ 106 | export type PageDocument = 107 | prismic.PrismicDocumentWithUID, "page", Lang>; 108 | 109 | /** 110 | * Content for Settings documents 111 | */ 112 | interface SettingsDocumentData { 113 | /** 114 | * Site Title field in *Settings* 115 | * 116 | * - **Field Type**: Title 117 | * - **Placeholder**: Title of the site 118 | * - **API ID Path**: settings.siteTitle 119 | * - **Tab**: Main 120 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 121 | */ 122 | siteTitle: prismic.TitleField; 123 | 124 | /** 125 | * Logo field in *Settings* 126 | * 127 | * - **Field Type**: Image 128 | * - **Placeholder**: *None* 129 | * - **API ID Path**: settings.logo 130 | * - **Tab**: Main 131 | * - **Documentation**: https://prismic.io/docs/field#image 132 | */ 133 | logo: prismic.ImageField; 134 | 135 | /** 136 | * Newsletter Description field in *Settings* 137 | * 138 | * - **Field Type**: Rich Text 139 | * - **Placeholder**: Text above the sign up form 140 | * - **API ID Path**: settings.newsletterDescription 141 | * - **Tab**: Main 142 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 143 | */ 144 | newsletterDescription: prismic.RichTextField; 145 | 146 | /** 147 | * Newsletter Disclaimer field in *Settings* 148 | * 149 | * - **Field Type**: Rich Text 150 | * - **Placeholder**: Small text below sign up form 151 | * - **API ID Path**: settings.newsletterDisclaimer 152 | * - **Tab**: Main 153 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 154 | */ 155 | newsletterDisclaimer: prismic.RichTextField; 156 | } 157 | 158 | /** 159 | * Settings document from Prismic 160 | * 161 | * - **API ID**: `settings` 162 | * - **Repeatable**: `false` 163 | * - **Documentation**: https://prismic.io/docs/custom-types 164 | * 165 | * @typeParam Lang - Language API ID of the document. 166 | */ 167 | export type SettingsDocument = 168 | prismic.PrismicDocumentWithoutUID< 169 | Simplify, 170 | "settings", 171 | Lang 172 | >; 173 | 174 | export type AllDocumentTypes = 175 | | NavigationDocument 176 | | PageDocument 177 | | SettingsDocument; 178 | 179 | /** 180 | * Primary content in *Hero → Default → Primary* 181 | */ 182 | export interface HeroSliceDefaultPrimary { 183 | /** 184 | * Text field in *Hero → Default → Primary* 185 | * 186 | * - **Field Type**: Rich Text 187 | * - **Placeholder**: Introductory text for the page 188 | * - **API ID Path**: hero.default.primary.text 189 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 190 | */ 191 | text: prismic.RichTextField; 192 | 193 | /** 194 | * Image field in *Hero → Default → Primary* 195 | * 196 | * - **Field Type**: Image 197 | * - **Placeholder**: *None* 198 | * - **API ID Path**: hero.default.primary.image 199 | * - **Documentation**: https://prismic.io/docs/field#image 200 | */ 201 | image: prismic.ImageField; 202 | } 203 | 204 | /** 205 | * Default variation for Hero Slice 206 | * 207 | * - **API ID**: `default` 208 | * - **Description**: Hero 209 | * - **Documentation**: https://prismic.io/docs/slice 210 | */ 211 | export type HeroSliceDefault = prismic.SharedSliceVariation< 212 | "default", 213 | Simplify, 214 | never 215 | >; 216 | 217 | /** 218 | * Primary content in *Hero → With Button → Primary* 219 | */ 220 | export interface HeroSliceWithButtonPrimary { 221 | /** 222 | * Text field in *Hero → With Button → Primary* 223 | * 224 | * - **Field Type**: Rich Text 225 | * - **Placeholder**: Introductory text for the page 226 | * - **API ID Path**: hero.withButton.primary.text 227 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 228 | */ 229 | text: prismic.RichTextField; 230 | 231 | /** 232 | * Button Text field in *Hero → With Button → Primary* 233 | * 234 | * - **Field Type**: Text 235 | * - **Placeholder**: *None* 236 | * - **API ID Path**: hero.withButton.primary.buttonText 237 | * - **Documentation**: https://prismic.io/docs/field#key-text 238 | */ 239 | buttonText: prismic.KeyTextField; 240 | 241 | /** 242 | * Button Link field in *Hero → With Button → Primary* 243 | * 244 | * - **Field Type**: Link 245 | * - **Placeholder**: *None* 246 | * - **API ID Path**: hero.withButton.primary.buttonLink 247 | * - **Documentation**: https://prismic.io/docs/field#link-content-relationship 248 | */ 249 | buttonLink: prismic.LinkField; 250 | 251 | /** 252 | * Image field in *Hero → With Button → Primary* 253 | * 254 | * - **Field Type**: Image 255 | * - **Placeholder**: *None* 256 | * - **API ID Path**: hero.withButton.primary.image 257 | * - **Documentation**: https://prismic.io/docs/field#image 258 | */ 259 | image: prismic.ImageField; 260 | } 261 | 262 | /** 263 | * With Button variation for Hero Slice 264 | * 265 | * - **API ID**: `withButton` 266 | * - **Description**: Hero 267 | * - **Documentation**: https://prismic.io/docs/slice 268 | */ 269 | export type HeroSliceWithButton = prismic.SharedSliceVariation< 270 | "withButton", 271 | Simplify, 272 | never 273 | >; 274 | 275 | /** 276 | * Slice variation for *Hero* 277 | */ 278 | type HeroSliceVariation = HeroSliceDefault | HeroSliceWithButton; 279 | 280 | /** 281 | * Hero Shared Slice 282 | * 283 | * - **API ID**: `hero` 284 | * - **Description**: Hero 285 | * - **Documentation**: https://prismic.io/docs/slice 286 | */ 287 | export type HeroSlice = prismic.SharedSlice<"hero", HeroSliceVariation>; 288 | 289 | /** 290 | * Primary content in *Image → White → Primary* 291 | */ 292 | export interface ImageSliceWhitePrimary { 293 | /** 294 | * Image field in *Image → White → Primary* 295 | * 296 | * - **Field Type**: Image 297 | * - **Placeholder**: *None* 298 | * - **API ID Path**: image.white.primary.image 299 | * - **Documentation**: https://prismic.io/docs/field#image 300 | */ 301 | image: prismic.ImageField; 302 | 303 | /** 304 | * With Accent field in *Image → White → Primary* 305 | * 306 | * - **Field Type**: Boolean 307 | * - **Placeholder**: *None* 308 | * - **Default Value**: true 309 | * - **API ID Path**: image.white.primary.withAccent 310 | * - **Documentation**: https://prismic.io/docs/field#boolean 311 | */ 312 | withAccent: prismic.BooleanField; 313 | } 314 | 315 | /** 316 | * White variation for Image Slice 317 | * 318 | * - **API ID**: `white` 319 | * - **Description**: Image 320 | * - **Documentation**: https://prismic.io/docs/slice 321 | */ 322 | export type ImageSliceWhite = prismic.SharedSliceVariation< 323 | "white", 324 | Simplify, 325 | never 326 | >; 327 | 328 | /** 329 | * Primary content in *Image → Light Slate → Primary* 330 | */ 331 | export interface ImageSliceLightSlatePrimary { 332 | /** 333 | * Image field in *Image → Light Slate → Primary* 334 | * 335 | * - **Field Type**: Image 336 | * - **Placeholder**: *None* 337 | * - **API ID Path**: image.lightSlate.primary.image 338 | * - **Documentation**: https://prismic.io/docs/field#image 339 | */ 340 | image: prismic.ImageField; 341 | 342 | /** 343 | * With Accent field in *Image → Light Slate → Primary* 344 | * 345 | * - **Field Type**: Boolean 346 | * - **Placeholder**: *None* 347 | * - **Default Value**: true 348 | * - **API ID Path**: image.lightSlate.primary.withAccent 349 | * - **Documentation**: https://prismic.io/docs/field#boolean 350 | */ 351 | withAccent: prismic.BooleanField; 352 | } 353 | 354 | /** 355 | * Light Slate variation for Image Slice 356 | * 357 | * - **API ID**: `lightSlate` 358 | * - **Description**: Image 359 | * - **Documentation**: https://prismic.io/docs/slice 360 | */ 361 | export type ImageSliceLightSlate = prismic.SharedSliceVariation< 362 | "lightSlate", 363 | Simplify, 364 | never 365 | >; 366 | 367 | /** 368 | * Slice variation for *Image* 369 | */ 370 | type ImageSliceVariation = ImageSliceWhite | ImageSliceLightSlate; 371 | 372 | /** 373 | * Image Shared Slice 374 | * 375 | * - **API ID**: `image` 376 | * - **Description**: Image 377 | * - **Documentation**: https://prismic.io/docs/slice 378 | */ 379 | export type ImageSlice = prismic.SharedSlice<"image", ImageSliceVariation>; 380 | 381 | /** 382 | * Item in *TextWithFeatures → Default → Primary → Features* 383 | */ 384 | export interface TextWithFeaturesSliceDefaultPrimaryFeaturesItem { 385 | /** 386 | * Feature Description field in *TextWithFeatures → Default → Primary → Features* 387 | * 388 | * - **Field Type**: Rich Text 389 | * - **Placeholder**: Description of a feature 390 | * - **API ID Path**: text_with_features.default.primary.features[].description 391 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 392 | */ 393 | description: prismic.RichTextField; 394 | } 395 | 396 | /** 397 | * Primary content in *TextWithFeatures → Default → Primary* 398 | */ 399 | export interface TextWithFeaturesSliceDefaultPrimary { 400 | /** 401 | * Icon field in *TextWithFeatures → Default → Primary* 402 | * 403 | * - **Field Type**: Image 404 | * - **Placeholder**: *None* 405 | * - **API ID Path**: text_with_features.default.primary.icon 406 | * - **Documentation**: https://prismic.io/docs/field#image 407 | */ 408 | icon: prismic.ImageField; 409 | 410 | /** 411 | * Text field in *TextWithFeatures → Default → Primary* 412 | * 413 | * - **Field Type**: Rich Text 414 | * - **Placeholder**: Primary text with rich formatting 415 | * - **API ID Path**: text_with_features.default.primary.text 416 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 417 | */ 418 | text: prismic.RichTextField; 419 | 420 | /** 421 | * Features field in *TextWithFeatures → Default → Primary* 422 | * 423 | * - **Field Type**: Group 424 | * - **Placeholder**: *None* 425 | * - **API ID Path**: text_with_features.default.primary.features[] 426 | * - **Documentation**: https://prismic.io/docs/field#group 427 | */ 428 | features: prismic.GroupField< 429 | Simplify 430 | >; 431 | } 432 | 433 | /** 434 | * Default variation for TextWithFeatures Slice 435 | * 436 | * - **API ID**: `default` 437 | * - **Description**: TextWithFeatures 438 | * - **Documentation**: https://prismic.io/docs/slice 439 | */ 440 | export type TextWithFeaturesSliceDefault = prismic.SharedSliceVariation< 441 | "default", 442 | Simplify, 443 | never 444 | >; 445 | 446 | /** 447 | * Slice variation for *TextWithFeatures* 448 | */ 449 | type TextWithFeaturesSliceVariation = TextWithFeaturesSliceDefault; 450 | 451 | /** 452 | * TextWithFeatures Shared Slice 453 | * 454 | * - **API ID**: `text_with_features` 455 | * - **Description**: TextWithFeatures 456 | * - **Documentation**: https://prismic.io/docs/slice 457 | */ 458 | export type TextWithFeaturesSlice = prismic.SharedSlice< 459 | "text_with_features", 460 | TextWithFeaturesSliceVariation 461 | >; 462 | 463 | /** 464 | * Primary content in *TextWithImage → Default → Primary* 465 | */ 466 | export interface TextWithImageSliceDefaultPrimary { 467 | /** 468 | * Text field in *TextWithImage → Default → Primary* 469 | * 470 | * - **Field Type**: Rich Text 471 | * - **Placeholder**: Text displayed next to image 472 | * - **API ID Path**: text_with_image.default.primary.text 473 | * - **Documentation**: https://prismic.io/docs/field#rich-text-title 474 | */ 475 | text: prismic.RichTextField; 476 | 477 | /** 478 | * Image field in *TextWithImage → Default → Primary* 479 | * 480 | * - **Field Type**: Image 481 | * - **Placeholder**: *None* 482 | * - **API ID Path**: text_with_image.default.primary.image 483 | * - **Documentation**: https://prismic.io/docs/field#image 484 | */ 485 | image: prismic.ImageField; 486 | } 487 | 488 | /** 489 | * Default variation for TextWithImage Slice 490 | * 491 | * - **API ID**: `default` 492 | * - **Description**: TextWithImage 493 | * - **Documentation**: https://prismic.io/docs/slice 494 | */ 495 | export type TextWithImageSliceDefault = prismic.SharedSliceVariation< 496 | "default", 497 | Simplify, 498 | never 499 | >; 500 | 501 | /** 502 | * Slice variation for *TextWithImage* 503 | */ 504 | type TextWithImageSliceVariation = TextWithImageSliceDefault; 505 | 506 | /** 507 | * TextWithImage Shared Slice 508 | * 509 | * - **API ID**: `text_with_image` 510 | * - **Description**: TextWithImage 511 | * - **Documentation**: https://prismic.io/docs/slice 512 | */ 513 | export type TextWithImageSlice = prismic.SharedSlice< 514 | "text_with_image", 515 | TextWithImageSliceVariation 516 | >; 517 | 518 | declare module "@prismicio/client" { 519 | interface CreateClient { 520 | ( 521 | repositoryNameOrEndpoint: string, 522 | options?: prismic.ClientConfig, 523 | ): prismic.Client; 524 | } 525 | 526 | namespace Content { 527 | export type { 528 | NavigationDocument, 529 | NavigationDocumentData, 530 | NavigationDocumentDataLinksItem, 531 | PageDocument, 532 | PageDocumentData, 533 | PageDocumentDataSlicesSlice, 534 | SettingsDocument, 535 | SettingsDocumentData, 536 | AllDocumentTypes, 537 | HeroSlice, 538 | HeroSliceDefaultPrimary, 539 | HeroSliceWithButtonPrimary, 540 | HeroSliceVariation, 541 | HeroSliceDefault, 542 | HeroSliceWithButton, 543 | ImageSlice, 544 | ImageSliceWhitePrimary, 545 | ImageSliceLightSlatePrimary, 546 | ImageSliceVariation, 547 | ImageSliceWhite, 548 | ImageSliceLightSlate, 549 | TextWithFeaturesSlice, 550 | TextWithFeaturesSliceDefaultPrimaryFeaturesItem, 551 | TextWithFeaturesSliceDefaultPrimary, 552 | TextWithFeaturesSliceVariation, 553 | TextWithFeaturesSliceDefault, 554 | TextWithImageSlice, 555 | TextWithImageSliceDefaultPrimary, 556 | TextWithImageSliceVariation, 557 | TextWithImageSliceDefault, 558 | }; 559 | } 560 | } 561 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prismicio-community/nuxt-starter-prismic-multi-language/fa5715b4701c3543e297075e3fef0b5a51b7c40b/public/favicon.ico -------------------------------------------------------------------------------- /server/api/sign-up.post.ts: -------------------------------------------------------------------------------- 1 | export default defineEventHandler(async (event) => { 2 | // Get data submitted in request's body. 3 | const body = await readBody(event) 4 | 5 | // Optional logging to see the responses in the command line where the 6 | // Nuxt app is running. 7 | console.log('body: ', body) 8 | 9 | // Guard clause checks for email and returns early if it is not found. 10 | if (!body.email) { 11 | // Sends a HTTP bad request error code. 12 | throw createError({ 13 | statusCode: 400, 14 | statusMessage: 'Email not found' 15 | }) 16 | } 17 | 18 | // Here, you could send the message to a service like Supabase to read later. 19 | // 20 | // This is just an example, so we won't do anything except redirect back to 21 | // the homepage. 22 | 23 | return sendRedirect(event, '/', 302) 24 | }) -------------------------------------------------------------------------------- /server/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../.nuxt/tsconfig.server.json" 3 | } 4 | -------------------------------------------------------------------------------- /slicemachine.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "libraries": [ 3 | "./app/slices" 4 | ], 5 | "adapter": "@slicemachine/adapter-nuxt", 6 | "repositoryName": "i18n-24", 7 | "localSliceSimulatorURL": "http://localhost:3000/slice-simulator" 8 | } -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- 1 | import type { Config } from 'tailwindcss' 2 | import tailwindAspectRatio from '@tailwindcss/aspect-ratio' 3 | 4 | export default >{ 5 | content: [ 6 | './app/**/*.{js,ts,vue}', 7 | './slices/**/*.{js,ts,vue}' 8 | ], 9 | theme: { 10 | fontFamily: { 11 | sans: 'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"', 12 | serif: 13 | '"Libre Baskerville", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif' 14 | }, 15 | }, 16 | plugins: [tailwindAspectRatio] 17 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | // https://nuxt.com/docs/guide/concepts/typescript 3 | "extends": "./.nuxt/tsconfig.json" 4 | } 5 | --------------------------------------------------------------------------------