File tree Expand file tree Collapse file tree 6 files changed +65
-1
lines changed
personal_portfolio/templates Expand file tree Collapse file tree 6 files changed +65
-1
lines changed Original file line number Diff line number Diff line change 11< link rel ="stylesheet " href ="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css " integrity ="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO " crossorigin ="anonymous ">
22
3- {% block page_content %}{% endblock %}
3+ < nav class ="navbar navbar-expand-lg navbar-light bg-light ">
4+ < div class ="container ">
5+ < a class ="navbar-brand " href ="{% url 'project_index' %} "> RP Portfolio</ a >
6+ < button class ="navbar-toggler " type ="button " data-toggle ="collapse " data-target ="#navbarSupportedContent " aria-controls ="navbarSupportedContent " aria-expanded ="false " aria-label ="Toggle navigation ">
7+ < span class ="navbar-toggler-icon "> </ span >
8+ </ button >
9+
10+ < div class ="collapse navbar-collapse " id ="navbarSupportedContent ">
11+ < ul class ="navbar-nav mr-auto ">
12+ < li class ="nav-item active ">
13+ < a class ="nav-link " href ="{% url 'project_index' %} "> Home</ a >
14+ </ li >
15+ < li class ="nav-item ">
16+ < a class ="nav-link " href ="# "> Blog</ a >
17+ </ li >
18+ </ ul >
19+ </ div >
20+ </ div >
21+
22+ </ nav >
23+
24+ < div class ="container ">
25+ {% block page_content %}{% endblock %}
26+ </ div >
427
528< script src ="https://code.jquery.com/jquery-3.3.1.slim.min.js " integrity ="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo " crossorigin ="anonymous "> </ script >
629< script src ="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js " integrity ="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49 " crossorigin ="anonymous "> </ script >
Original file line number Diff line number Diff line change 1+ {% extends "base.html" %}
2+ {% load static %}
3+
4+ {% block page_content %}
5+ < h1 > {{ project.title }}</ h1 >
6+ < div class ="row ">
7+ < div class ="col-md-8 ">
8+ < img src ="{% static project.image %} " alt ="" width ="100% ">
9+ </ div >
10+ < div class ="col-md-4 ">
11+ < h5 > About the project:</ h5 >
12+ < p > {{ project.description }}</ p >
13+ < br >
14+ < h5 > Technology used:</ h5 >
15+ < p > {{ project.technology }}</ p >
16+ </ div >
17+ </ div >
18+
19+ {% endblock %}
Original file line number Diff line number Diff line change 1+ {% extends "base.html" %}
2+ {% load static %}
3+ {% block page_content %}
4+ < h1 > Projects</ h1 >
5+ < div class ="row ">
6+ {% for project in projects %}
7+ < div class ="col-md-4 ">
8+ < div class ="card mb-2 ">
9+ < img class ="card-img-top " src ="{% static project.image %} ">
10+ < div class ="card-body ">
11+ < h5 class ="card-title "> {{ project.title }}</ h5 >
12+ < p class ="card-text "> {{ project.description }}</ p >
13+ < a href ="{% url 'project_detail' project.pk %} "
14+ class ="btn btn-primary ">
15+ Read More
16+ </ a >
17+ </ div >
18+ </ div >
19+ </ div >
20+ {% endfor %}
21+ </ div >
22+ {% endblock %}
You can’t perform that action at this time.
0 commit comments