mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
feat: add picture mode
This commit is contained in:
parent
6f0e62b54d
commit
70044eb6c0
21 changed files with 663 additions and 371 deletions
64
resources/content/content.css
Normal file
64
resources/content/content.css
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
@font-face {
|
||||
font-family: "tttgbnumber";
|
||||
src: url("../../../../../resources/font/tttgbnumber.ttf");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
user-select: none;
|
||||
}
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
font-size: 16px;
|
||||
width: 800px;
|
||||
color: #1e1f20;
|
||||
transform: scale(1.5);
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
.container {
|
||||
width: 800px;
|
||||
padding: 20px 15px 10px 15px;
|
||||
background-color: #f5f6fb;
|
||||
}
|
||||
.head_box {
|
||||
border-radius: 15px;
|
||||
font-family: tttgbnumber;
|
||||
padding: 10px 20px;
|
||||
position: relative;
|
||||
box-shadow: 0 5px 10px 0 rgb(0 0 0 / 15%);
|
||||
}
|
||||
.sender {
|
||||
font-size: 12px;
|
||||
color: #4d4d4d;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.question {
|
||||
background: #009FFF; /* fallback for old browsers */
|
||||
background: -webkit-linear-gradient(to right, #ec2F4B, #009FFF); /* Chrome 10-25, Safari 5.1-6 */
|
||||
background: linear-gradient(to right, #ec2F4B, #009FFF); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
|
||||
color: #000000;
|
||||
text-shadow: 0 0 10px white;
|
||||
font-weight: bold;
|
||||
border-radius: 5px;
|
||||
padding: 8px 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.answer {
|
||||
position: relative;
|
||||
border-radius: 5px;
|
||||
padding: 8px 10px;
|
||||
background: #dbe9ff;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.logo {
|
||||
margin-top: 10px;
|
||||
font-size: 14px;
|
||||
font-family: "tttgbnumber";
|
||||
text-align: center;
|
||||
color: #7994a7;
|
||||
}
|
||||
31
resources/content/index.html
Normal file
31
resources/content/index.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="{{pluResPath}}content/content.css" />
|
||||
<link rel="shortcut icon" href="#" />
|
||||
</head>
|
||||
{{@headStyle}}
|
||||
|
||||
<body style="display:none;" onload="document.body.style.display='block'">
|
||||
<div class="container" id="container">
|
||||
<!-- <div class="sender">-->
|
||||
<!-- {{senderName}}-->
|
||||
<!-- </div>-->
|
||||
<div class="question">
|
||||
{{question}}
|
||||
</div>
|
||||
<div class="answer">
|
||||
<div id="content">
|
||||
{{@ content}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="logo">Response to {{senderName}} Created By Yunzai-Bot and ChatGPT-Plugin</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue