diff --git a/src/components/GeneralRenderer.vue b/src/components/GeneralRenderer.vue index 87eb65c..7e503f3 100644 --- a/src/components/GeneralRenderer.vue +++ b/src/components/GeneralRenderer.vue @@ -75,6 +75,8 @@ onMounted(async () => { .renderer-container p { margin-bottom: 1rem; + display: flex; + justify-content: center; } .renderer-container code { @@ -132,6 +134,18 @@ onMounted(async () => { background-color: #222; color: #f0f0f0; } +.pod-image { + align-self: center; + filter: invert(92%); + height: auto; + max-height: 300px; + width: auto; + max-width: 100%; + margin: 10px 0; +} +.theme-light img { + filter: invert(0); +} .theme-light .renderer-container { font-family: 'Arial', sans-serif; font-size: 1rem; diff --git a/src/pages/Demos_home.vue b/src/pages/Demos_home.vue index dfbd1be..5c57fa5 100644 --- a/src/pages/Demos_home.vue +++ b/src/pages/Demos_home.vue @@ -17,7 +17,7 @@ const demos = ref([ date: '2025-2-26', author: ["Louis Zhou"], tags: ['课内'], - image: 'https://' + getDomain() + '/data/file/pod.png' + image: 'https://' + getDomain() + '/data/demos/pod/icon.png' }, ]); diff --git a/src/pages/demoPages/podExercise/Pod_page.vue b/src/pages/demoPages/podExercise/Pod_page.vue index 80aafaa..be60cec 100644 --- a/src/pages/demoPages/podExercise/Pod_page.vue +++ b/src/pages/demoPages/podExercise/Pod_page.vue @@ -1,30 +1,51 @@