├── .nvmrc ├── www ├── postcss.config.js ├── public │ ├── robots.txt │ ├── favicon.ico │ ├── styles │ │ ├── global.css │ │ ├── typography.css │ │ └── typography.scss │ └── assets │ │ └── fonts │ │ ├── dev-hell │ │ └── DevelopmentHell-KP3A.ttf │ │ ├── final-frontier │ │ ├── FinalFrontier-new.ttf │ │ └── FinalFrontier-old.ttf │ │ ├── noto-sans │ │ ├── noto-sans-v14-latin-700.ttf │ │ ├── noto-sans-v14-latin-italic.ttf │ │ ├── noto-sans-v14-latin-regular.ttf │ │ └── noto-sans-v14-latin-700italic.ttf │ │ └── nunito-sans │ │ ├── nunito-sans-v6-latin-600.ttf │ │ ├── nunito-sans-v6-latin-800.ttf │ │ ├── nunito-sans-v6-latin-regular.ttf │ │ ├── nunito-sans-v6-latin-600italic.ttf │ │ └── nunito-sans-v6-latin-800italic.ttf ├── .npmrc ├── vercel.json ├── .gitignore ├── package.json ├── src │ └── pages │ │ └── index.astro ├── astro.config.mjs ├── snowpack.config.js └── README.md ├── .gitignore ├── guides └── README.md ├── examples └── README.md ├── lessons └── README.md ├── .prettierrc ├── packages ├── vplayer │ ├── public │ │ ├── robots.txt │ │ └── favicon.ico │ ├── .npmrc │ ├── .stackblitzrc │ ├── src │ │ ├── components │ │ │ ├── plyr.js │ │ │ ├── Vplyr.astro │ │ │ └── react-plyr.tsx │ │ └── pages │ │ │ └── index.astro │ ├── .gitignore │ ├── package.json │ ├── astro.config.mjs │ └── README.md └── astro-ui │ └── head │ └── stylesheet │ ├── .npmrc │ ├── src │ ├── index.js │ ├── pages │ │ └── index.astro │ └── components │ │ └── Stylesheet.astro │ ├── .gitignore │ ├── astro.config.mjs │ ├── package.json │ └── README.md ├── netlify.toml ├── lerna.json ├── .gitpod.yml ├── .eslintrc.js ├── README.md └── package.json /.nvmrc: -------------------------------------------------------------------------------- 1 | node v14.15.1 -------------------------------------------------------------------------------- /www/postcss.config.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /guides/README.md: -------------------------------------------------------------------------------- 1 | # Astro Academy Guides 2 | -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- 1 | # Astro Academy Examples 2 | -------------------------------------------------------------------------------- /lessons/README.md: -------------------------------------------------------------------------------- 1 | # Astro Academy Lessons 2 | -------------------------------------------------------------------------------- /www/public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / 3 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "tabWidth": 2, 3 | "useTabs": false 4 | } 5 | -------------------------------------------------------------------------------- /packages/vplayer/public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / 3 | -------------------------------------------------------------------------------- /www/.npmrc: -------------------------------------------------------------------------------- 1 | ## force pnpm to hoist 2 | shamefully-hoist = true 3 | -------------------------------------------------------------------------------- /netlify.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | base = "" 3 | command = "npm run build" -------------------------------------------------------------------------------- /packages/vplayer/.npmrc: -------------------------------------------------------------------------------- 1 | ## force pnpm to hoist 2 | shamefully-hoist = true 3 | -------------------------------------------------------------------------------- /packages/astro-ui/head/stylesheet/.npmrc: -------------------------------------------------------------------------------- 1 | ## force pnpm to hoist 2 | shamefully-hoist = true 3 | -------------------------------------------------------------------------------- /www/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/favicon.ico -------------------------------------------------------------------------------- /www/vercel.json: -------------------------------------------------------------------------------- 1 | { 2 | "cleanUrls":true, 3 | "trailingSlash":false, 4 | "redirects":[], 5 | "rewrites":[] 6 | } -------------------------------------------------------------------------------- /packages/vplayer/.stackblitzrc: -------------------------------------------------------------------------------- 1 | { 2 | "startCommand": "npm start", 3 | "env": { 4 | "ENABLE_CJS_IMPORTS": true 5 | } 6 | } -------------------------------------------------------------------------------- /packages/vplayer/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/packages/vplayer/public/favicon.ico -------------------------------------------------------------------------------- /packages/astro-ui/head/stylesheet/src/index.js: -------------------------------------------------------------------------------- 1 | import Stylesheet from './components/Stylesheet.astro' 2 | 3 | export default Stylesheet -------------------------------------------------------------------------------- /www/public/styles/global.css: -------------------------------------------------------------------------------- 1 | *{ 2 | box-sizing: border-box; 3 | margin: 0; 4 | padding: 0; 5 | font-size: calc(1em + 1vw); 6 | } -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": [ 3 | "packages/*" 4 | ], 5 | "npmClient":"yarn", 6 | "useWorkspaces":true, 7 | "version": "independent" 8 | } 9 | -------------------------------------------------------------------------------- /www/public/assets/fonts/dev-hell/DevelopmentHell-KP3A.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/dev-hell/DevelopmentHell-KP3A.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/final-frontier/FinalFrontier-new.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/final-frontier/FinalFrontier-new.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/final-frontier/FinalFrontier-old.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/final-frontier/FinalFrontier-old.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/noto-sans/noto-sans-v14-latin-700.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/noto-sans/noto-sans-v14-latin-700.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/noto-sans/noto-sans-v14-latin-italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/noto-sans/noto-sans-v14-latin-italic.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-600.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-600.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-800.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-800.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/noto-sans/noto-sans-v14-latin-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/noto-sans/noto-sans-v14-latin-regular.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/noto-sans/noto-sans-v14-latin-700italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/noto-sans/noto-sans-v14-latin-700italic.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-regular.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-600italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-600italic.ttf -------------------------------------------------------------------------------- /www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-800italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aFuzzyBear/astro-academy/HEAD/www/public/assets/fonts/nunito-sans/nunito-sans-v6-latin-800italic.ttf -------------------------------------------------------------------------------- /packages/vplayer/src/components/plyr.js: -------------------------------------------------------------------------------- 1 | import Plyr from 'plyr' 2 | 3 | const players = document.querySelectorAll('#player') 4 | let plyr= new Plyr(players) 5 | console.log(players,plyr) 6 | // export default Plyr -------------------------------------------------------------------------------- /www/.gitignore: -------------------------------------------------------------------------------- 1 | # build output 2 | dist 3 | 4 | # dependencies 5 | node_modules/ 6 | .snowpack/ 7 | 8 | # logs 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | 13 | # environment variables 14 | .env 15 | .env.production 16 | 17 | # macOS-specific files 18 | .DS_Store 19 | -------------------------------------------------------------------------------- /packages/vplayer/.gitignore: -------------------------------------------------------------------------------- 1 | # build output 2 | dist 3 | 4 | # dependencies 5 | node_modules/ 6 | .snowpack/ 7 | 8 | # logs 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | 13 | # environment variables 14 | .env 15 | .env.production 16 | 17 | # macOS-specific files 18 | .DS_Store 19 | -------------------------------------------------------------------------------- /packages/astro-ui/head/stylesheet/.gitignore: -------------------------------------------------------------------------------- 1 | # build output 2 | dist 3 | 4 | # dependencies 5 | node_modules/ 6 | .snowpack/ 7 | 8 | # logs 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | 13 | # environment variables 14 | .env 15 | .env.production 16 | 17 | # macOS-specific files 18 | .DS_Store 19 | -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- 1 | # Commands to start on workspace startup 2 | tasks: 3 | - init: yarn install 4 | command: yarn build 5 | # Once astro is on [vsx](https://open-vsx.org/), we should be able to specify it as an extension as well! 6 | # https://www.gitpod.io/docs/vscode-extensions 7 | # vscode: 8 | # extensions: 9 | # - astro-build.astro-vscode 10 | -------------------------------------------------------------------------------- /www/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@example/minimal", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "dev": "astro dev", 7 | "start": "astro dev", 8 | "build": "astro build", 9 | "preview": "astro preview" 10 | }, 11 | "devDependencies": { 12 | "astro": "^0.20.5", 13 | "astro-ui-stylesheet": "^1.0.5" 14 | }, 15 | "dependencies": {} 16 | } 17 | -------------------------------------------------------------------------------- /packages/vplayer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@example/minimal", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "dev": "astro dev", 7 | "start": "astro dev", 8 | "build": "astro build", 9 | "preview": "astro preview" 10 | }, 11 | "devDependencies": { 12 | "astro": "^0.20.7", 13 | "plyr": "^3.6.8", 14 | "prop-types": "^15.7.2" 15 | }, 16 | "dependencies": { 17 | "react-aptor": "^1.2.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /packages/vplayer/src/pages/index.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import Vplayer from '../components/Vplyr.astro' 3 | 4 | --- 5 | 6 | 7 | 8 | 9 | 10 | 11 | Welcome to Astro 12 | 13 | 14 | 15 |

Welcome to Astro

16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "browser": true, 4 | "es2021": true, 5 | "node": true 6 | }, 7 | "extends": [ 8 | "eslint:recommended", 9 | "plugin:@typescript-eslint/recommended" 10 | ], 11 | "parser": "@typescript-eslint/parser", 12 | "parserOptions": { 13 | "ecmaVersion": 12, 14 | "sourceType": "module" 15 | }, 16 | "plugins": [ 17 | "@typescript-eslint" 18 | ], 19 | "rules": { 20 | } 21 | }; 22 | -------------------------------------------------------------------------------- /www/src/pages/index.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import Stylesheet from "astro-ui-stylesheet" 3 | --- 4 | 5 | 6 | 7 | 8 | 12 | Welcome to Astro 13 | 14 | 15 |

16 | Astro Academy 17 |

18 |

19 | Astro Academy 20 |

21 |

22 | Astro Academy 23 |

24 |

25 | Astro Academy 26 |

27 |
28 | Astro Academy 29 |
30 | 31 | 32 | -------------------------------------------------------------------------------- /www/astro.config.mjs: -------------------------------------------------------------------------------- 1 | // Full Astro Configuration API Documentation: 2 | // https://docs.astro.build/reference/configuration-reference 3 | 4 | // @type-check enabled! 5 | // VSCode and other TypeScript-enabled text editors will provide auto-completion, 6 | // helpful tooltips, and warnings if your exported object is invalid. 7 | // You can disable this by removing "@ts-check" and `@type` comments below. 8 | 9 | // @ts-check 10 | export default /** @type {import('astro').AstroUserConfig} */ ({ 11 | // Comment out "renderers: []" to enable Astro's default component support. 12 | renderers: [], 13 | }); 14 | -------------------------------------------------------------------------------- /www/snowpack.config.js: -------------------------------------------------------------------------------- 1 | // Snowpack Configuration File 2 | // See all supported options: https://www.snowpack.dev/reference/configuration 3 | 4 | /** @type {import("snowpack").SnowpackUserConfig } */ 5 | module.exports = { 6 | alias:{ 7 | Pages:'./src/pages', 8 | Components:'./src/components', 9 | Layouts:'./src/layouts', 10 | Data:'./src/data' 11 | }, 12 | mount: { 13 | /* ... */ 14 | }, 15 | plugins: [ 16 | /* ... */ 17 | ], 18 | packageOptions: { 19 | /* ... */ 20 | }, 21 | devOptions: { 22 | /* ... */ 23 | }, 24 | buildOptions: { 25 | /* ... */ 26 | }, 27 | }; 28 | -------------------------------------------------------------------------------- /packages/astro-ui/head/stylesheet/astro.config.mjs: -------------------------------------------------------------------------------- 1 | // Full Astro Configuration API Documentation: 2 | // https://docs.astro.build/reference/configuration-reference 3 | 4 | // @type-check enabled! 5 | // VSCode and other TypeScript-enabled text editors will provide auto-completion, 6 | // helpful tooltips, and warnings if your exported object is invalid. 7 | // You can disable this by removing "@ts-check" and `@type` comments below. 8 | 9 | // @ts-check 10 | export default /** @type {import('astro').AstroUserConfig} */ ({ 11 | // Comment out "renderers: []" to enable Astro's default component support. 12 | renderers: [], 13 | }); 14 | -------------------------------------------------------------------------------- /packages/vplayer/astro.config.mjs: -------------------------------------------------------------------------------- 1 | // Full Astro Configuration API Documentation: 2 | // https://docs.astro.build/reference/configuration-reference 3 | 4 | // @type-check enabled! 5 | // VSCode and other TypeScript-enabled text editors will provide auto-completion, 6 | // helpful tooltips, and warnings if your exported object is invalid. 7 | // You can disable this by removing "@ts-check" and `@type` comments below. 8 | 9 | // @ts-check 10 | export default /** @type {import('astro').AstroUserConfig} */ ({ 11 | // Comment out "renderers: []" to enable Astro's default component support. 12 | renderers: ['@astrojs/renderer-react'], 13 | }); 14 | -------------------------------------------------------------------------------- /packages/astro-ui/head/stylesheet/src/pages/index.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import Stylesheet from '../components/Stylesheet.astro' 3 | 4 | --- 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Welcome to Astro 13 | 21 | 22 | 23 | 24 |

Welcome to Astro

25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /packages/vplayer/README.md: -------------------------------------------------------------------------------- 1 | # Astro Video Component 2 | 3 | 4 | 5 | 6 | ## 🧞 Commands 7 | 8 | All commands are run from the root of the project, from a terminal: 9 | 10 | | Command | Action | 11 | |:----------------|:--------------------------------------------| 12 | | `npm install` | Installs dependencies | 13 | | `npm run dev` | Starts local dev server at `localhost:3000` | 14 | | `npm run build` | Build your production site to `./dist/` | 15 | 16 | ## 👀 Want to learn more? 17 | 18 | Feel free to check [our documentation](https://github.com/snowpackjs/astro) or jump into our [Discord server](https://astro.build/chat). 19 | -------------------------------------------------------------------------------- /packages/vplayer/src/components/Vplyr.astro: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | --- 4 | 5 |
6 |
7 |
8 | 16 | 21 | 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Astro Academy 2 | 3 | Welcome to the Astro Academy, here we are seeking to build and open learning experience to help onboard new and existing web developers with the Astro Framework. 4 | 5 | This project is currently a Work In Progress. It is at the very start of its germination phase, whereby we are currently working on the site, its components and the content that would be used. 6 | 7 | We are committed to providing a free and valuable learning experience for as many as possible. 8 | 9 | The Academy would be Astro centric also allowing for space to focus to the extrinsic areas of knowledge that would be required to become proficient at using Astro as a framework. 10 | 11 | As the project grows we would be better able to provide more information about its progress along with with roadmaps, announcements, contributions guides etc. 12 | 13 | We thank you for your interest at this present moment. If you are at all interested with this project, please do *watch* it on github. 14 | 15 | 16 | Many thanks -------------------------------------------------------------------------------- /packages/astro-ui/head/stylesheet/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "astro-ui-stylesheet", 3 | "author": "aFuzzyBear", 4 | "keywords": ["astro","astro component","astro stylesheet"], 5 | "description": "Astro StyleSheet Link Component, This single Component provides the interface to apply many stylesheets in one place, have it also apply relevant sanitize.css files that are required", 6 | "license": "MIT", 7 | "version": "1.0.5", 8 | "homepage": "https://github.com/aFuzzyBear/astro-academy/tree/master/packages/astro-ui/head/stylesheet", 9 | "bugs": { 10 | "url": "https://github.com/aFuzzyBear/astro-academy/tree/master/packages/astro-ui/head/stylesheet/issues" 11 | }, 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/aFuzzyBear/astro-academy.git"}, 15 | 16 | "files": [ 17 | "src/components/Stylesheet.astro", 18 | "src/index.js" 19 | ], 20 | "exports":"./src/index.js", 21 | "scripts": { 22 | "dev": "astro dev", 23 | "start": "astro dev", 24 | "build": "astro build", 25 | "preview": "astro preview" 26 | }, 27 | "devDependencies": { 28 | "astro": "^0.20.6" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "astro-academy", 3 | "private": true, 4 | "description": "", 5 | "version": "1.0.0", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/aFuzzyBear/astro-academy.git" 12 | }, 13 | "keywords": [], 14 | "author": "", 15 | "license": "ISC", 16 | "bugs": { 17 | "url": "https://github.com/aFuzzyBear/astro-academy/issues" 18 | }, 19 | "homepage": "https://github.com/aFuzzyBear/astro-academy#readme", 20 | "devDependencies": { 21 | "@typescript-eslint/eslint-plugin": "^4.31.1", 22 | "@typescript-eslint/parser": "^4.31.1", 23 | "astro": "^0.20.5", 24 | "eslint": "^7.32.0", 25 | "lerna": "^4.0.0", 26 | "prettier": "^2.4.0", 27 | "typescript": "^4.4.3" 28 | }, 29 | "engines": { 30 | "node": "^13.20.0 || ^14.13.1 || >=16.0.0" 31 | }, 32 | "volta": { 33 | "node": "14.16.1", 34 | "npm": "7.11.2", 35 | "yarn": "1.22.10" 36 | }, 37 | "workspaces": [ 38 | "examples/*", 39 | "guides/*", 40 | "lessons/*", 41 | "www" 42 | ] 43 | } 44 | -------------------------------------------------------------------------------- /www/README.md: -------------------------------------------------------------------------------- 1 | # [Astro](https://astro.build) 2 | 3 | Inside of your Astro project, you'll see the following folders and files: 4 | 5 | ``` 6 | / 7 | ├── public/ 8 | │ ├── robots.txt 9 | │ └── favicon.ico 10 | ├── src/ 11 | │ └── pages/ 12 | │ └── index.astro 13 | └── package.json 14 | ``` 15 | 16 | Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. 17 | 18 | There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. 19 | 20 | Any static assets, like images, can be placed in the `public/` directory. 21 | 22 | ## 🧞 Commands 23 | 24 | All commands are run from the root of the project, from a terminal: 25 | 26 | | Command | Action | 27 | |:----------------|:--------------------------------------------| 28 | | `npm install` | Installs dependencies | 29 | | `npm run dev` | Starts local dev server at `localhost:3000` | 30 | | `npm run build` | Build your production site to `./dist/` | 31 | 32 | ## 👀 Want to learn more? 33 | 34 | Feel free to check [our documentation](https://github.com/snowpackjs/astro) or jump into our [Discord server](https://astro.build/chat). 35 | -------------------------------------------------------------------------------- /www/public/styles/typography.css: -------------------------------------------------------------------------------- 1 | /* Development Hell - latin */ 2 | @font-face { 3 | font-family: 'Development Hell'; 4 | font-style: normal; 5 | src: url('../assets/fonts/dev-hell/DevelopmentHell-KP3A.ttf'); 6 | } 7 | /* Final Frontier Old - latin*/ 8 | @font-face { 9 | font-family: 'Final Frontier Old'; 10 | font-style: normal; 11 | src: url('../assets/fonts/final-frontier/FinalFrontier-old.ttf'); 12 | } 13 | /* Final Frontier New - latin */ 14 | @font-face { 15 | font-family: 'Final Frontier New'; 16 | font-style: normal; 17 | src: url('../assets/fonts/final-frontier/FinalFrontier-new.ttf'); 18 | } 19 | /* nunito-sans-regular - latin */ 20 | @font-face { 21 | font-family: 'Nunito Sans'; 22 | font-style: normal; 23 | font-weight: 400; 24 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-regular.ttf'); 25 | } 26 | /* nunito-sans-600 - latin */ 27 | @font-face { 28 | font-family: 'Nunito Sans'; 29 | font-style: normal; 30 | font-weight: 600; 31 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-600.ttf'); 32 | } 33 | /* nunito-sans-600italic - latin */ 34 | @font-face { 35 | font-family: 'Nunito Sans'; 36 | font-style: italic; 37 | font-weight: 600; 38 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-600italic.ttf'); 39 | } 40 | /* nunito-sans-800 - latin */ 41 | @font-face { 42 | font-family: 'Nunito Sans'; 43 | font-style: normal; 44 | font-weight: 800; 45 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-800.ttf'); 46 | } 47 | /* nunito-sans-800italic - latin */ 48 | @font-face { 49 | font-family: 'Nunito Sans'; 50 | font-style: italic; 51 | font-weight: 800; 52 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-800italic.ttf'); /* IE9 Compat Modes */ 53 | } 54 | /* noto-sans-regular - latin */ 55 | @font-face { 56 | font-family: 'Noto Sans'; 57 | font-style: normal; 58 | font-weight: 400; 59 | src: url('../assets/fonts/noto-sans/noto-sans-v14-latin-regular.ttf'); 60 | } 61 | /* noto-sans-700 - latin */ 62 | @font-face { 63 | font-family: 'Noto Sans'; 64 | font-style: normal; 65 | font-weight: 700; 66 | src: url('../assets/fonts/noto-sans/noto-sans-v14-latin-700.ttf'); 67 | } 68 | /* noto-sans-700italic - latin */ 69 | @font-face { 70 | font-family: 'Noto Sans'; 71 | font-style: italic; 72 | font-weight: 700; 73 | src: url('../assets/fonts/noto-sans/noto-sans-v14-latin-700italic.ttf'); 74 | } 75 | 76 | html{ 77 | font-family: Noto Sans, 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; 78 | font-weight: 700; 79 | ; 80 | } -------------------------------------------------------------------------------- /www/public/styles/typography.scss: -------------------------------------------------------------------------------- 1 | /* Development Hell - latin */ 2 | @font-face { 3 | font-family: 'Development Hell'; 4 | font-style: normal; 5 | src: url('../assets/fonts/dev-hell/DevelopmentHell-KP3A.ttf'); 6 | } 7 | /* Final Frontier Old - latin*/ 8 | @font-face { 9 | font-family: 'Final Frontier Old'; 10 | font-style: normal; 11 | src: url('../assets/fonts/final-frontier/FinalFrontier-old.ttf'); 12 | } 13 | /* Final Frontier New - latin */ 14 | @font-face { 15 | font-family: 'Final Frontier New'; 16 | font-style: normal; 17 | src: url('../assets/fonts/final-frontier/FinalFrontier-new.ttf'); 18 | } 19 | /* nunito-sans-regular - latin */ 20 | @font-face { 21 | font-family: 'Nunito Sans'; 22 | font-style: normal; 23 | font-weight: 400; 24 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-regular.ttf'); 25 | } 26 | /* nunito-sans-600 - latin */ 27 | @font-face { 28 | font-family: 'Nunito Sans'; 29 | font-style: normal; 30 | font-weight: 600; 31 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-600.ttf'); 32 | } 33 | /* nunito-sans-600italic - latin */ 34 | @font-face { 35 | font-family: 'Nunito Sans'; 36 | font-style: italic; 37 | font-weight: 600; 38 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-600italic.ttf'); 39 | } 40 | /* nunito-sans-800 - latin */ 41 | @font-face { 42 | font-family: 'Nunito Sans'; 43 | font-style: normal; 44 | font-weight: 800; 45 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-800.ttf'); 46 | } 47 | /* nunito-sans-800italic - latin */ 48 | @font-face { 49 | font-family: 'Nunito Sans'; 50 | font-style: italic; 51 | font-weight: 800; 52 | src: url('../assets/fonts/nunito-sans/nunito-sans-v6-latin-800italic.ttf'); /* IE9 Compat Modes */ 53 | } 54 | /* noto-sans-regular - latin */ 55 | @font-face { 56 | font-family: 'Noto Sans'; 57 | font-style: normal; 58 | font-weight: 400; 59 | src: url('../assets/fonts/noto-sans/noto-sans-v14-latin-regular.ttf'); 60 | } 61 | /* noto-sans-700 - latin */ 62 | @font-face { 63 | font-family: 'Noto Sans'; 64 | font-style: normal; 65 | font-weight: 700; 66 | src: url('../assets/fonts/noto-sans/noto-sans-v14-latin-700.ttf'); 67 | } 68 | /* noto-sans-700italic - latin */ 69 | @font-face { 70 | font-family: 'Noto Sans'; 71 | font-style: italic; 72 | font-weight: 700; 73 | src: url('../assets/fonts/noto-sans/noto-sans-v14-latin-700italic.ttf'); 74 | } 75 | 76 | html{ 77 | font-family: Noto Sans, 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; 78 | font-weight: 700; 79 | ; 80 | } 81 | 82 | h -------------------------------------------------------------------------------- /packages/vplayer/src/components/react-plyr.tsx: -------------------------------------------------------------------------------- 1 | /* eslint-disable react/self-closing-comp */ 2 | import React, { HTMLProps, MutableRefObject } from 'react' 3 | import PlyrJS, { Options, SourceInfo, PlyrEvent as PlyrJSEvent } from 'plyr' 4 | import PropTypes from 'prop-types' 5 | import useAptor from 'react-aptor' 6 | 7 | export type PlyrInstance = PlyrJS 8 | export type PlyrEvent = PlyrJSEvent 9 | export type PlyrCallback = (this: PlyrJS, event: PlyrEvent) => void 10 | 11 | export type PlyrProps = Omit, 'ref'> & { 12 | source?: SourceInfo 13 | options?: Options 14 | } 15 | export type HTMLPlyrVideoElement = HTMLVideoElement & { plyr?: PlyrInstance } 16 | 17 | export type APITypes = ReturnType> 18 | 19 | /* REACT-APTOR */ 20 | const instantiate = (node, { options, source }) => { 21 | const plyr = new PlyrJS(node, options || {}) 22 | plyr.source = source 23 | return plyr 24 | } 25 | 26 | const destroy = (plyr: PlyrJS | null) => { 27 | if (plyr) plyr.destroy() 28 | } 29 | 30 | // eslint-disable-next-line @typescript-eslint/no-empty-function 31 | const noop = () => {} 32 | 33 | const getAPI = (plyr: PlyrJS | null) => { 34 | if (!plyr) 35 | return () => 36 | new Proxy( 37 | { plyr: { source: null } }, 38 | { 39 | get: (target, prop) => { 40 | if (prop === 'plyr') { 41 | return target[prop] 42 | } 43 | return noop 44 | }, 45 | } 46 | ) 47 | 48 | return () => ({ 49 | /** 50 | * Plyr instance with all of its functionality 51 | */ 52 | plyr, 53 | }) 54 | } 55 | 56 | const Plyr = React.forwardRef((props, ref) => { 57 | const { source, options = null, ...rest } = props 58 | 59 | const raptorRef = useAptor( 60 | ref, 61 | { 62 | instantiate, 63 | getAPI, 64 | destroy, 65 | params: { options, source }, 66 | }, 67 | [options, source] 68 | ) 69 | 70 | return ( 71 |