body.component
This commit is contained in:
parent
95e272390d
commit
454a36f453
115
src/app/body/body.component.html
Normal file
115
src/app/body/body.component.html
Normal file
@ -0,0 +1,115 @@
|
||||
<div class="w-full flex">
|
||||
<div class="flex w-3/5 flex-wrap">
|
||||
<div class="m-4 shadow-lg w-full h-auto rounded-lg border-2">
|
||||
<h1 class="px-6 pt-4 pb-0 text-2xl text-orange-600 font-bold">
|
||||
学院新闻
|
||||
<span class="float-right text-lg text-gray-400 hover:text-red-400">
|
||||
更多>>
|
||||
</span>
|
||||
</h1>
|
||||
<ul class="mx-4 px-6 pb-2 pt-2 text-sm leading-8 list-disc">
|
||||
<li class="hover:text-blue-400">很久以前,那还是我用win98的时候有次我系统崩溃了</li>
|
||||
<li class="hover:text-blue-400">因为我是电脑白痴</li>
|
||||
<li class="hover:text-blue-400">我朋友给我介绍了一个高手来帮我修电脑</li>
|
||||
<li class="hover:text-blue-400">他看了一下电脑,问我有没有98的盘</li>
|
||||
<li class="hover:text-blue-400">我说没有</li>
|
||||
<li class="hover:text-blue-400">他想了一下,叫我把固定电话拿给他</li>
|
||||
<li class="hover:text-blue-400">我想修电脑要电话干什么</li>
|
||||
<li class="hover:text-blue-400">但人家是高手,我也不好说什么</li>
|
||||
<li class="hover:text-blue-400">就把电话拔下来给他了</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-nowrap">
|
||||
<div class="ml-4 mr-1 shadow-lg w-1/2 h-auto rounded-lg border-2">
|
||||
<h1 class="px-3 pt-2 pb-0 text-2xl text-orange-600 font-bold">
|
||||
学术动态
|
||||
<span class="float-right text-lg text-gray-400 hover:text-red-400">
|
||||
更多>>
|
||||
</span>
|
||||
</h1>
|
||||
<ul class="mx-3 pl-4 pr-0 pb-2 pt-2 text-sm leading-8 list-disc">
|
||||
<li class="hover:text-blue-400">他把电话线空着的一头接在电脑的一个插孔内</li>
|
||||
<li class="hover:text-blue-400">然后进入了dos</li>
|
||||
<li class="hover:text-blue-400">然后就开始在电话上不停的按着键</li>
|
||||
<li class="hover:text-blue-400">他按键的速度非常快,但是只按0,1两个键</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="mr-4 shadow-lg w-1/2 h-auto rounded-lg border-2">
|
||||
<div class="h-auto">
|
||||
<h1 class="px-3 pt-2 pb-0 text-2xl text-orange-600 font-bold flex-nowrap">
|
||||
历史学习
|
||||
<span class="float-right text-lg text-gray-400 hover:text-red-400">
|
||||
更多>>
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="flex border-2 rounded-lg m-2 p-0 h-auto justify-between flex-nowrap hover:text-blue-500 hover:shadow-lg">
|
||||
<div class="h-16 w-1/2 leading-16 pl-3 overflow-hidden">
|
||||
我渐渐的有些困,我问他这东西要搞多久
|
||||
</div>
|
||||
<div class="w-1/3 border-2">
|
||||
<img class="h-16 w-32" src="../assets/img/picture.png" alt=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex border-2 rounded-lg m-2 p-0 h-auto justify-between flex-nowrap hover:text-blue-500 hover:shadow-lg">
|
||||
<div class="h-16 w-1/2 leading-16 pl-3 overflow-hidden">
|
||||
他说要几个小时
|
||||
</div>
|
||||
<div class="w-1/3 border-2">
|
||||
<img class="h-16 w-32" src="../assets/img/picture.png" alt=""/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex border-2 rounded-lg m-2 p-0 h-auto justify-between flex-nowrap hover:text-blue-500 hover:shadow-lg">
|
||||
<div class="h-16 w-1/2 leading-16 pl-3 overflow-hidden">
|
||||
我给他倒了杯茶,就一个人去隔壁睡觉了
|
||||
</div>
|
||||
<div class="w-1/3 border-2">
|
||||
<img class="h-16 w-32" src="../assets/img/picture.png" alt=""/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w-2/5 flex-grow mb-4">
|
||||
<div class="h-full my-4 mr-4 shadow-lg rounded-lg border-2">
|
||||
<h1 class="px-6 pt-4 pb-0 text-2xl text-orange-600 font-bold">
|
||||
信息公告
|
||||
<span class="float-right text-lg text-gray-400 hover:text-red-400">
|
||||
更多>>
|
||||
</span>
|
||||
</h1>
|
||||
<ul class="mx-4 px-6 pb-2 pt-2 text-sm leading-8 list-disc">
|
||||
<li class="hover:text-blue-400">醒来的时候,一看已经过了4个多小时</li>
|
||||
<li class="hover:text-blue-400">我起身到隔壁,看见他正在98里面调试</li>
|
||||
<li class="hover:text-blue-400">过了一会儿,他说,你试试,我坐上椅子用了一下,真的好了</li>
|
||||
<li class="hover:text-blue-400">我当时也不懂电脑</li>
|
||||
<li class="hover:text-blue-400">谢过人家就走了</li>
|
||||
<li class="hover:text-blue-400">后来我慢慢对电脑有了了解</li>
|
||||
<li class="hover:text-blue-400">终于了解</li>
|
||||
<li class="hover:text-blue-400">原来当时那位高手是用机器语言编了一个98系统</li>
|
||||
<li class="hover:text-blue-400">我后来问我朋友那位高手的下落</li>
|
||||
<li class="hover:text-blue-400">朋友说前几年去了美国之后</li>
|
||||
<li class="hover:text-blue-400">杳无音讯……</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="w-fit flex flex-wrap m-4 border-2 justify-around rounded-lg shadow-lg bg-gradient-to-r from-cyan-300 to to-violet-300">
|
||||
<ul class="li-img clearfix">
|
||||
<li><img src="../assets/img/anyuse2.png" alt=""/></li>
|
||||
<li><img src="../assets/img/anyuse3.png" alt=""/></li>
|
||||
<li><img src="../assets/img/anyuse4.png" alt=""/></li>
|
||||
<li><img src="../assets/img/anyuse5.png" alt=""/></li>
|
||||
<li><img src="../assets/img/anyuse6.png" alt=""/></li>
|
||||
<li><img src="../assets/img/anyuse7.png" alt=""/></li>
|
||||
<li><img src="../assets/img/anyuse8.png" alt=""/></li>
|
||||
<li><img src="../assets/img/anyuse9.png" alt=""/></li>
|
||||
</ul>
|
||||
</div>
|
30
src/app/body/body.component.scss
Normal file
30
src/app/body/body.component.scss
Normal file
@ -0,0 +1,30 @@
|
||||
@tailwind base;
|
||||
@tailwind utilities;
|
||||
@tailwind components;
|
||||
|
||||
.li-img li {
|
||||
list-style: none;
|
||||
float: left;
|
||||
width: 25%; /*四列图片排列*/
|
||||
height: 175px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.li-img li img {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
top: 50%; /*li高度的一半*/
|
||||
transform: translateY(-50%); /*再向上移动自身的50%*/
|
||||
}
|
||||
|
||||
/*清除浮动*/
|
||||
.clearfix:after {
|
||||
position: relative;
|
||||
content: '';
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
visibility: hidden;
|
||||
clear: both;
|
||||
}
|
0
src/app/body/body.component.ts
Normal file
0
src/app/body/body.component.ts
Normal file
Loading…
Reference in New Issue
Block a user