diff --git a/resourcelibrary/app.py b/resourcelibrary/app.py new file mode 100644 index 0000000..52f4cf5 --- /dev/null +++ b/resourcelibrary/app.py @@ -0,0 +1,27 @@ +from flask import Flask, request, jsonify, render_template + +app = Flask(__name__) + +resources = [] + +@app.route('/') +def index(): + return render_template('index.html') + +@app.route('/submit', methods=['POST']) +def submit_resource(): + title = request.form.get('resourceTitle') + description = request.form.get('resourceDescription') + url = request.form.get('resourceURL') + + resource = { + 'title': title, + 'description': description, + 'url': url + } + resources.append(resource) + + return jsonify({'message': 'Resource submitted successfully!'}), 201 + +if __name__ == '__main__': + app.run(debug=True) diff --git a/resourcelibrary/templates/index.html b/resourcelibrary/templates/index.html new file mode 100644 index 0000000..792bbd7 --- /dev/null +++ b/resourcelibrary/templates/index.html @@ -0,0 +1,339 @@ + + + + + + Resource Library + + + +
+

Resource Library

+ +
+ +
+ + +
+
+
+

Articles

+
+

Understanding Space Mining

+

A comprehensive overview of space mining technologies and techniques.

+
+ ⭐⭐⭐⭐☆ +
+ Read More +
+
+

The Future of Resource Extraction

+

This article discusses various aspects of resource extraction from asteroids.

+
+ ⭐⭐⭐⭐⭐ +
+ Read More +
+
+
+

Research Papers

+
+

Exploration of Asteroid Resources

+

A detailed research paper exploring the potential resources on asteroids.

+
+ ⭐⭐⭐⭐⭐ +
+ Read More +
+
+
+

Tutorials

+
+

Space Mining 101

+

A beginner's guide to understanding the basics of space mining.

+
+ ⭐⭐⭐⭐☆ +
+ Read More +
+
+
+

Regulations

+
+

Legal Framework for Space Mining

+

Overview of the legal regulations surrounding space mining operations.

+
+ ⭐⭐⭐⭐☆ +
+ Read More +
+
+
+

Submit a Resource

+
+ + + + + + + + +
+
+
+ + + +