Skip to content

Commit ad2d050

Browse files
committed
refactor: svg wrapper components in subfolder & all usage same
1 parent ae5dc20 commit ad2d050

File tree

4 files changed

+11
-78
lines changed

4 files changed

+11
-78
lines changed

components/InternetFoundationSvg.vue renamed to components/SvgWrapper/InternetFoundationSvg.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { useNav } from '@slidev/client'
33
import { computed } from 'vue'
4-
import SvgElementFilter from './SvgElementFilter.vue'
4+
import SvgElementFilter from '../SvgElementFilter.vue'
55
import mySvgContent from '/assets/excalidraw-drawings/internet-foundation_light.svg?raw'
66
77
const { clicks } = useNav()
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
22
import { useNav } from '@slidev/client'
33
import { computed } from 'vue'
4-
import SvgElementFilter from './SvgElementFilter.vue'
4+
import SvgElementFilter from '../SvgElementFilter.vue'
55
import mySvgContent from '/assets/excalidraw-drawings/Web-Mindmap_light.svg?raw'
66
77
const { clicks } = useNav()
@@ -15,12 +15,9 @@ const elementsToShow = computed<number[] | 'all'>(() => {
1515
</script>
1616

1717
<template>
18-
<div class="flex justify-center">
19-
<SvgElementFilter
20-
class="h-[90%] -mt-10"
21-
:display-indices="elementsToShow"
22-
svg-class="h-full"
23-
:svg-content="mySvgContent"
24-
/>
25-
</div>
18+
<SvgElementFilter
19+
:display-indices="elementsToShow"
20+
svg-class="w-full"
21+
:svg-content="mySvgContent"
22+
/>
2623
</template>

content/need-for-portfolio.md

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -2,70 +2,4 @@
22
layout: basic
33
---
44

5-
# Why 3D in the Web?
6-
7-
it is interactive against an static image
8-
9-
# Website Structure
10-
11-
- Frontend, interpreted by the Browser/Client, has UI & UX
12-
- HTML
13-
- CSS
14-
- JavaScript (here APIs)
15-
- TypeScript
16-
- Backend, interpreted by the Server, no UI
17-
many languages possible, depends on the Interpreter on the Server, e.g.
18-
- JavaScript
19-
- TypeScript
20-
- Java
21-
- Kotlin
22-
- Python
23-
- PHP
24-
25-
# What do I need for my Portfolio?
26-
27-
- Domain
28-
- Server
29-
- Self-Hosted
30-
- Service-Oriented
31-
- (v)Root
32-
- Cloud (e.g. Cloudflare, GitHub Pages, Vercel, Netlify, etc.)
33-
- CMS for changing data with an editor like approach: both static & dynamic data
34-
- headless CMS vs TODO
35-
- Program yourself: Do not code anymore in plain HTML or PHP, use Metaframeworks
36-
- Integrations: e.g. outsource your search, add a shop, etc.
37-
38-
--
39-
40-
Think about the structure:
41-
42-
Static Data vs Dynamic Data
43-
Long living Data vs Short Living Data
44-
Your Data at Build vs Data in Production
45-
46-
left: build, right: database
47-
48-
--
49-
50-
Also think about:
51-
What data can be shipped to the client and what not?
52-
53-
--
54-
55-
# 3D in the Web
56-
57-
- Renderer: WebGL
58-
- Libraries: ThreeJS
59-
- Format: gltf/glb (gcode) <- copy existing slide?
60-
61-
benchy 3D example
62-
63-
--
64-
65-
example portfolio showroom
66-
game showcase zlig
67-
68-
--
69-
70-
AI
71-
https://lmarena.ai/
5+
# foo

content/what-is-the-web.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ layout: basic
44

55
# What is the Web?
66

7-
<WhatIsTheWeb />
7+
<div class="w-full flex justify-center -mt-25">
8+
<WhatIsTheWebSvg class="w-full" />
9+
</div>
810

911
<!-- dummy only to force the click count on this slide manually -->
1012
<div v-click="1" />

0 commit comments

Comments
 (0)