made some changes to profile view

This commit is contained in:
EgertM 2017-10-08 22:53:01 +03:00
parent 3a37ce9988
commit b0200aa6c1
3 changed files with 102 additions and 111 deletions

View File

@ -12,7 +12,7 @@
</component> </component>
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" /> <content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" /> <orderEntry type="jdk" jdkName="Python 3.6.3 (C:\Users\Egert\AppData\Local\Programs\Python\Python36\python.exe)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
</component> </component>
<component name="TemplatesService"> <component name="TemplatesService">

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.5.3 (/usr/bin/python3.5)" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6.3 (C:\Users\Egert\AppData\Local\Programs\Python\Python36\python.exe)" project-jdk-type="Python SDK" />
</project> </project>

View File

@ -1,125 +1,116 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0" />
<title>k-space</title> <title>k-space</title>
<link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="/static/css/materialize.min.css"> <link rel="stylesheet" href="/static/css/materialize.min.css">
<link rel="stylesheet" href="/static/css/app.css"> <link rel="stylesheet" href="/static/css/app.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head> </head>
<body> <body>
<div id="container" class="grey lighten-4"> <div id="container" class="grey lighten-4">
<div class="header section center-align"> <div class="header section center-align">
<h1 class="section z-depth-1 white-text"><a href="/">k-space.ee</a></h1> <h1 class="section z-depth-1 white-text"><a href="/">k-space.ee</a></h1>
</div> </div>
<div class="row container section"> <div class="row container section">
<div class="col s12 m3" style="height:600px;padding-top: 10px;"> <div class="col s12 m12 l12">
<div> <h2 class="header center-align">{{ user.username }}</h2>
<div class="card" style="width: 450px;height:570px; border-radius: 4px;"> <div class="card horizontal" style="width:100%;">
<div class="image"> <div class="card-image">
<img style="height: 450px;border-radius: 4px;" src="/media/{{ user.profile.icon }}"> <img src="/media/{{ user.profile.icon }}">
<br><br> </div>
<div class="row"> <div class="card-stacked">
<div class="col s12 m1"> <div class="card-content">
<i class="material-icons" style="font-size: 25px; padding-left: 7px">flash_on</i> <span class="card-title" style="font-weight: bold">Description</span>
</div> <p style="font-size: 18px;text-align: justify">I am a very simple man. I am good at processing small bits of information.
<div class="col s12 m10"> I am convenient because I require little food to function effectively.</p><br>
<div class="progress" style="background-color: #f1f1f1"> <span class="card-title" style="font-weight: bold">Challenges completed</span>
<div class="determinate" style="width: 30%; background-color:#ffc107;"></div> <ul>
{% for challenge in challenges %}
<li><a class="grey-text text-lighten-3" href="/challenge/{{ challenge.challenge.id }}">{{ challenge.challenge.name }}</a></li>
{% empty %}
<li>User has not completed any challenges</li>
{% endfor %}
</ul>
</div>
<div class="row">
<div class="col s1 m1 l1">
<i class="material-icons" style="font-size: 20px;padding-left:10%;">flash_on</i>
</div>
<div class="col s9 m9 l10">
<div class="progress" style="background-color: #f1f1f1;width:100%;">
<div class="determinate" style="width: 30%; background-color:#ffc107;"></div>
</div>
</div>
<div class="col s1 m1 l1" >
<span style="color: #ffc107;margin: 0 auto;margin-right:10px;">3</span>
</div> </div>
</div> </div>
<div class="col s12 m1" > <div class="row">
<span style="color: #ffc107">3</span> <div class="col s1 m1 l1">
</div> <i class="material-icons" style="font-size: 20px;padding-left:10%">computer</i>
</div> </div>
<div class="row"> <div class="col s9 m19 l10">
<div class="col s12 m1"> <div class="progress" style="background-color: #f1f1f1;width:100%">
<i class="material-icons" style="font-size: 25px; padding-left: 7px">computer</i> <div class="determinate" style="width: 70%; background-color:#3498db;"></div>
</div> </div>
<div class="col s12 m10"> </div>
<div class="progress" style="background-color: #f1f1f1"> <div class="col s1 m1 l1">
<div class="determinate" style="width: 70%; background-color:#3498db;"></div> <span style="color:#3498db;margin:0 auto;margin-right:10px;">7</span>
</div> </div>
</div> </div>
<div class="col s12 m1"> </div>
<span style="color:#3498db">7</span> </div>
</div> </div>
</div> </div>
<footer class="page-footer">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5 class="white-text">Contact</h5>
<p class="grey-text text-lighten-4">
<i class="material-icons">phone</i>&nbsp;Call Lauri 55 55 5555
</p>
<h5 class="white-text">Sponsors</h5>
<p class="grey-text text-lighten-4">
We have more than 10 companies supporting us financially and by equipment
<br>
<a href="#">I want to become a sponsor</a>
</p>
</div>
<div class="col l4 offset-l2 s12">
<h5 class="white-text">Links</h5>
<ul>
<li><a class="grey-text text-lighten-3" href="#!">Location</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Mission</a></li>
<li><a class="grey-text text-lighten-3" href="#!">People</a></li>
</ul>
</div> </div>
</div> </div>
</div> </div>
</div> <div class="footer-copyright">
<div class="container">
<div class="col s12 m2"> © 2017 k-space
</div> <!-- <a class="grey-text text-lighten-4 right" href="#!">More Links</a> -->
<div class="col s12 m3 l3" >
<h2 class="center-align" style="font-weight:bold;font-size: 50px;">{{ user.username }}<br></h2>
<div class="card" style="width:700px;background-color: #34495e;border-radius: 5px;margin: auto 0">
<div class="card-content white-text">
<span class="card-title" style="font-weight: bold">Description</span>
<p style="font-size: 18px;">I am a very simple man. I am good at processing small bits of information.
I am convenient because I require little food to function effectively.</p><br>
<span class="card-title" style="font-weight: bold">Challenges completed</span>
<ul>
{% for challenge in challenges %}
<li><a class="grey-text text-lighten-3" href="/challenge/{{ challenge.challenge.id }}">{{ challenge.challenge.name }}</a></li>
{% empty %}
<li>User has not completed any challenges</li>
{% endfor %}
</ul>
</div> </div>
</div> </div>
</div> </footer>
</div> </div>
<footer class="page-footer"> <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<div class="container"> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"></script>
<div class="row"> <script src="/static/js/app.js"></script>
<div class="col l6 s12"> </body>
<h5 class="white-text">Contact</h5>
<p class="grey-text text-lighten-4">
<i class="material-icons">phone</i>&nbsp;Call Lauri 55 55 5555
</p>
<h5 class="white-text">Sponsors</h5> </html>
<p class="grey-text text-lighten-4">
We have more than 10 companies supporting us financially and by equipment
<br>
<a href="#">I want to become a sponsor</a>
</p>
</div>
<div class="col l4 offset-l2 s12">
<h5 class="white-text">Links</h5>
<ul>
<li><a class="grey-text text-lighten-3" href="#!">Location</a></li>
<li><a class="grey-text text-lighten-3" href="#!">Mission</a></li>
<li><a class="grey-text text-lighten-3" href="#!">People</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2017 k-space
<!-- <a class="grey-text text-lighten-4 right" href="#!">More Links</a> -->
</div>
</div>
</footer>
</div>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"></script>
<script src="/static/js/app.js"></script>
</body>
</html>