diff --git a/components/VideoPreview.vue b/components/VideoPreview.vue new file mode 100644 index 0000000..39f4641 --- /dev/null +++ b/components/VideoPreview.vue @@ -0,0 +1,31 @@ + + + + + + + {{ video.snippet.publishedAt }} + + + {{ video.snippet.title }} + + + + + diff --git a/components/VideosList.vue b/components/VideosList.vue new file mode 100644 index 0000000..282955b --- /dev/null +++ b/components/VideosList.vue @@ -0,0 +1,29 @@ + + + + Videos + + + + + + + + + + + diff --git a/nuxt.config.js b/nuxt.config.js index 925caae..62b84f8 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -1,3 +1,5 @@ +import tailwindAspectRatio from '@tailwindcss/aspect-ratio' + export default { // Global page headers: https://go.nuxtjs.dev/config-head head: { @@ -33,6 +35,12 @@ export default { '@nuxtjs/tailwindcss', ], + tailwindcss: { + config: { + plugins: [tailwindAspectRatio], + }, + }, + // Modules: https://go.nuxtjs.dev/config-modules modules: [], diff --git a/package-lock.json b/package-lock.json index 16d906d..8c8c6b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "@nuxtjs/eslint-module": "^3.0.2", "@nuxtjs/stylelint-module": "^4.1.0", "@nuxtjs/tailwindcss": "^4.2.1", + "@tailwindcss/aspect-ratio": "^0.4.0", "@types/gapi.youtube": "^3.0.35", "@vue/test-utils": "^1.3.0", "babel-core": "7.0.0-bridge.0", @@ -4582,6 +4583,15 @@ "@sinonjs/commons": "^1.7.0" } }, + "node_modules/@tailwindcss/aspect-ratio": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/aspect-ratio/-/aspect-ratio-0.4.0.tgz", + "integrity": "sha512-WJu0I4PpqNPuutpaA9zDUq2JXR+lorZ7PbLcKNLmb6GL9/HLfC7w3CRsMhJF4BbYd/lkY6CfXOvkYpuGnZfkpQ==", + "dev": true, + "peerDependencies": { + "tailwindcss": ">=2.0.0 || >=3.0.0 || >=3.0.0-alpha.1" + } + }, "node_modules/@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", @@ -30134,6 +30144,13 @@ "@sinonjs/commons": "^1.7.0" } }, + "@tailwindcss/aspect-ratio": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/aspect-ratio/-/aspect-ratio-0.4.0.tgz", + "integrity": "sha512-WJu0I4PpqNPuutpaA9zDUq2JXR+lorZ7PbLcKNLmb6GL9/HLfC7w3CRsMhJF4BbYd/lkY6CfXOvkYpuGnZfkpQ==", + "dev": true, + "requires": {} + }, "@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", diff --git a/package.json b/package.json index 8e043ce..f9ed9ba 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@nuxtjs/eslint-module": "^3.0.2", "@nuxtjs/stylelint-module": "^4.1.0", "@nuxtjs/tailwindcss": "^4.2.1", + "@tailwindcss/aspect-ratio": "^0.4.0", "@types/gapi.youtube": "^3.0.35", "@vue/test-utils": "^1.3.0", "babel-core": "7.0.0-bridge.0", diff --git a/pages/index.vue b/pages/index.vue index 69605cc..3e65c7d 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -6,11 +6,7 @@ Content - - - {{ video.snippet.title }} - - +
+ {{ video.snippet.title }} +