fix: switch to experimental image support and import missing images

This commit is contained in:
Derrick Hammer 2023-08-12 21:53:49 -04:00
parent 1d37d5b79a
commit cd278e3a46
5 changed files with 13533 additions and 13583 deletions

View File

@ -1,9 +1,11 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config'
import tailwind from '@astrojs/tailwind'; import tailwind from '@astrojs/tailwind'
import react from '@astrojs/react'; import react from '@astrojs/react'
import image from '@astrojs/image';
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
integrations: [tailwind({ config: { applyBaseStyles: false } }), image(), react()], integrations: [tailwind({ config: { applyBaseStyles: false } }), react()],
}); experimental: {
assets: true
}
})

27093
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,6 @@
"semantic-release": "semantic-release" "semantic-release": "semantic-release"
}, },
"dependencies": { "dependencies": {
"@astrojs/image": "^0.16.6",
"@astrojs/react": "^2.1.1", "@astrojs/react": "^2.1.1",
"@astrojs/tailwind": "^3.1.1", "@astrojs/tailwind": "^3.1.1",
"@types/react": "^18.2.0", "@types/react": "^18.2.0",

View File

@ -1,9 +1,12 @@
---
import gfxLeft from "../../../assets/home-gfx-left.png"
---
<section <section
id="web3" id="web3"
class="flex flex-col lg:flex-row lg:bg-transparent lg:p-0 gap-10 mx-10 sm:mx-20 xl:mx-40" class="flex flex-col lg:flex-row lg:bg-transparent lg:p-0 gap-10 mx-10 sm:mx-20 xl:mx-40"
> >
<div class="flex-1 -ml-10 -mr-20 lg:-ml-40 lg:mr-0"> <div class="flex-1 -ml-10 -mr-20 lg:-ml-40 lg:mr-0">
<img src="/src/assets/home-gfx-left.png" class="w-full" /> <img src={gfxLeft.src} class="w-full" />
</div> </div>
<div class="flex-1 -mt-40 space-y-10 flex flex-col justify-center"> <div class="flex-1 -mt-40 space-y-10 flex flex-col justify-center">
<h2 <h2

View File

@ -1,4 +1,5 @@
--- ---
import logo from "../../../assets/lume-logo.png";
const { view } = Astro.props; const { view } = Astro.props;
function getActiveClass(linkView) { function getActiveClass(linkView) {
@ -10,7 +11,7 @@ function getActiveClass(linkView) {
<div class="logo"> <div class="logo">
<!-- TODO: Hide this logo and show simplified when 320 > width --> <!-- TODO: Hide this logo and show simplified when 320 > width -->
<a href="/"> <a href="/">
<img class="w-44" src="/src/assets/lume-logo.png" alt="Lume Logo" /> <img class="w-44" src={logo.src} alt="Lume Logo" />
</a> </a>
</div> </div>
<menu <menu