关于我们的实验简介和实验动态页面
|
After Width: | Height: | Size: 130 KiB |
|
After Width: | Height: | Size: 457 KiB |
|
After Width: | Height: | Size: 821 KiB |
|
After Width: | Height: | Size: 295 KiB |
|
After Width: | Height: | Size: 277 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
@ -0,0 +1,60 @@
|
|||||||
|
<script setup>
|
||||||
|
import { getImageUrl } from '@/utils/function.js'
|
||||||
|
const props=defineProps({
|
||||||
|
imgUrl:{
|
||||||
|
type:String,
|
||||||
|
default:''
|
||||||
|
},
|
||||||
|
title:{
|
||||||
|
type:String,
|
||||||
|
default:''
|
||||||
|
},
|
||||||
|
content:{
|
||||||
|
type:String,
|
||||||
|
default:''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="item">
|
||||||
|
<img :src="getImageUrl(imgUrl)" alt="动态">
|
||||||
|
<div class="content">
|
||||||
|
<h1>{{title}}</h1>
|
||||||
|
<p>{{content}}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped lang="less">
|
||||||
|
.item{
|
||||||
|
width: 457px;
|
||||||
|
height: 573px;
|
||||||
|
border-radius: 20px;
|
||||||
|
box-shadow: 0 6px 25.4px 0 #DBE4F0FC;
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
overflow: hidden;
|
||||||
|
img{
|
||||||
|
width: 100%;
|
||||||
|
height: 395.02734375px;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
.content{
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
h1{
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 30px;
|
||||||
|
line-height: 100%;
|
||||||
|
letter-spacing: 0.03em;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
p{
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 1.5em;
|
||||||
|
letter-spacing: 0.03em;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||