diff --git a/sk-view-transitions.md b/sk-view-transitions.md deleted file mode 100644 index bb704a1..0000000 --- a/sk-view-transitions.md +++ /dev/null @@ -1,237 +0,0 @@ -# sk-view-transitions Project Structure - -## File Tree - -└── 📁 src/ - ├── 📁 lib/ - │ ├── 🟨 data.js - │ └── 🟨 index.js - └── 📁 routes/ - └── 📁 item/ - └── 📁 [id]/ - └── 🔥 +page.svelte - ├── 🔥 +layout.svelte - └── 🔥 +page.svelte -└── 🔧 package.json - -## File Contents - -### package.json - -```json -{ - "name": "view-transitions", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview" - }, - "devDependencies": { - "@sveltejs/adapter-auto": "^2.0.0", - "@sveltejs/kit": "^1.20.4", - "autoprefixer": "^10.4.14", - "postcss": "^8.4.24", - "postcss-load-config": "^4.0.1", - "svelte": "^4.0.5", - "tailwindcss": "^3.3.2", - "vite": "^4.4.2" - }, - "type": "module" -} - -``` - -### src/lib/data.js - -```js -export default [ - { - id: '1', - name: 'Ethereal Serenity', - excerpt: 'Capturing Tranquility', - description: 'This abstract art piece captures the essence of serenity and tranquility with its soft, flowing lines and calming pastel hues. It invites viewers to a world of peaceful contemplation.', - }, - { - id: '2', - name: 'Cosmic Whirlwind', - excerpt: 'A Journey Through the Cosmos', - description: 'A dynamic explosion of colors and shapes that resemble a cosmic whirlwind. This abstract art piece is a mesmerizing journey through the vastness of the universe.', - }, - { - id: '3', - name: 'Harmony in Chaos', - excerpt: 'Order Amidst the Chaos', - description: 'In the midst of chaos, there is a hidden order. "Harmony in Chaos" portrays the delicate balance of structured geometry within a chaotic and vibrant backdrop.', - }, - { - id: '4', - name: 'Surreal Dreamscape', - excerpt: 'Where Reality Meets Imagination', - description: 'Step into a surreal dreamscape where reality and imagination merge. This artwork will take you on a journey through the abstract and the extraordinary.', - }, - { - id: '5', - name: 'Emerald Mirage', - excerpt: 'Journey to a Lush Oasis', - description: 'Emerald Mirage is a shimmering sea of emerald and turquoise, evoking the serenity of a tranquil oasis hidden in the heart of a desert. It\'s a visual escape to a lush paradise.', - }, - { - id: '6', - name: 'Aurora Borealis Reverie', - excerpt: 'Mimicking the Northern Lights', - description: 'This abstract art piece mimics the ethereal beauty of the Northern Lights. The swirling colors and patterns create a vivid portrayal of a mystical celestial phenomenon.', - }, - { - id: '7', - name: 'Metamorphosis Unleashed', - excerpt: 'Embracing Change and Possibilities', - description: 'Metamorphosis Unleashed is a representation of change and transformation. The vivid and bold colors symbolize the limitless possibilities that come with embracing change.', - }, - { - id: '8', - name: 'Fragmented Realities', - excerpt: 'Exploring Perceptions', - description: 'Fragmented Realities delves into the fractured nature of our perception of the world. It explores the idea that our understanding of reality is composed of countless interconnected fragments.', - }, -]; - -``` - -### src/lib/index.js - -```js -// place files you want to import through the `$lib` alias in this folder. - -``` - -### src/routes/+layout.svelte - -```svelte - - -
-
- -
-
- -
-
- -``` - -### src/routes/+page.svelte - -```svelte - - -
-
- {#each items as item} - - {item.name} -

{item.name}

-

{item.excerpt}

-
- {/each} -
-
- -``` - -### src/routes/item/[id]/+page.svelte - -```svelte - - -
-
- {item.name} -
-

{item.name}

-

{item.excerpt}

-

{item.description}

- -
-
-
-
-

- Explore More From Our Collection -

-
- {#each otherItems as item} - - {item.name} -

{item.name}

-

{item.excerpt}

-
- {/each} -
-
- -``` -