Ansaribinhyder commited on
Commit
fbf553d
·
1 Parent(s): 382d35e

Updating all the necessary files

Browse files
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.9
3
+
4
+ # The two following lines are requirements for the Dev Mode to be functional
5
+ # Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
6
+ RUN useradd -m -u 1000 user
7
+ WORKDIR /app
8
+
9
+ # Copy requirements.txt and install dependencies
10
+ COPY --chown=user ./requirements.txt requirements.txt
11
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
+
13
+ # Copy the entire application to the working directory
14
+ COPY --chown=user . /app
15
+
16
+ # Set the environment variable for Flask
17
+ ENV FLASK_APP=main.py
18
+ ENV FLASK_RUN_HOST=0.0.0.0
19
+ ENV FLASK_RUN_PORT=7860
20
+
21
+ # Expose the port Flask will run on
22
+ EXPOSE 7860
23
+
24
+ # Command to run the Flask app
25
+ CMD ["flask", "run"]
README.md CHANGED
@@ -1,12 +1,12 @@
1
  ---
2
- title: Arasioils
3
- emoji: 📊
4
- colorFrom: gray
5
  colorTo: red
6
  sdk: docker
7
  pinned: false
8
- license: mit
9
- short_description: This Space is to Publish Arasi Oil websites
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: Alyahya
3
+ emoji: 🐨
4
+ colorFrom: green
5
  colorTo: red
6
  sdk: docker
7
  pinned: false
8
+ license: openrail
9
+ short_description: Arasi Oils
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
main.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, render_template
2
+ from flask_compress import Compress
3
+ import socket
4
+
5
+ host_name = socket.gethostname()
6
+ host_name_ipaddress = socket.gethostbyname(host_name)
7
+
8
+ app = Flask(__name__)
9
+ Compress(app)
10
+
11
+
12
+ @app.route('/')
13
+ def get_all_posts():
14
+ return render_template("index.html")
15
+
16
+
17
+ if __name__ == "__main__":
18
+ app.run(debug=False,host="0.0.0.0",port=8190)
requirements.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ pandas
2
+ numpy
3
+ fastapi
4
+ uvicorn
5
+ python-multipart
6
+ pyzmq
7
+ flask
8
+ flask-compress
static/assets/images/.DS_Store ADDED
Binary file (6.15 kB). View file
 
static/assets/images/IC.jpg ADDED
static/assets/images/IC02.jpg ADDED
static/assets/images/PCB.webp ADDED
static/assets/images/PCB02.jpg ADDED
static/assets/images/TechCrunch.png ADDED
static/assets/images/all_oils_image.webp ADDED
static/assets/images/bizinsider.png ADDED
static/assets/images/circle.png ADDED
static/assets/images/circuit.jpg ADDED
static/assets/images/dog-img.jpg ADDED
static/assets/images/groundnut-sesame-coconut-oil-combo-500x500.webp ADDED
static/assets/images/iPhone12.png ADDED
static/assets/images/iphone12.jpg ADDED
static/assets/images/iphone12_new.jpg ADDED
static/assets/images/iphone12_new_2.jpg ADDED
static/assets/images/iphone6.png ADDED
static/assets/images/lady-img.jpg ADDED
static/assets/images/mashable.png ADDED
static/assets/images/oil_image.jpg ADDED
static/assets/images/tnw.png ADDED
static/css/.DS_Store ADDED
Binary file (6.15 kB). View file
 
static/css/styles.css ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body
2
+ {
3
+ font-family: 'Montserrat';
4
+ text-align : center;
5
+ }
6
+
7
+ h1,h2,h3,h4,h5,h6{
8
+ font-family: 'Montserrat-bold';
9
+
10
+ }
11
+
12
+
13
+ #title
14
+ {
15
+ color:#36454F;
16
+ text-align:left;
17
+ }
18
+
19
+ .big-heading{
20
+ font-size: 4.0rem;
21
+ line-height: 1.2;
22
+ font-weight: 900;
23
+ }
24
+
25
+ .container-fluid {
26
+ padding: 3% 15% 5%;
27
+ }
28
+
29
+ /* Sections */
30
+ .coloured-section{
31
+ background-color:#89CFF0;
32
+ }
33
+
34
+ .white-section{
35
+ background-color:#fff;
36
+ }
37
+
38
+ /* Navigation bar */
39
+
40
+ .navbar
41
+ {
42
+ padding:0 0 5.0rem;
43
+
44
+ }
45
+
46
+ .navbar-brand
47
+ {
48
+ font-family: "Ubuntu";
49
+ font-size: 3.0rem;
50
+ font-weight: Bold;
51
+ }
52
+
53
+ .nav-item
54
+ {
55
+ padding: 0 20px;
56
+ color: black;
57
+
58
+ }
59
+
60
+ .nav-link
61
+ {
62
+ font-size: 2rem;
63
+ font-family: "Montserrat-Thin"
64
+ }
65
+
66
+ /* Download-button */
67
+
68
+ .download-button
69
+ {
70
+
71
+ margin: 5% 3% 5% 0;
72
+ }
73
+
74
+ /* Title image */
75
+
76
+ .title-image
77
+ {
78
+ width:50px;
79
+ position:relative;
80
+ left: -3%;
81
+
82
+ }
83
+
84
+ /* Features Icon */
85
+
86
+ .feature-icon
87
+ {
88
+ color:#ADD8E6;
89
+ margin-bottom: 1rem;
90
+
91
+ }
92
+
93
+ .features-text{
94
+ font-family: 'Montserrat-Bold';
95
+ font-weight:900;
96
+
97
+ }
98
+
99
+
100
+ .features-col{
101
+ padding:5%;
102
+ }
103
+
104
+ #features
105
+ {
106
+ padding:7% 15%;
107
+ align : center;
108
+ position:relative;
109
+ z-index: 1;
110
+ }
111
+
112
+ .feature-icon:hover {
113
+ color: #ff4c68;
114
+
115
+ }/* testimonials */
116
+
117
+ .testimonial-text{
118
+ font-size: 3rem;
119
+ line-height: 1.5;
120
+ color:#fff;
121
+
122
+ }
123
+
124
+ #testimonials
125
+ {
126
+ background-color: #ff4c68
127
+ }
128
+
129
+ .testimonial-image
130
+ {
131
+ width:10%;
132
+ margin: 20px;
133
+ border-radius: 100%;
134
+ }
135
+
136
+ /* press */
137
+ #press{
138
+ background-color:#ff4c68;
139
+ padding-bottom:3%;
140
+
141
+ }
142
+
143
+ .press-image {
144
+
145
+ width: 10%;
146
+ margin :20px 20px 50px;
147
+ }
148
+
149
+ .carousel-item {
150
+ padding : 7% 15%;
151
+ }
152
+
153
+ /* Pricing */
154
+
155
+ .pricing-text{
156
+ font-family: 'Montserrat-Bold';
157
+ font-weight:900;
158
+ }
159
+
160
+ #pricing {
161
+ padding: 100px;
162
+ }
163
+
164
+ .pricing-column{
165
+ padding: 3% 2%;
166
+ }
167
+
168
+ /*CTA section */
169
+
170
+ #cta{
171
+ padding: 10% 20%;
172
+ color:#36454F;
173
+ }
174
+
175
+ .cta-heading{
176
+ font-family: "Montserrat-Black";
177
+ font-size: 3.5rem;
178
+ line-height: 1.5;
179
+ }
180
+
181
+ /* Footer */
182
+
183
+ #footer{
184
+ padding: 5% 10%;
185
+ }
186
+
187
+ .contact-icon{
188
+ margin:10px 10px;
189
+ padding: 2% 2%;
190
+ }
191
+
192
+ @media (max-width:900px)
193
+ {
194
+ #title{
195
+ text-align: center;
196
+ }
197
+
198
+ .title-image
199
+ {
200
+ position: relative;
201
+ transform: rotate(0);
202
+ left:10%;
203
+ }
204
+ }
205
+
templates/index.html ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>AlYahya Agency</title>
7
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity=
8
+ \"sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
9
+
10
+ <link rel="stylesheet" href="static/css/styles.css">
11
+
12
+
13
+
14
+ <!-- Bootstrap scripts-->
15
+ <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
16
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
17
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
18
+
19
+ <!-- Google fonts-->
20
+ <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;900&family=Ubuntu:ital,wght@0,300;0,700;1,700&display=swap" rel="stylesheet">
21
+
22
+ <!-- This is font awesome page-->
23
+ <script src="https://kit.fontawesome.com/83cf88b735.js" crossorigin="anonymous"></script>
24
+
25
+ </head>
26
+
27
+ <body>
28
+
29
+ <section class="coloured-section" id="title">
30
+
31
+ <!-- Nav Bar -->
32
+ <div class="container-fluid">
33
+
34
+ <nav class="navbar navbar-expand-lg navbar-dark">
35
+ <a class="navbar-brand" href="">ARASI OILS</a>
36
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
37
+ <span class="navbar-toggler-icon"></span>
38
+ </button>
39
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
40
+ <ul class="navbar-nav ml-auto">
41
+ <li class="nav-item">
42
+ <a class="nav-link" href="#footer">Contact</a>
43
+ </li>
44
+ <li class="nav-item">
45
+ <a class="nav-link" href="#pricing">Pricing</a>
46
+ </li>
47
+ <li class="nav-item">
48
+ <a class="nav-link" href="#cta">Download</a>
49
+ </li>
50
+ </ul>
51
+ </div>
52
+ </nav>
53
+
54
+
55
+
56
+ <!-- Title -->
57
+
58
+ <div class="row">
59
+ <div class="col-lg-7" >
60
+ <h1 class="big-heading">OIL FROM BEST HANDS</h1>
61
+ <button type="button" class="btn btn-dark btn-lg download-button"> <i class="fab fa-apple"></i> Download</button>
62
+ <button type="button" class="btn btn-outline-light btn-lg download-button"><i class="fab fa-google-play"></i> Download</button>
63
+ </div>
64
+
65
+ <div class="col-lg-2 title-image" >
66
+ <img src="static/assets/images/all_oils_image.webp" alt="iphone-mockup">
67
+ </div>
68
+
69
+ <!-- <div class="col-lg-2 title-image" >-->
70
+ <!-- <img src="images/IC.jpg" alt="iphone-mockup">-->
71
+ <!-- </div>-->
72
+
73
+ </div>
74
+
75
+ </div>
76
+
77
+ </section>
78
+
79
+
80
+ <!-- Features -->
81
+
82
+ <section class="white-section" id="features">
83
+
84
+ <div class="row features">
85
+
86
+ <div class="col-lg-4 features-col">
87
+ <i class="fas fa-check-circle fa-4x feature-icon"></i>
88
+ <h3 class="features-text"> Quality Organic Oil </h3> <p>Quality is our top priority.</p>
89
+ </div>
90
+
91
+ <div class="col-lg-4 features-col">
92
+ <i class="fas fa-bullseye fa-4x feature-icon"></i>
93
+ <h3 class="features-text">Natural and Healthy</h3> <p>Natural in every drop. We aim to make you Healthy</p>
94
+ </div>
95
+
96
+ <div class="col-lg-4 features-col">
97
+ <i class="fas fa-heart fa-4x feature-icon"></i>
98
+ <h3 class="features-text">Enjoy</h3> <p>Enjoy the Life with Health</p>
99
+ </div>
100
+
101
+ </div>
102
+
103
+
104
+ </section>
105
+
106
+
107
+ <!-- Testimonials -->
108
+
109
+ <section class="coloured-section" id="testimonials">
110
+
111
+ <div id="testimonial-carousel" class="carousel slide" data-ride="false" >
112
+ <div class="carousel-inner">
113
+ <div class="carousel-item active">
114
+ <h2 class="testimonial-text">ARASI OILS PROVIDE HIGH QUALITY OIL</h2>
115
+ <img class="testimonial-image" src="static/assets/images/circle.png" alt="my-profile">
116
+ <em>Ansari, Malaysia</em>
117
+ </div>
118
+ <div class="carousel-item">
119
+ <h2 class="testimonial-text">ARASI OILS PROVIDE HIGH QUALITY OIL</h2>
120
+ <img class="testimonial-image" src="static/assets/images/IC.jpg" alt="lady-profile">
121
+ <em>Fareed, Malaysia</em>
122
+ </div>
123
+
124
+ </div>
125
+
126
+ <a class="carousel-control-prev" href="#testimonial-carousel" role="button" data-slide="prev">
127
+ <span class="carousel-control-prev-icon" aria-hidden="true"></span>
128
+
129
+ </a>
130
+ <a class="carousel-control-next" href="#testimonial-carousel" role="button" data-slide="next">
131
+ <span class="carousel-control-next-icon" aria-hidden="true"></span>
132
+ </a>
133
+ </div>
134
+
135
+
136
+ </section>
137
+
138
+
139
+ <!-- Press -->
140
+
141
+ <!-- <section id="press">
142
+ <img class="press-image" src="static/assets/images/techcrunch.png" alt="tc-logo">
143
+ <img class="press-image" src="static/assets/images/tnw.png" alt="tnw-logo">
144
+ <img class="press-image" src="static/assets/images/bizinsider.png" alt="biz-insider-logo">
145
+ <img class="press-image" src="static/assets/images/mashable.png" alt="mashable-logo">
146
+
147
+ </section> -->
148
+
149
+
150
+ <!-- Pricing -->
151
+
152
+
153
+ <section class="white-section" id="pricing">
154
+ <h1 class="big-heading">Choose Pure and Choose Nature</h1>
155
+ <p>Simple and affordable price for your needs.</p>
156
+
157
+
158
+ <div class="row">
159
+ <div class ="pricing-column col-lg-4 col-md-6">
160
+ <div class="card">
161
+ <div class="card-header">
162
+ <h3 class="pricing-text">COCONUT OIL</h3>
163
+ </div>
164
+ <div class="card-body">
165
+ <h1 class="big-heading">₹260 / Liter</h1>
166
+ <p>Extracted from raw Coconut</p>
167
+ <p>Filtered Naturally</p>
168
+ <p>Packed Neatly and Served Freshly</p>
169
+ <!-- <button type="button" class="btn btn-lg btn-block btn-outline-dark" href="https://wa.me/+9181484 82568">Buy Now</button> -->
170
+ <a href="https://wa.me/+918148482568" class="btn btn-lg btn-block btn-outline-dark" target="_blank">Buy Now</a>
171
+ </div>
172
+ </div>
173
+ </div>
174
+
175
+ <div class ="pricing-column col-lg-4 col-md-6">
176
+ <div class="card">
177
+ <div class="card-header">
178
+ <h3 class="pricing-text">GROUNDNUT OIL</h3>
179
+ </div>
180
+ <div class="card-body">
181
+ <h1 class="big-heading">₹240 / Liter</h1>
182
+ <p>Extracted from raw GROUNDNUT</p>
183
+ <p>Filtered Naturally</p>
184
+ <p>Packed Neatly and Served Freshly</p>
185
+ <!-- <button type="button" class="btn btn-lg btn-block btn-dark">Buy Now</button> -->
186
+ <a href="https://wa.me/+918148482568" class="btn btn-lg btn-block btn-outline-dark" target="_blank">Buy Now</a>
187
+ </div>
188
+ </div>
189
+ </div>
190
+
191
+
192
+ <div class ="pricing-column col-lg-4">
193
+ <div class="card">
194
+ <div class="card-header">
195
+ <h3 class="pricing-text">SESAME OIL</h3>
196
+ </div>
197
+ <div class="card-body">
198
+ <h1 class="big-heading">₹400 / Liter</h1>
199
+ <p>Extracted from raw Seasame</p>
200
+ <p>Filtered Naturally</p>
201
+ <p>Unlimited layers</p>
202
+ <p>Packed Neatly and Served Freshly</p>
203
+ <!-- <button type="button" class="btn btn-lg btn-block btn-dark">Buy now</button> -->
204
+ <a href="https://wa.me/+918148482568" class="btn btn-lg btn-block btn-outline-dark" target="_blank">Buy Now</a>
205
+ </div>
206
+ </div>
207
+ </div>
208
+ </div>
209
+
210
+ </section>
211
+
212
+
213
+ <!-- Call to Action -->
214
+
215
+ <section class="coloured-section" id="cta">
216
+
217
+ <h1 class="big-heading">Find the best oil supplier who can bring your imagination to reality</h1>
218
+ <button type="button" class="btn btn-dark btn-lg download-button"> <i class="fab fa-apple"></i> Download</button>
219
+ <button type="button" class="btn btn-outline-light btn-lg download-button"><i class="fab fa-google-play"></i> Download</button>
220
+
221
+
222
+ </section>
223
+
224
+
225
+ <!-- Footer -->
226
+
227
+ <footer class="white-section" id="footer">
228
+
229
+ <i class="contact-icon fab fa-twitter fa-3x"></i>
230
+ <i class="contact-icon fab fa-facebook fa-3x"></i>
231
+ <i class="contact-icon fab fa-instagram fa-3x"></i>
232
+ <i class="contact-icon fab fa-linkedin fa-3x"></i>
233
+ <p>© Copyright 2024 AlYahya Agencies</p>
234
+
235
+ </footer>
236
+
237
+
238
+ </body>
239
+
240
+ </html>
wsgx.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # wsgi.py
2
+ from main import *
3
+
4
+ # Create the Flask app
5
+ obj_app = get_all_posts()