diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 94f4e16..cc53891 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,7 +7,7 @@ Thank you for your interest in building the coziest web experience for people li You will need [to install nodejs](https://nodejs.org/en/download) and [pnpm](https://pnpm.io/installation) if you do not have them yet in your machine. This project is built with the following tech -1. TypeScript, HTML, SCSS - even just knowing basic JS and CSS will give you familiarity of the code +1. TypeScript, HTML, CSS - even just knowing basic JS and CSS will give you familiarity of the code 1. [Astro](https://astro.build) - Astro is the chosen framework, please read throught the basics on their docs if you are unfamiliar - we don't use any framework that ships to the browser, we only write Astro components for server-side rendering, and vanilla DOM manipulation via `script` tags. 1. [@extractus/article-extractor](https://www.npmjs.com/package/@extractus/article-extractor) - Article Extractor is the library we use to fetch and extract article content diff --git a/README.md b/README.md index ea594ad..707180a 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,6 @@ We are thankful for all the building blocks provided by the following projects: 1. [@ayco/astro-sw](https://ayco.io/n/@ayco/astro-sw) for taking app's service worker, and injecting needed dynamic assets & variables 1. [@extractus/article-extractor](https://www.npmjs.com/package/@extractus/article-extractor) for the amazing scraping of articles 1. [astro-iconify](https://www.npmjs.com/package/astro-iconify) for easily using icon-sets in [iconify](https://icon-sets.iconify.design/) -1. [sass](https://www.npmjs.com/package/sass) for some nested styling 1. [ultrahtml](https://www.npmjs.com/package/ultrahtml) for any cleanup and transformation we do on the received article content 1. [fastify](https://fastify.dev/) for our production server and [nginx](https://nginx.org/) as reverse proxy diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cac1b7b..37c968f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2235,8 +2235,8 @@ packages: pkg-types@1.2.0: resolution: {integrity: sha512-+ifYuSSqOQ8CqP4MbZA5hDpb97n3E8SVWdJe+Wms9kj745lmd3b7EZJiqvmLwAlmRfjrI7Hi5z3kdBJ93lFNPA==} - postcss@8.4.43: - resolution: {integrity: sha512-gJAQVYbh5R3gYm33FijzCZj7CHyQ3hWMgJMprLUlIYqCwTeZhBQ19wp0e9mA25BUbEvY5+EXuuaAjqQsrBxQBQ==} + postcss@8.4.44: + resolution: {integrity: sha512-Aweb9unOEpQ3ezu4Q00DPvvM2ZTUitJdNKeP/+uQgr1IBIqu574IaZoURId7BKtWMREwzKa9OgzPzezWGPWFQw==} engines: {node: ^10 || ^12 || >=14} preferred-pm@4.0.0: @@ -2472,8 +2472,8 @@ packages: engines: {node: '>=12.0.0', npm: '>=5.6.0'} hasBin: true - sonic-boom@4.0.1: - resolution: {integrity: sha512-hTSD/6JMLyT4r9zeof6UtuBDpjJ9sO08/nmS5djaA9eozT9oOlNdpXSnzcgj4FTqpk3nkLrs61l4gip9r1HCrQ==} + sonic-boom@4.1.0: + resolution: {integrity: sha512-NGipjjRicyJJ03rPiZCJYjwlsuP2d1/5QUviozRXC7S3WdVWNK5e3Ojieb9CCyfhq2UC+3+SRd9nG3I2lPRvUw==} source-map-js@1.2.0: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} @@ -5556,7 +5556,7 @@ snapshots: quick-format-unescaped: 4.0.4 real-require: 0.2.0 safe-stable-stringify: 2.5.0 - sonic-boom: 4.0.1 + sonic-boom: 4.1.0 thread-stream: 3.1.0 pkg-dir@4.2.0: @@ -5569,7 +5569,7 @@ snapshots: mlly: 1.7.1 pathe: 1.1.2 - postcss@8.4.43: + postcss@8.4.44: dependencies: nanoid: 3.3.7 picocolors: 1.0.1 @@ -5797,7 +5797,7 @@ snapshots: htmlparser2: 8.0.2 is-plain-object: 5.0.0 parse-srcset: 1.0.2 - postcss: 8.4.43 + postcss: 8.4.44 sass@1.77.8: dependencies: @@ -5897,7 +5897,7 @@ snapshots: arg: 5.0.2 sax: 1.4.1 - sonic-boom@4.0.1: + sonic-boom@4.1.0: dependencies: atomic-sleep: 1.0.0 @@ -6118,7 +6118,7 @@ snapshots: vite@5.4.2(@types/node@22.5.2)(sass@1.77.8): dependencies: esbuild: 0.21.5 - postcss: 8.4.43 + postcss: 8.4.44 rollup: 4.21.2 optionalDependencies: '@types/node': 22.5.2 diff --git a/public/article.css b/public/article.css new file mode 100644 index 0000000..ca328eb --- /dev/null +++ b/public/article.css @@ -0,0 +1,62 @@ +div#post { + + h1.title { + font-size: xx-large; + margin: 0; + } + + h1, h2, h3, h4, h5, h6 { + line-height: 1.2; + } + + .source, .publish-info { + font-size: smaller; + color: #555; + } + + .source { + font-weight: bold; + } + + .publish-info { + padding-left: 0; + margin: 0; + list-style: none; + + li { + margin: 0; + } + } + + content { + p, table, ul, img { + margin: 1em 0 !important; + font-size: 20px; + } + + table { + border-collapse: collapse; + + td, th { + border: 1px solid #ccc; + padding: 0.5em; + } + } + + pre { + white-space: pre-wrap; + &:has(code) { + padding: 1em; + background: #f6f8fa; + border-radius: 5px; + } + } + + @media (max-width: 600px) { + p, table, ul, img { + font-size: 16px; + } + } + } + +} \ No newline at end of file diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index 85a9aac..0000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/src/components/AddressBar.astro b/src/components/AddressBar.astro index 608cf48..deea1ec 100644 --- a/src/components/AddressBar.astro +++ b/src/components/AddressBar.astro @@ -90,7 +90,7 @@ const { url } = Astro.props; }); - \ No newline at end of file diff --git a/src/components/SettingsPopover.astro b/src/components/SettingsPopover.astro index 7b78062..bf161df 100644 --- a/src/components/SettingsPopover.astro +++ b/src/components/SettingsPopover.astro @@ -56,7 +56,7 @@ const { toggle } = Astro.props; - -