diff --git a/main.py b/main.py index 525067a..dfa1bfa 100644 --- a/main.py +++ b/main.py @@ -5,7 +5,7 @@ import numpy.random as gaussian_rnd app = Flask(__name__, subdomain_matching=True) -app.config['SERVER_NAME'] = 'thematdev.local:22837' +app.config['SERVER_NAME'] = '192.168.51.3:1488' def generate_iq(): @@ -32,15 +32,8 @@ def index(): data = json.loads(file.read()) cols = data['cols'] projects = data['projects'] - length = len(projects) - rows = [] - for i in range(0, length, cols): - row = [] - for j in range(i, min(i + cols, length)): - row.append(projects[j]) - rows.append(row) - return render_template('index.html', random_number=generate_iq(), rows=rows) + return render_template('index.html', random_number=generate_iq(), projects=projects) @app.route('/', subdomain='tex') @@ -49,7 +42,7 @@ def texindex(): def main(): - app.run('thematdev.local', 22837) + app.run('192.168.51.3', 1488) if __name__ == '__main__': diff --git a/static/assets/css/style.css b/static/assets/css/style.css index 9c60239..5714658 100644 --- a/static/assets/css/style.css +++ b/static/assets/css/style.css @@ -99,7 +99,8 @@ body { .project-container { position: inherit; display: flex; - flex-direction: column; + flex-direction: row; + flex-wrap: wrap; } .project-container-row { diff --git a/templates/index.html b/templates/index.html index 048658a..96fc83b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -28,15 +28,11 @@
{{ project.description }}
-{{ project.description }}