• 纯前端个人主页分享


    1. html>
    2. <html lang="en">
    3. <head>
    4. <meta charset="UTF-8">
    5. <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    6. <meta name="viewport" content="width=device-width, initial-scale=1">
    7. <link rel="shortcut icon" href="http://q.qlogo.cn/g?b=qq&nk=3487297072&s=160" type="image/ico" >
    8. <title>云川title>
    9. <link rel="stylesheet" href="style.css">
    10. head>
    11. <style>
    12. * {
    13. margin: 0;
    14. padding: 0;
    15. }
    16. body {
    17. background-image: url('img.png'); /* 更换为你的背景图片路径 */
    18. background-size: cover;
    19. background-position: center;
    20. margin: 0;
    21. font-family: Arial, sans-serif;
    22. }
    23. .main {
    24. display: flex;
    25. justify-content: center;
    26. align-items: center;
    27. min-height: 100vh;
    28. }
    29. .box {
    30. background-color: rgba(255, 255, 255, 0.8);
    31. padding: 20px;
    32. border-radius: 10px;
    33. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    34. max-width: 400px;
    35. width: 100%;
    36. text-align: center;
    37. }
    38. @-webkit-keyframes 'Box' {
    39. from {
    40. box-shadow: 0 1px 5px rgba(0, 0, 0, 0);
    41. }
    42. to {
    43. box-shadow: 0 1px 60px rgba(20, 50, 18, 0.2);
    44. }
    45. }
    46. .info {
    47. display: flex;
    48. width: 100%;
    49. flex-direction: column;
    50. align-items: center;
    51. }
    52. .head {
    53. position: relative;
    54. width: 100px;
    55. height: 100px;
    56. margin-top: 45px;
    57. margin-bottom: 20px;
    58. border-radius: 52px;
    59. background-image: linear-gradient(to right, #0acffe 0%, #495aff 100%);
    60. padding: 1px;
    61. }
    62. .head img {
    63. border-radius: 50%;
    64. width: 100px;
    65. height: 100px;
    66. }
    67. .head:hover {
    68. transition: 1s;
    69. transform: scale(1.2);
    70. }
    71. /* 介绍部分 */
    72. .jieshao {
    73. display: flex;
    74. justify-content: center;
    75. align-items: center;
    76. margin: 10px 0;
    77. }
    78. .apps {
    79. display: flex;
    80. align-items: center;
    81. margin: 10px 0;
    82. background-color: #03a9f4;
    83. padding: 5px;
    84. border-radius: 20px;
    85. box-shadow: 0 1px 15px rgba(0, 0, 0, 0.3);
    86. }
    87. .apps img {
    88. width: 25px;
    89. height: 25px;
    90. border-radius: 15px;
    91. margin-right: 5px;
    92. }
    93. .apps h2 {
    94. font-size: 15px;
    95. font-weight: bold;
    96. color: white;
    97. }
    98. .jie-img1 {
    99. width: 40px;
    100. height: 40px;
    101. margin-left: 10px;
    102. }
    103. .jie-img1:hover {
    104. transition: 1s;
    105. transform: scale(1.1);
    106. }
    107. .jieshao h1 {
    108. font-size: 16px;
    109. text-align: center;
    110. color: #646464;
    111. margin-left: 10px;
    112. }
    113. .jieshao h3 {
    114. font-size: 14px;
    115. text-align: center;
    116. color: #646464;
    117. }
    118. .jieshao a {
    119. text-decoration: none;
    120. }
    121. .jieshao h1:hover {
    122. color: transparent;
    123. background-image: linear-gradient(to right, #0acffe 0%, #495aff 100%);
    124. -webkit-background-clip: text;
    125. font-size: 18px;
    126. transition-duration: 0.5s;
    127. }
    128. .div1 {
    129. height: 100%;
    130. width: 100%;
    131. background-color: #60c2e0;
    132. position: absolute;
    133. margin: 0 auto;
    134. text-align: center;
    135. line-height: 100px;
    136. }
    137. .pic {
    138. width: 100px;
    139. height: 100px;
    140. border-radius: 50px;
    141. transition: all 0.2s;
    142. border: 0px solid #fff;
    143. }
    144. .sign {
    145. position: absolute;
    146. bottom: 0;
    147. right: 0;
    148. display: flex;
    149. width: 25px;
    150. height: 25px;
    151. background-image: linear-gradient(to right, #0acffe 0%, #495aff 100%);
    152. border: 2px solid #fff;
    153. border-radius: 15px;
    154. justify-content: center;
    155. align-items: center;
    156. transition: all 0.3s;
    157. }
    158. .sign:hover {
    159. background-image: linear-gradient(to right, #43e97b 0%, #38f9d7 100%);
    160. }
    161. .box1 {
    162. width: 100%;
    163. max-width: 800px;
    164. background-color: #fff;
    165. padding: 0px;
    166. box-shadow: 0 1px 15px rgba(60, 90, 10, 0.15);
    167. border-radius: 25px;
    168. margin-top: 10px;
    169. transition: all 0.5s;
    170. }
    171. .box1:hover {
    172. margin: 10px;
    173. padding: 5%;
    174. box-shadow: 0 10px 50px rgba(10, 200, 60, 0.25);
    175. }
    176. .box2 {
    177. width: 33%;
    178. background-color: #29bedb;
    179. padding: 2px;
    180. box-shadow: 0 1px 15px rgba(20, 50, 18, 0.2);
    181. border-radius: 25px;
    182. display: flex;
    183. flex-direction: row;
    184. -webkit-animation-name: "D1";
    185. -webkit-animation-duration: 4s;
    186. -webkit-animation-iteration-count: 1;
    187. }
    188. @-webkit-keyframes 'D1' {
    189. from {
    190. width: 30%;
    191. }
    192. to {
    193. width: 33%;
    194. }
    195. }
    196. .box3 {
    197. width: 65%;
    198. background-color: #4da2f7;
    199. padding: 2px;
    200. box-shadow: 0 1px 15px rgba(50, 50, 58, 0.2);
    201. border-radius: 25px;
    202. display: flex;
    203. flex-direction: row;
    204. -webkit-animation-name: "D2";
    205. -webkit-animation-duration: 4s;
    206. -webkit-animation-iteration-count: 1;
    207. }
    208. @-webkit-keyframes 'D2' {
    209. from {
    210. width: 35%;
    211. }
    212. to {
    213. width: 65%;
    214. }
    215. }
    216. .box4 {
    217. width: 85%;
    218. background-color: #864df7fc;
    219. padding: 2px;
    220. box-shadow: 0 1px 15px rgba(20, 50, 18, 0.2);
    221. border-radius: 25px;
    222. display: flex;
    223. flex-direction: row;
    224. -webkit-animation-name: "D3";
    225. -webkit-animation-duration: 4s;
    226. -webkit-animation-iteration-count: 1;
    227. }
    228. @-webkit-keyframes 'D3' {
    229. from {
    230. width: 45%;
    231. }
    232. to {
    233. width: 85%;
    234. }
    235. }
    236. .box5 {
    237. width: 55%;
    238. background-color: #f74dbcfc;
    239. padding: 2px;
    240. box-shadow: 0 1px 15px rgba(20, 50, 18, 0.2);
    241. border-radius: 25px;
    242. display: flex;
    243. flex-direction: row;
    244. -webkit-animation-name: "D4";
    245. -webkit-animation-duration: 4s;
    246. -webkit-animation-iteration-count: 1;
    247. }
    248. @-webkit-keyframes 'D4' {
    249. from {
    250. width: 30%;
    251. }
    252. to {
    253. width: 55%;
    254. }
    255. }
    256. .box6 {
    257. width: 40%;
    258. background-color: #f7cf4dfc;
    259. padding: 2px;
    260. box-shadow: 0 1px 15px rgba(20, 50, 18, 0.2);
    261. border-radius: 25px;
    262. display: flex;
    263. flex-direction: row;
    264. -webkit-animation-name: "D5";
    265. -webkit-animation-duration: 4s;
    266. -webkit-animation-iteration-count: 1;
    267. }
    268. @-webkit-keyframes 'D5' {
    269. from {
    270. width: 30%;
    271. }
    272. to {
    273. width: 40%;
    274. }
    275. }
    276. .cut {
    277. width: 100%;
    278. height: 3px;
    279. margin: 5px 0;
    280. /* background: linear-gradient(to right,#F74D81FC, #4D57F7FC,#DDF74DFC,#53F74DFC); */
    281. background-image: linear-gradient(-20deg, #b721ff 0%, #21d4fd 100%);
    282. border-radius: 50px;
    283. }
    284. .label {
    285. margin: 8px 0;
    286. font-size: 13px;
    287. color: #424242c4;
    288. }
    289. .label1 {
    290. font-size: 11px;
    291. color: #2d5256c9;
    292. font-weight: 500;
    293. }
    294. .name h1 {
    295. margin: 0 5px;
    296. font-size: 25px;
    297. font-weight: 600;
    298. color: #646464;
    299. transition: all 0.5s;
    300. }
    301. .name h1:hover {
    302. color: transparent;
    303. background-image: linear-gradient(to right, #0acffe 0%, #495aff 100%);
    304. -webkit-background-clip: text;
    305. }
    306. .shu {
    307. width: 55%;
    308. font-size: 10px;
    309. color: #000000b3;
    310. background-color: #05262a30;
    311. box-shadow: 0 1px 15px rgba(20, 50, 18, 0.2);
    312. border-radius: 15px;
    313. padding: 7px;
    314. font-weight: bold;
    315. -webkit-animation-name: "W1";
    316. -webkit-animation-duration: 4s;
    317. -webkit-animation-iteration-count: 1;
    318. }
    319. @-webkit-keyframes 'W1' {
    320. from {
    321. width: 50%;
    322. }
    323. to {
    324. width: 55%;
    325. }
    326. }
    327. }
    328. style>
    329. <body>
    330. <div class="main">
    331. <div class="box">
    332. <div class="info">
    333. <div class="head" >
    334. <img class="pic" src="https://www.yckc666.com/wp-content/uploads/2024/05/longnian.gif" alt="">
    335. div>
    336. <div class="name">
    337. <h1> Tom 云川h1>
    338. <div class="cut">div>
    339. div>
    340. <div class="label" id="qianming">
    341. 世人千万,再难遇我
    342. div>
    343. <div class="jieshao">
    344. <img class="jie-img1" src="img1.png">
    345. <h1>学生h1>
    346. <img class="jie-img1" src="zhao.png">
    347. <h1>安卓h1>
    348. <img class="jie-img1" src="lianxi.png">
    349. <h1>联系h1>
    350. div>
    351. <div class="jieshao">
    352. <h3>应用:h3>
    353. <a href="https://yckc666.com">
    354. <div class="apps">
    355. <img src="https://www.yckc666.com/wp-content/uploads/2024/05/favicon.png">
    356. <h2>冰河h2>
    357. div>a>
    358. <a href="https://yckc666.com">
    359. <div class="apps">
    360. <img src="icon2.png">
    361. <h2>源码h2>
    362. div>a>
    363. div>
    364. div>
    365. <div class="box1">
    366. <div class="box2">
    367. <div class="shu">
    368. <center>
    369. java 30%
    370. center>
    371. div>
    372. div>
    373. div>
    374. <div class="box1">
    375. <div class="box3">
    376. <div class="shu">
    377. <center>
    378. HTML 30%
    379. center>
    380. div>
    381. div>
    382. div>
    383. <div class="box1">
    384. <div class="box4">
    385. <div class="shu">
    386. <center>
    387. Android 60%
    388. center>
    389. div>
    390. div>
    391. div>
    392. <div class="box1">
    393. <div class="box5">
    394. <div class="shu">
    395. <center>
    396. CSS 40%
    397. center>
    398. div>
    399. div>
    400. div>
    401. <div class="box1">
    402. <div class="box6">
    403. <div class="shu">
    404. <center>
    405. C++ 35%
    406. center>
    407. div>
    408. div>
    409. div>
    410. <div class="label1">
    411. <center style="margin-top: 15px;">
    412. By.YunChuan @2024 源码
    413. center>
    414. div>
    415. div>
    416. div>
    417. div>
    418. <script src="main.js">
    419. script>
    420. body>
    421. html>

    感兴趣可以一起交流哦~

  • 相关阅读:
    nginx配置实例-负载均衡
    面试时需要注意的事项
    【离散化 二维差分】391. 完美矩形
    正点原子嵌入式linux驱动开发——Linux WIFI驱动
    3 内存访问
    自学系列之小游戏---贪吃蛇(vue3+ts+vite+element-plus+sass)(module.scss + tsx)
    【学习笔记】go协程和通道
    全国中职网络安全B模块之国赛题远程代码执行渗透测试 PHPstudy的后门漏洞分析
    四、文件管理(一)文件系统基础
    快速排序超详细讲解C语言
  • 原文地址:https://blog.csdn.net/m0_59073956/article/details/139687599