|
| 1 | +import type { MetadataRoute } from 'next'; |
| 2 | + |
| 3 | +export type ManifestWithScopeExtensions = MetadataRoute.Manifest & { |
| 4 | + scope_extensions?: Array<{ |
| 5 | + origin: string; |
| 6 | + }>; |
| 7 | + edge_side_panel?: { |
| 8 | + preferred_width?: number; |
| 9 | + }; |
| 10 | +}; |
| 11 | + |
| 12 | +export default function manifest(): ManifestWithScopeExtensions { |
| 13 | + return { |
| 14 | + name: "Alexander Sullivan's Portfolio", |
| 15 | + short_name: "Alexander Sullivan's Portfolio", |
| 16 | + description: 'Portfolio showcase for Alexander Joo-Hyun Sullivan.', |
| 17 | + start_url: '/', |
| 18 | + display: 'standalone', |
| 19 | + background_color: '#131518', |
| 20 | + theme_color: '#131518', |
| 21 | + orientation: 'any', |
| 22 | + scope: '/', |
| 23 | + lang: 'en', |
| 24 | + dir: 'ltr', |
| 25 | + id: '/', |
| 26 | + display_override: ['standalone', 'minimal-ui', 'window-controls-overlay'], |
| 27 | + launch_handler: { |
| 28 | + client_mode: ['focus-existing', 'auto'], |
| 29 | + }, |
| 30 | + prefer_related_applications: false, |
| 31 | + scope_extensions: [ |
| 32 | + { |
| 33 | + origin: 'https://alexjsully.me/', |
| 34 | + }, |
| 35 | + { |
| 36 | + origin: 'https://alexjsully.com/', |
| 37 | + }, |
| 38 | + ], |
| 39 | + edge_side_panel: {}, |
| 40 | + icons: [ |
| 41 | + { |
| 42 | + src: '/icon/android-chrome-36x36.png', |
| 43 | + sizes: '36x36', |
| 44 | + type: 'image/png', |
| 45 | + }, |
| 46 | + { |
| 47 | + src: '/icon/android-chrome-48x48.png', |
| 48 | + sizes: '48x48', |
| 49 | + type: 'image/png', |
| 50 | + }, |
| 51 | + { |
| 52 | + src: '/icon/android-chrome-72x72.png', |
| 53 | + sizes: '72x72', |
| 54 | + type: 'image/png', |
| 55 | + }, |
| 56 | + { |
| 57 | + src: '/icon/android-chrome-96x96.png', |
| 58 | + sizes: '96x96', |
| 59 | + type: 'image/png', |
| 60 | + }, |
| 61 | + { |
| 62 | + src: '/icon/android-chrome-144x144.png', |
| 63 | + sizes: '144x144', |
| 64 | + type: 'image/png', |
| 65 | + }, |
| 66 | + { |
| 67 | + src: '/icon/android-chrome-192x192.png', |
| 68 | + sizes: '192x192', |
| 69 | + type: 'image/png', |
| 70 | + }, |
| 71 | + { |
| 72 | + src: '/icon/android-chrome-256x256.png', |
| 73 | + sizes: '256x256', |
| 74 | + type: 'image/png', |
| 75 | + }, |
| 76 | + { |
| 77 | + src: '/icon/android-chrome-384x384.png', |
| 78 | + sizes: '384x384', |
| 79 | + type: 'image/png', |
| 80 | + }, |
| 81 | + { |
| 82 | + src: '/icon/android-chrome-512x512.png', |
| 83 | + sizes: '512x512', |
| 84 | + type: 'image/png', |
| 85 | + }, |
| 86 | + { |
| 87 | + src: '/icon/maskable_icon_x48.png', |
| 88 | + sizes: '48x48', |
| 89 | + type: 'image/png', |
| 90 | + purpose: 'maskable', |
| 91 | + }, |
| 92 | + { |
| 93 | + src: '/icon/maskable_icon_x72.png', |
| 94 | + sizes: '72x72', |
| 95 | + type: 'image/png', |
| 96 | + purpose: 'maskable', |
| 97 | + }, |
| 98 | + { |
| 99 | + src: '/icon/maskable_icon_x96.png', |
| 100 | + sizes: '96x96', |
| 101 | + type: 'image/png', |
| 102 | + purpose: 'maskable', |
| 103 | + }, |
| 104 | + { |
| 105 | + src: '/icon/maskable_icon_x128.png', |
| 106 | + sizes: '128x128', |
| 107 | + type: 'image/png', |
| 108 | + purpose: 'maskable', |
| 109 | + }, |
| 110 | + { |
| 111 | + src: '/icon/maskable_icon_x192.png', |
| 112 | + sizes: '192x192', |
| 113 | + type: 'image/png', |
| 114 | + purpose: 'maskable', |
| 115 | + }, |
| 116 | + { |
| 117 | + src: '/icon/maskable_icon_x384.png', |
| 118 | + sizes: '384x384', |
| 119 | + type: 'image/png', |
| 120 | + purpose: 'maskable', |
| 121 | + }, |
| 122 | + { |
| 123 | + src: '/icon/maskable_icon_x512.png', |
| 124 | + sizes: '512x512', |
| 125 | + type: 'image/png', |
| 126 | + purpose: 'maskable', |
| 127 | + }, |
| 128 | + { |
| 129 | + src: '/icon/maskable_icon.png', |
| 130 | + sizes: 'any', |
| 131 | + type: 'image/png', |
| 132 | + purpose: 'any', |
| 133 | + }, |
| 134 | + { |
| 135 | + src: '/icon/safari-pinned-tab.svg', |
| 136 | + sizes: 'any', |
| 137 | + purpose: 'monochrome', |
| 138 | + type: 'image/svg+xml', |
| 139 | + }, |
| 140 | + { |
| 141 | + src: '/icon/favicon.ico', |
| 142 | + sizes: 'any', |
| 143 | + type: 'image/x-icon', |
| 144 | + }, |
| 145 | + ], |
| 146 | + screenshots: [ |
| 147 | + { |
| 148 | + src: './icon/screenshot1.webp', |
| 149 | + label: 'Landing page', |
| 150 | + form_factor: 'wide', |
| 151 | + sizes: '1280x800', |
| 152 | + type: 'image/webp', |
| 153 | + }, |
| 154 | + { |
| 155 | + src: './icon/screenshot2.webp', |
| 156 | + label: 'Mobile landing page', |
| 157 | + form_factor: 'narrow', |
| 158 | + sizes: '1072x1930', |
| 159 | + type: 'image/webp', |
| 160 | + }, |
| 161 | + { |
| 162 | + src: './icon/screenshot3.webp', |
| 163 | + label: 'Current and previous projects and experiences', |
| 164 | + form_factor: 'wide', |
| 165 | + sizes: '1600x1089', |
| 166 | + type: 'image/webp', |
| 167 | + }, |
| 168 | + ], |
| 169 | + categories: [ |
| 170 | + 'bioinformatics', |
| 171 | + 'business', |
| 172 | + 'education', |
| 173 | + 'entertainment', |
| 174 | + 'finance', |
| 175 | + 'games', |
| 176 | + 'health', |
| 177 | + 'lifestyle', |
| 178 | + 'medical', |
| 179 | + 'personal', |
| 180 | + 'personalization', |
| 181 | + 'portfolio', |
| 182 | + 'productivity', |
| 183 | + 'research', |
| 184 | + 'resume', |
| 185 | + 'science', |
| 186 | + 'social', |
| 187 | + 'video games', |
| 188 | + 'virtual reality', |
| 189 | + 'website', |
| 190 | + ], |
| 191 | + }; |
| 192 | +} |
0 commit comments