-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathπ _home.py
196 lines (191 loc) Β· 7.95 KB
/
π _home.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
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
import streamlit as st
from utils import universal_setup
def main():
universal_setup(page_icon="π ")
html_content = r"""
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NoteCraft</title>
<style>
body {
margin: 0;
padding: 0;
}
.container {
text-align: center;
padding: 50px;
}
.header {
font-size: 3em;
margin-bottom: 20px;
}
.description {
font-size: 1.2em;
margin-bottom: 40px;
}
.info-section {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}
.info-box {
padding: 20px;
border: 2px solid #000;
border-radius: 10px;
cursor: pointer;
transition: transform 0.3s;
width: 200px;
text-align: left;
}
.info-box:hover {
transform: scale(1.1);
}
.info-title {
font-size: 1.5em;
margin-bottom: 10px;
}
.info-content {
font-size: 1em;
}
.more-info {
margin-top: 40px;
font-size: 1.2em;
display: inline-block;
}
.more-info div {
margin-bottom: 20px;
cursor: pointer;
transition: color 0.3s;
}
.more-info div:hover {
color: #ff4b4b;
}
.more-info a {
text-decoration: none;
color: inherit;
display: inline-block;
}
.feature-link {
text-decoration: none;
color: #31333f !important;
display: block;
border: 2px solid #000;
border-radius: 10px;
background-color: #f9f9f9;
transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
margin-top: 50px;
padding: 20px;
}
.feature-link:hover {
color: #ff4b4b;
border-color: #ff4b4b;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
text-decoration: none;
transform: scale(1.07);
}
.feature-link:hover .feature-title, .feature-link:hover .feature-content {
color: #ff4b4b;
}
.feature-title {
font-size: 2em;
margin-bottom: 20px;
}
.feature-content {
font-size: 1.2em;
text-align: left;
}
</style>
</head>
<body>
<div class="container">
<div class="header">NoteCraft, Your Study Companion, Powered by AI</div>
<div class="description">
NoteCraft is an AI-powered tool that can generates notes, and flashcards from any PDF! <br>
</div>
<div class="info-section">
<div class="info-box">
<div class="info-title">AI-Powered π€</div>
<div class="info-content">Leverage the power of AI to create accurate and concise notes.</div>
</div>
<div class="info-box">
<div class="info-title">Easy to Use β¨</div>
<div class="info-content">Simply upload your PDF and let NoteCraft do the rest.</div>
</div>
<div class="info-box">
<div class="info-title">Customizable βοΈ</div>
<div class="info-content">Tailor generated content to your needs.</div>
</div>
<div class="info-box">
<div class="info-title">Save Time β³</div>
<div class="info-content">Spend less time making notes and flashcards and more time studying.</div>
</div>
</div>
<a href="/Note_Generator" class="feature-link">
<div class="feature-title">Note Generator π</div>
<div class="feature-content">
<p>Generate concise notes from your PDF content using AI! Just follow these simple steps:</p>
<ul>
<li>Upload your PDF</li>
<li>Select the desired note length</li>
<li>Press "Process" and let NoteCraft handle the rest!</li>
</ul>
</div>
</a>
<a href="/Flashcard_Generator" class="feature-link">
<div class="feature-title">Flashcard Generator π</div>
<div class="feature-content">
Generate flashcards from the content of your PDF using AI!
you can choose:
<ul>
<li>Number of flashcards</li>
<li>Select the flashcard type:
<ul>
<li>Question | Answer</li>
<li>Term | Definition</li>
</ul>
</li>
</ul>
</div>
</a>
<a href="/NoteCraft_StudyKit" class="feature-link">
<div class="feature-title">NoteCraft StudyKit π</div>
<div class="feature-content">
Generates an entire interactive document which includes:
<ul>
<li>Table of Contents</li>
<li>AI-Generated Notes</li>
<li>Questions</li>
<li>Reference PDF</li>
</ul>
Can be exported as a HTML or PDF formats.
</div>
</a>
<a href="/Ask_PDF" class="feature-link">
<div class="feature-title">Ask PDF π€</div>
<div class="feature-content">
Ask PDF is a feature that allows you to ask questions about the content of your PDF and get answers using AI!
Simply upload your PDF and ask your questions!
</div>
</a>
<a href="/NoteCraft_Audible" class="feature-link">
<div class="feature-title">NoteCraft Audible ποΈ</div>
<div class="feature-content">
NoteCraft Audible allows you to turn your PDF's into a podcast! Just upload your PDF and select the voice of the speaker and press process.
</div>
</a>
<div class="more-info">
<div>Crafted by Sayed Hashim</div>
<div><a href="https://github.com/AL-Sayed1/NoteCraft" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"/></svg> View github code</a></div>
</div>
</div>
</body>
</html>
"""
st.markdown(html_content, unsafe_allow_html=True)
if __name__ == "__main__":
main()