File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" project" >
3
3
<h1 class =" project-title" >{{ title }}</h1 >
4
- <img class =" project-image" :alt =" title" :src =" imageUrl " >
4
+ <img class =" project-image" :alt =" title" :src =" image " >
5
5
<p class =" project-text" ><slot /></p >
6
6
</div >
7
7
</template >
8
8
9
9
<script setup>
10
- const props = defineProps ({
10
+ defineProps ({
11
11
title: {
12
12
type: String ,
13
13
required: true
@@ -17,8 +17,6 @@ const props = defineProps({
17
17
required: true
18
18
}
19
19
})
20
-
21
- const imageUrl = new URL (props .image , import .meta.url).href
22
20
</script >
23
21
24
22
<style scoped>
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" container" >
3
- <ProjectCard title =" Weather Station" image =" ../assets/weather_station.png " >
3
+ <ProjectCard title =" Weather Station" : image =" weatherStationUrl " >
4
4
This is our <a href =" https://weather.codihacks.org/" target =" _blank" >weather station</a > web app project!
5
5
It features a physical weather station, an API server written in Rust, and a web app frontend written in Vue.
6
6
7
7
</ProjectCard >
8
- <ProjectCard title =" Space Race" image =" ../assets/space_race.png " >
8
+ <ProjectCard title =" Space Race" : image =" spaceRaceUrl " >
9
9
This is our Spaceship Race project! It is a spaceship game created with the Lua framework <a href =" https://love2d.org/" target =" _blank" >Love2D</a >.
10
10
It lacks levels, so if you are interested in helping, please open an issue on our GitHub.
11
11
</ProjectCard >
14
14
15
15
<script setup>
16
16
import ProjectCard from ' ./ProjectCard.vue'
17
+ import weatherStationUrl from ' ../assets/weather_station.png'
18
+ import spaceRaceUrl from ' ../assets/space_race.png'
17
19
</script >
18
20
19
21
<style scoped>
Original file line number Diff line number Diff line change 1
- import { defineConfig } from " vite" ;
2
- import vue from " @vitejs/plugin-vue" ;
1
+ import { defineConfig } from ' vite'
2
+ import vue from ' @vitejs/plugin-vue'
3
3
4
4
export default defineConfig ( {
5
5
plugins : [
6
6
vue ( {
7
7
template : {
8
- compilerOptions : { } ,
9
- } ,
10
- } ) ,
11
- ] ,
12
- } ) ;
8
+ compilerOptions : { }
9
+ }
10
+ } )
11
+ ]
12
+ } )
You can’t perform that action at this time.
0 commit comments