This repository has been archived by the owner on Oct 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Hometask for lesson 6 #1
Open
AleksandrTsimbulov
wants to merge
2
commits into
ItPeoplePython2018:master
Choose a base branch
from
AleksandrTsimbulov:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Книжный магазин</title> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<header> | ||
<nav class="nav"> | ||
<a href="#" class="nav__bar fa fa-solid bar"></a> | ||
<a href="/" class="nav__logo">Книжный магазин</a> | ||
<div class="spring"></div> | ||
<a href="#" class="nav__basket fa fa-solid basket"></a> | ||
</nav> | ||
</header> | ||
<main> | ||
<div> | ||
<div class="main"> | ||
<div class="main__book"> | ||
<div class="book-detail"> | ||
<div class="book-detail__cover book-detail-cover"> | ||
<img class="book-detail-cover__img" src="/static/books/lutz.png" alt="Название книги" > | ||
</div> | ||
<div class="book-detail__content"> | ||
<div class="book-detail-property">Название: <i>Нащвние книги</i></div> | ||
<div class="book-detail-property">Название на английском: <i>Book name</i></div> | ||
<div class="book-detail-property">Автор: <i>Автор</i></div> | ||
<div class="book-detail-property">Количество страниц: <i>256</i></div> | ||
<div class="book-detail-property">Год выпуска: <i>2018</i></div> | ||
<div class="book-detail-description">Описание книги</div> | ||
</div> | ||
</div> | ||
{% extends 'base.html' %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<div> | ||
<div class="main"> | ||
<div class="main__book"> | ||
<div class="book-detail"> | ||
<div class="book-detail__cover book-detail-cover"> | ||
<img class="book-detail-cover__img" src="{% static book.cover %}" alt="Название книги" > | ||
</div> | ||
<div class="book-detail__content"> | ||
<div class="book-detail-property">Название: <i>{{ book.name }}</i></div> | ||
<div class="book-detail-property">Название на английском: <i>{{ book.name_eng }}</i></div> | ||
<div class="book-detail-property">Автор: <i>{{ book.author }}</i></div> | ||
<div class="book-detail-property">Количество страниц: <i>{{ book.pages }}</i></div> | ||
<div class="book-detail-property">Год выпуска: <i>{{ book.pub_year }}</i></div> | ||
<div class="book-detail-description">{{ book.description }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
<footer> | ||
<div class="footer"> | ||
<a href="#" class="footer__name">Курсы по питону 2018</a> | ||
<div class="spring"></div> | ||
<a href="mailto:[email protected]" class="footer__mailto">[email protected]</a> | ||
</div> | ||
</footer> | ||
</body> | ||
</html> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Книжный магазин</title> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<header> | ||
<nav class="nav"> | ||
<a href="#" class="nav__bar fa fa-solid bar"></a> | ||
<a href="/" class="nav__logo">Книжный магазин</a> | ||
<div class="spring"></div> | ||
<a href="#" class="nav__basket fa fa-solid basket"></a> | ||
</nav> | ||
</header> | ||
<main> | ||
{% extends 'base.html' %} | ||
{% load static %} | ||
|
||
{% block content %} | ||
<div> | ||
<div class="main"> | ||
<div class="main__book"> | ||
{% for book in books %} | ||
<div class="book-preview"> | ||
<img class="book-preview__img" src="/static/books/lutz.png" alt="Название книги"> | ||
<div class="book-preview__name">Название</div> | ||
<div class="spring"></div> | ||
<div class="book-preview__author">Автор</div> | ||
<a href="/">Подробнее</a> | ||
<div class="spring"></div> | ||
<div class="book-preview-order"> | ||
<div class="book-preview-order__order button">Заказать</div> | ||
<div class="book-preview-order__order button button--disable">Нет в наличии</div> | ||
</div> | ||
<img class="book-preview__img" alt="Название книги" src="{% static book.cover %}"> | ||
<div class="book-preview__name">{{ book.name }}</div> | ||
<div class="spring"></div> | ||
<div class="book-preview__author">{{ book.author }}</div> | ||
<a href="{% url 'market-catalog-detail' book.id %}">Подробнее</a> | ||
<div class="spring"></div> | ||
<div class="book-preview-order"> | ||
{% if book.is_available %} | ||
<div class="book-preview-order__order button">Заказать</div> | ||
{% else %} | ||
<div class="book-preview-order__order button button--disable">Нет в наличии</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
<footer> | ||
<div class="footer"> | ||
<a href="#" class="footer__name">Курсы по питону 2018</a> | ||
<div class="spring"></div> | ||
<a href="mailto:[email protected]" class="footer__mailto">[email protected]</a> | ||
</div> | ||
</footer> | ||
</body> | ||
</html> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% load static %} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Книжный магазин</title> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> | ||
<link rel="stylesheet" href="{% static 'css/fonts.css' %}"> | ||
<link rel="stylesheet" href="{% static 'css/style.css' %}"> | ||
</head> | ||
<body> | ||
<header> | ||
<nav class="nav"> | ||
<a href="#" class="nav__bar fa fa-solid bar"></a> | ||
<a href="/" class="nav__logo">Книжный магазин</a> | ||
<div class="spring"></div> | ||
<a href="#" class="nav__basket fa fa-solid basket"></a> | ||
</nav> | ||
</header> | ||
<main>{% block content %}{% endblock %}</main> | ||
<footer> | ||
<div class="footer"> | ||
<a href="#" class="footer__name">Курсы по питону 2018</a> | ||
<div class="spring"></div> | ||
<a href="mailto:[email protected]" class="footer__mailto">[email protected]</a> | ||
</div> | ||
</footer> | ||
</body> | ||
</html> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍