TraxDinosaur commited on
Commit
f8bfa1f
1 Parent(s): 14a88fc

Changed Css And SOmething

Browse files
Files changed (3) hide show
  1. app.py +10 -3
  2. static/index.css +96 -51
  3. templates/index.html +70 -46
app.py CHANGED
@@ -6,6 +6,7 @@ import requests
6
 
7
  app = Flask(__name__)
8
 
 
9
  @app.route('/', methods=['GET', 'POST'])
10
  def home():
11
  if request.method == 'POST':
@@ -32,12 +33,18 @@ def home():
32
  webDevJs = "JavaScript Web Development" if web_javascript == 'True' else ""
33
  # print(f"Selected Web Development: {webDevPy}, {webDevJs}")
34
 
 
 
 
 
 
 
35
 
36
  url = "https://api.forefront.ai/v1/chat/completions"
37
  apiKey = Config.API_KEY
38
 
39
 
40
- Prompt = f"""From Now You Are A Tech Compnay Named 'AccioINTERN' Who Wanna Hire A Intern For {auto_Py, auto_Js, webDevPy, webDevJs} To Give InternShip With Proficiency Leval {proficiency}.
41
  I'm {name},I Want Do That Internship.So Give Me A Project To Be Approved In Your Company.
42
  Company:GetInternt, Owner:TraxDinosaur, Contact:traxdinosaur.github.io and
43
  How To Submit Project: First Goto https://s.id/AccioINTERN And Submit Your Github Username,
@@ -51,8 +58,8 @@ def home():
51
  "content": Prompt
52
  }
53
  ],
54
- "max_tokens": 500,
55
- "temperature": 0.5,
56
  }
57
 
58
  headers = {
 
6
 
7
  app = Flask(__name__)
8
 
9
+
10
  @app.route('/', methods=['GET', 'POST'])
11
  def home():
12
  if request.method == 'POST':
 
33
  webDevJs = "JavaScript Web Development" if web_javascript == 'True' else ""
34
  # print(f"Selected Web Development: {webDevPy}, {webDevJs}")
35
 
36
+ pyrogram = request.form.get('pyrogram', 'False')
37
+ ptb = request.form.get('python-telegram-bot', 'False')
38
+
39
+ pyGm = "Telegram Bot Using Pyrogram" if pyrogram == 'True' else ""
40
+ pyTgBot = "Telegram Bot Using Python-Telegram-bot" if ptb == 'True' else ""
41
+
42
 
43
  url = "https://api.forefront.ai/v1/chat/completions"
44
  apiKey = Config.API_KEY
45
 
46
 
47
+ Prompt = f"""From Now You Are A Tech Compnay Named 'AccioINTERN' Who Wanna Hire A Intern For {auto_Py, auto_Js, webDevPy, webDevJs, pyGm, pyTgBot} To Give InternShip With Proficiency Leval {proficiency}.
48
  I'm {name},I Want Do That Internship.So Give Me A Project To Be Approved In Your Company.
49
  Company:GetInternt, Owner:TraxDinosaur, Contact:traxdinosaur.github.io and
50
  How To Submit Project: First Goto https://s.id/AccioINTERN And Submit Your Github Username,
 
58
  "content": Prompt
59
  }
60
  ],
61
+ "max_tokens": 1000,
62
+ "temperature": 1,
63
  }
64
 
65
  headers = {
static/index.css CHANGED
@@ -1,107 +1,152 @@
1
  * {
2
- box-sizing: border-box;
3
  margin: 0;
4
  padding: 0;
5
- font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 
6
  }
7
 
8
  body {
9
- background-color: #f3f4f6;
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  display: flex;
11
  justify-content: center;
12
- align-items: center;
13
- height: 100vh;
 
 
 
 
 
 
 
 
14
  }
15
 
16
  .inter-form {
17
- background-color: #ffffff;
18
- border-radius: 10px;
19
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
20
- padding: 30px;
21
- width: 100%;
22
- max-width: 500px;
23
  }
24
 
25
  .inter-form label {
26
  font-weight: bold;
27
- margin-bottom: 10px;
28
- display: block;
29
- color: #333333;
30
  }
31
 
32
  .inter-form input[type="text"] {
33
  width: 100%;
34
- padding: 12px;
35
- margin-bottom: 20px;
36
- border: 1px solid #dddddd;
37
- border-radius: 6px;
38
- font-size: 16px;
39
  transition: border-color 0.3s ease;
40
  }
41
 
42
  .inter-form input[type="text"]:focus {
43
- border-color: #007bff;
44
  }
45
 
46
  section {
47
- margin-bottom: 20px;
48
  }
49
 
50
- section h4 {
51
- margin-bottom: 15px;
52
- color: #333333;
53
- border-bottom: 2px solid #dddddd;
54
- padding-bottom: 5px;
55
  }
56
 
57
  .checkbox-group {
58
  display: flex;
59
  flex-wrap: wrap;
60
- gap: 10px;
61
  }
62
 
63
- .checkbox-group input[type="checkbox"] {
64
- margin-right: 10px;
 
65
  }
66
 
67
  .checkbox-group label {
68
  display: flex;
69
  align-items: center;
70
- color: #555555;
71
  cursor: pointer;
 
 
 
 
 
 
 
 
 
72
  }
73
 
74
- button {
75
- width: 100%;
76
- padding: 15px;
77
- background-color: #007bff;
 
 
 
 
 
 
 
 
 
78
  border: none;
79
- border-radius: 6px;
80
- color: white;
81
- font-size: 18px;
 
82
  cursor: pointer;
83
- transition: background-color 0.3s ease;
 
 
 
 
 
 
84
  }
85
 
86
- button:hover {
87
- background-color: #0056b3;
 
88
  }
89
 
90
  .internship {
91
- margin-top: 20px;
 
 
 
92
  background-color: #f9f9f9;
93
- border: 1px solid #dddddd;
94
- border-radius: 6px;
95
- padding: 15px;
96
- max-height: 300px;
97
- overflow-y: auto;
98
  white-space: pre-wrap;
99
  word-wrap: break-word;
100
- color: #333333;
 
101
  }
102
 
103
- @media (max-width: 768px) {
104
- .inter-form {
105
- padding: 20px;
106
- }
 
 
107
  }
 
1
  * {
 
2
  margin: 0;
3
  padding: 0;
4
+ box-sizing: border-box;
5
+ font-family: 'Helvetica Neue', Arial, sans-serif;
6
  }
7
 
8
  body {
9
+ background-color: #f4f4f4;
10
+ color: #333;
11
+ line-height: 1.6;
12
+ }
13
+
14
+ header {
15
+ background-color: #333;
16
+ color: #fff;
17
+ padding: 1rem 0;
18
+ text-align: center;
19
+ font-size: 1.5rem;
20
+ }
21
+
22
+ nav {
23
  display: flex;
24
  justify-content: center;
25
+ gap: 1rem;
26
+ }
27
+
28
+ main {
29
+ padding: 2rem;
30
+ max-width: 800px;
31
+ margin: 2rem auto;
32
+ background-color: #fff;
33
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
34
+ border-radius: 8px;
35
  }
36
 
37
  .inter-form {
38
+ display: flex;
39
+ flex-direction: column;
40
+ gap: 1.5rem;
 
 
 
41
  }
42
 
43
  .inter-form label {
44
  font-weight: bold;
45
+ margin-bottom: 0.5rem;
 
 
46
  }
47
 
48
  .inter-form input[type="text"] {
49
  width: 100%;
50
+ padding: 0.75rem;
51
+ border: 1px solid #ccc;
52
+ border-radius: 5px;
 
 
53
  transition: border-color 0.3s ease;
54
  }
55
 
56
  .inter-form input[type="text"]:focus {
57
+ border-color: #333;
58
  }
59
 
60
  section {
61
+ margin-top: 1rem;
62
  }
63
 
64
+ h4 {
65
+ margin-bottom: 1rem;
66
+ color: #333;
67
+ border-bottom: 1px solid #ccc;
68
+ padding-bottom: 0.5rem;
69
  }
70
 
71
  .checkbox-group {
72
  display: flex;
73
  flex-wrap: wrap;
74
+ gap: 1rem;
75
  }
76
 
77
+ .checkbox-group input[type="checkbox"],
78
+ .checkbox-group input[type="radio"] {
79
+ display: none;
80
  }
81
 
82
  .checkbox-group label {
83
  display: flex;
84
  align-items: center;
85
+ color: #555;
86
  cursor: pointer;
87
+ justify-content: center;
88
+ flex-direction: column;
89
+ background-color: #f9f9f9;
90
+ padding: 1rem;
91
+ border: 1px solid #ccc;
92
+ border-radius: 5px;
93
+ transition: background-color 0.3s ease, border-color 0.3s ease;
94
+ width: 120px;
95
+ text-align: center;
96
  }
97
 
98
+ .checkbox-group input[type="checkbox"]:checked + label,
99
+ .checkbox-group input[type="radio"]:checked + label {
100
+ background-color: #e0e0e0;
101
+ border-color: #333;
102
+ }
103
+
104
+ .checkbox-group label:hover {
105
+ background-color: #e9e9e9;
106
+ border-color: #bbb;
107
+ }
108
+
109
+ button[type="submit"] {
110
+ padding: 0.75rem 1.5rem;
111
  border: none;
112
+ border-radius: 5px;
113
+ background-color: #333;
114
+ color: #fff;
115
+ font-size: 1rem;
116
  cursor: pointer;
117
+ transition: background-color 0.3s ease, transform 0.3s ease;
118
+ align-self: flex-start;
119
+ }
120
+
121
+ button[type="submit"]:hover {
122
+ background-color: #555;
123
+ transform: scale(1.05);
124
  }
125
 
126
+ button[type="submit"]:active {
127
+ background-color: #222;
128
+ transform: scale(1);
129
  }
130
 
131
  .internship {
132
+ margin-top: 1rem;
133
+ }
134
+
135
+ .internship pre {
136
  background-color: #f9f9f9;
137
+ padding: 1rem;
138
+ border: 1px solid #ccc;
139
+ border-radius: 5px;
 
 
140
  white-space: pre-wrap;
141
  word-wrap: break-word;
142
+ max-height: 300px;
143
+ overflow-y: auto;
144
  }
145
 
146
+ footer {
147
+ background-color: #333;
148
+ color: #fff;
149
+ text-align: center;
150
+ padding: 1rem 0;
151
+ margin-top: 2rem;
152
  }
templates/index.html CHANGED
@@ -1,56 +1,80 @@
1
  <!DOCTYPE html>
2
  <html lang="en">
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
 
6
  <link rel="stylesheet" href="static/index.css">
7
  <title>AccioINTERN</title>
8
  </head>
 
9
  <body>
10
- <form class="inter-form" action="/" method="post">
11
-
12
- <label for="name">Name:</label>
13
- <input type="text" id="name" name="name" required>
14
-
15
- <section class="automation">
16
- <h4>Automation</h4>
17
- <div class="checkbox-group">
18
- <input type="checkbox" name="auto-python" id="auto-python" value="True">
19
- <label for="auto-python">Python</label>
20
-
21
- <input type="checkbox" name="auto-javascript" id="auto-javascript" value="True">
22
- <label for="auto-javascript">Javascript</label>
23
- </div>
24
- </section>
25
- <section class="web-dev">
26
- <h4>Web Development</h4>
27
- <div class="checkbox-group">
28
- <input type="checkbox" name="web-python" id="web-python" value="True">
29
- <label for="web-python">Python</label>
30
-
31
- <input type="checkbox" name="web-javascript" id="web-javascript" value="True">
32
- <label for="web-javascript">Javascript</label>
33
- </div>
34
- </section>
35
- <section class="proficiency">
36
- <h4>Proficiency</h4>
37
- <div class="checkbox-group">
38
- <input type="radio" name="level" id="beginner" value="Beginner">
39
- <label for="beginner">Beginner</label>
40
-
41
- <input type="radio" name="level" id="intermediate" value="Intermediate">
42
- <label for="intermediate">Intermediate</label>
43
-
44
- <input type="radio" name="level" id="expert" value="Expert">
45
- <label for="expert">Expert</label>
46
- </div>
47
- </section>
48
- <button type="submit">Get Internship</button>
49
-
50
- <section class="internship">
51
- <pre>{{ Result }}</pre>
52
- </section>
53
-
54
- </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  </body>
56
- </html>
 
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
+
4
  <head>
5
  <meta charset="UTF-8">
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <link rel="shortcut icon" href="AccioINTERN.png" type="image/x-icon">
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
9
  <link rel="stylesheet" href="static/index.css">
10
  <title>AccioINTERN</title>
11
  </head>
12
+
13
  <body>
14
+ <header>
15
+ <nav>
16
+
17
+ </nav>
18
+ </header>
19
+ <main>
20
+ <form class="inter-form" action="/" method="post">
21
+
22
+ <label for="name">Name:</label>
23
+ <input type="text" id="name" name="name" required>
24
+
25
+ <section class="automation">
26
+ <h4>Automation</h4>
27
+ <div class="checkbox-group">
28
+ <input type="checkbox" name="auto-python" id="auto-python" value="True">
29
+ <label for="auto-python"><i class="fa-brands fa-python" style="color: #74C0FC;"></i>Python</label>
30
+
31
+ <input type="checkbox" name="auto-javascript" id="auto-javascript" value="True">
32
+ <label for="auto-javascript"><i class="fa-brands fa-js" style="color: #FFD43B;"></i>Javascript</label>
33
+ </div>
34
+ </section>
35
+ <section class="web-dev">
36
+ <h4>Web Development</h4>
37
+ <div class="checkbox-group">
38
+ <input type="checkbox" name="web-python" id="web-python" value="True">
39
+ <label for="web-python"><i class="fa-brands fa-python" style="color: #FFD43B;"></i>Python</label>
40
+
41
+ <input type="checkbox" name="web-javascript" id="web-javascript" value="True">
42
+ <label for="web-javascript"><i class="fa-brands fa-js" style="color: #74C0FC"></i>Javascript</label>
43
+ </div>
44
+ </section>
45
+ <section class="bot-dev">
46
+ <h4>Telegram Bot Development</h4>
47
+ <div class="checkbox-group">
48
+ <input type="checkbox" name="pyrogram" id="pyrogram" value="True">
49
+ <label for="pyrogram"><i class="fa-solid fa-fire" style="color: #ff8040;"></i>Pyrogram</label>
50
+
51
+ <input type="checkbox" name="python-telegram-bot" id="python-telegram-bot" value="True">
52
+ <label for="python-telegram-bot"><i class="fa-brands fa-telegram" style="color: #74C0FC;"></i>PyTgBot</label>
53
+ </div>
54
+ </section>
55
+ <section class="proficiency">
56
+ <h4>Proficiency</h4>
57
+ <div class="checkbox-group">
58
+ <input type="radio" name="level" id="beginner" value="Beginner">
59
+ <label for="beginner">Beginner</label>
60
+
61
+ <input type="radio" name="level" id="intermediate" value="Intermediate">
62
+ <label for="intermediate">Intermediate</label>
63
+
64
+ <input type="radio" name="level" id="expert" value="Expert">
65
+ <label for="expert">Expert</label>
66
+ </div>
67
+ </section>
68
+ <button type="submit">Get Internship</button>
69
+
70
+ <section class="internship">
71
+ <pre>{{ Result }}</pre>
72
+ </section>
73
+ </form>
74
+ </main>
75
+ <footer>
76
+ <!-- <p>&copy; 2024 TraxDinosaur. All rights reserved.</p> -->
77
+ </footer>
78
  </body>
79
+
80
+ </html>