吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 811|回复: 17
收起左侧

[学习记录] 使用deepseekV3模型写的个人导航

[复制链接]
Anidea 发表于 2025-4-2 13:05
小白使用eepseekV3模型写的个人导航,附带弹窗效果,有需要的看看

[HTML] 纯文本查看 复制代码
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的个人导航</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }
         
        body {
            min-height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }
         
        .container {
            width: 100%;
            max-width: 1200px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
         
        header {
            text-align: center;
            margin-bottom: 30px;
            width: 100%;
        }
         
        .avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid rgba(255, 255, 255, 0.3);
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
         
        h1 {
            color: white;
            font-size: 2.2rem;
            margin-bottom: 10px;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
         
        .description {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }
         
        .nav-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            width: 100%;
            margin-top: 30px;
        }
         
        .nav-item {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 15px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            cursor: pointer;
            user-select: none;
        }
         
        .nav-item:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.3);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
         
        /* 弹窗样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
         
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
         
        .modal-content {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 20px;
            padding: 30px;
            width: 90%;
            max-width: 500px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.4);
            transform: translateY(20px);
            transition: all 0.3s ease;
        }
         
        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }
         
        .modal-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
         
        .modal-icon {
            width: 40px;
            height: 40px;
            margin-right: 15px;
        }
         
        .modal-title {
            color: white;
            font-size: 1.5rem;
            font-weight: bold;
        }
         
        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.7);
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
         
        .modal-close:hover {
            color: white;
            transform: rotate(90deg);
        }
         
        .modal-links {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }
         
        .modal-link {
            display: block;
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 10px;
            color: white;
            text-decoration: none;
            transition: all 0.2s ease;
            text-align: center;
        }
         
        .modal-link:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateX(5px);
        }
         
        .nav-icon {
            width: 50px;
            height: 50px;
            margin-bottom: 15px;
            object-fit: contain;
        }
         
        .nav-title {
            color: white;
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 8px;
            text-align: center;
        }
         
        .nav-desc {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
            text-align: center;
            line-height: 1.4;
        }
         
        footer {
            margin-top: 50px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            text-align: center;
        }
         
        [url=home.php?mod=space&uid=945662]@media[/url] (max-width: 768px) {
            .nav-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
             
            h1 {
                font-size: 1.8rem;
            }
             
            .description {
                font-size: 1rem;
            }
             
            .modal-content {
                padding: 20px;
                width: 95%;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <img src="https://via.placeholder.com/120" alt="头像" class="avatar">
            <h1>我的个人导航</h1>
            <p class="description">这里是我的个人导航页面,收集了我常用的网站和工具,方便快速访问。</p>
        </header>
         
        <div class="nav-grid">
            <div class="nav-item" onclick="openModal('GitHub', 'https://cdn.jsdelivr.net/gh/devicons/devicon/icons/github/github-original.svg', '代码托管平台', [
                {name: 'GitHub主页', url: 'https://github.com'},
                {name: '趋势项目', url: 'https://github.com/trending'},
                {name: '探索', url: 'https://github.com/explore'},
                {name: '市场', url: 'https://github.com/marketplace'}
            ])">
                <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/github/github-original.svg" alt="GitHub" class="nav-icon">
                <h3 class="nav-title">GitHub</h3>
                <p class="nav-desc">代码托管平台</p>
            </div>
             
            <div class="nav-item" onclick="openModal('Stack Overflow', 'https://cdn.jsdelivr.net/gh/devicons/devicon/icons/stackoverflow/stackoverflow-original.svg', '开发者问答社区', [
                {name: '首页', url: 'https://stackoverflow.com'},
                {name: '问题', url: 'https://stackoverflow.com/questions'},
                {name: '标签', url: 'https://stackoverflow.com/tags'},
                {name: '用户', url: 'https://stackoverflow.com/users'}
            ])">
                <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/stackoverflow/stackoverflow-original.svg" alt="Stack Overflow" class="nav-icon">
                <h3 class="nav-title">Stack Overflow</h3>
                <p class="nav-desc">开发者问答社区</p>
            </div>
             
            <div class="nav-item" onclick="openModal('LeetCode', 'https://cdn.jsdelivr.net/gh/devicons/devicon/icons/leetcode/leetcode-original.svg', '算法练习平台', [
                {name: '题库', url: 'https://leetcode.com'},
                {name: '竞赛', url: 'https://leetcode.com/contest'},
                {name: '讨论', url: 'https://leetcode.com/discuss'},
                {name: '学习', url: 'https://leetcode.com/explore'}
            ])">
                <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/leetcode/leetcode-original.svg" alt="LeetCode" class="nav-icon">
                <h3 class="nav-title">LeetCode</h3>
                <p class="nav-desc">算法练习平台</p>
            </div>
             
            <div class="nav-item" onclick="openModal('YouTube', 'https://cdn.jsdelivr.net/gh/devicons/devicon/icons/youtube/youtube-original.svg', '视频分享平台', [
                {name: '首页', url: 'https://www.youtube.com'},
                {name: '趋势', url: 'https://www.youtube.com/feed/trending'},
                {name: '订阅', url: 'https://www.youtube.com/feed/subscriptions'},
                {name: '历史', url: 'https://www.youtube.com/feed/history'}
            ])">
                <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/youtube/youtube-original.svg" alt="YouTube" class="nav-icon">
                <h3 class="nav-title">YouTube</h3>
                <p class="nav-desc">视频分享平台</p>
            </div>
             
            <div class="nav-item" onclick="openModal('Twitter', 'https://cdn.jsdelivr.net/gh/devicons/devicon/icons/twitter/twitter-original.svg', '社交媒体平台', [
                {name: '首页', url: 'https://twitter.com'},
                {name: '探索', url: 'https://twitter.com/explore'},
                {name: '通知', url: 'https://twitter.com/notifications'},
                {name: '消息', url: 'https://twitter.com/messages'}
            ])">
                <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/twitter/twitter-original.svg" alt="Twitter" class="nav-icon">
                <h3 class="nav-title">Twitter</h3>
                <p class="nav-desc">社交媒体平台</p>
            </div>
             
            <div class="nav-item" onclick="openModal('知乎', 'https://static.zhihu.com/heifetz/favicon.ico', '问答社区', [
                {name: '首页', url: 'https://www.zhihu.com'},
                {name: '发现', url: 'https://www.zhihu.com/explore'},
                {name: '热榜', url: 'https://www.zhihu.com/hot'},
                {name: '关注', url: 'https://www.zhihu.com/follow'}
            ])">
                <img src="https://static.zhihu.com/heifetz/favicon.ico" alt="知乎" class="nav-icon">
                <h3 class="nav-title">知乎</h3>
                <p class="nav-desc">问答社区</p>
            </div>
             
            <div class="nav-item" onclick="openModal('哔哩哔哩', 'https://www.bilibili.com/favicon.ico', '视频弹幕网站', [
                {name: '首页', url: 'https://www.bilibili.com'},
                {name: '热门', url: 'https://www.bilibili.com/v/popular'},
                {name: '动画', url: 'https://www.bilibili.com/v/douga'},
                {name: '游戏', url: 'https://www.bilibili.com/v/game'}
            ])">
                <img src="https://www.bilibili.com/favicon.ico" alt="哔哩哔哩" class="nav-icon">
                <h3 class="nav-title">哔哩哔哩</h3>
                <p class="nav-desc">视频弹幕网站</p>
            </div>
             
            <div class="nav-item" onclick="openModal('Gmail', 'https://cdn.jsdelivr.net/gh/devicons/devicon/icons/google/google-original.svg', '电子邮件服务', [
                {name: '收件箱', url: 'https://mail.google.com'},
                {name: '星标', url: 'https://mail.google.com/mail/u/0/#starred'},
                {name: '已发送', url: 'https://mail.google.com/mail/u/0/#sent'},
                {name: '草稿', url: 'https://mail.google.com/mail/u/0/#drafts'}
            ])">
                <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/google/google-original.svg" alt="Gmail" class="nav-icon">
                <h3 class="nav-title">Gmail</h3>
                <p class="nav-desc">电子邮件服务</p>
            </div>
        </div>
         
        <footer>
            <p>&#169; 2025 我的个人导航 | 使用HTML和CSS构建</p>
        </footer>
    </div>
 
    <!-- 弹窗结构 -->
    <div class="modal-overlay" id="modalOverlay">
        <div class="modal-content">
            <button class="modal-close" onclick="closeModal()">×</button>
            <div class="modal-header">
                <img src="" alt="图标" class="modal-icon" id="modalIcon">
                <h2 class="modal-title" id="modalTitle"></h2>
            </div>
            <p class="nav-desc" id="modalDesc"></p>
            <div class="modal-links" id="modalLinks">
                <!-- 链接将通过JavaScript动态生成 -->
            </div>
        </div>
    </div>
 
    <script>
        // 打开弹窗函数
        function openModal(title, icon, desc, links) {
            const modal = document.getElementById('modalOverlay');
            const modalTitle = document.getElementById('modalTitle');
            const modalIcon = document.getElementById('modalIcon');
            const modalDesc = document.getElementById('modalDesc');
            const modalLinks = document.getElementById('modalLinks');
             
            // 设置弹窗内容
            modalTitle.textContent = title;
            modalIcon.src = icon;
            modalDesc.textContent = desc;
             
            // 生成链接
            modalLinks.innerHTML = '';
            links.forEach(link => {
                const a = document.createElement('a');
                a.href = link.url;
                a.target = '_blank';
                a.className = 'modal-link';
                a.textContent = link.name;
                modalLinks.appendChild(a);
            });
             
            // 显示弹窗
            modal.classList.add('active');
            document.body.style.overflow = 'hidden'; // 禁止页面滚动
        }
         
        // 关闭弹窗函数
        function closeModal() {
            const modal = document.getElementById('modalOverlay');
            modal.classList.remove('active');
            document.body.style.overflow = ''; // 恢复页面滚动
        }
         
        // 点击弹窗外部关闭弹窗
        document.getElementById('modalOverlay').addEventListener('click', function(e) {
            if (e.target === this) {
                closeModal();
            }
        });
         
        // ESC键关闭弹窗
        document.addEventListener('keydown', function(e) {
            if (e.key === 'Escape') {
                closeModal();
            }
        });
    </script>
</body>
</html>




wechat_2025-04-02_130146_467.png
2.png

免费评分

参与人数 2吾爱币 +1 热心值 +1 收起 理由
L蓝岸L + 1 我很赞同!
快乐的小驹 + 1 谢谢@Thanks!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

sym6688 发表于 2025-4-2 14:44
这个厉害了
langzqf 发表于 2025-4-2 15:02
langzqf 发表于 2025-4-2 15:06
hua520 发表于 2025-4-2 15:31
langzqf 发表于 2025-4-2 15:06
IE11打开也是乱码,而且点击网址后不弹窗

为啥用IE浏览器,直接用最新的浏览器,如果不是因为某些网站限制必须用ie都不建议用ie浏览器,那怕用edge都好
iSummer999 发表于 2025-4-2 15:34
怎么和deepseek交互的,提示语是什么
menyhai 发表于 2025-4-2 15:51
这是个好思路,厉害人物
anran6228889 发表于 2025-4-2 16:04
牛,怎么实现的,我怎么做不出来
massle 发表于 2025-4-2 16:10
做出来的界面挺美观的,我用deepseek做的界面太丑了
L蓝岸L 发表于 2025-4-2 16:53
我之前也用AI制作了一个类似的个人书签小网站,因为是浏览器书签收藏时没分类很乱,所以就搓了一个 Dkf79eSsK8.png
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-4-15 19:01

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表