Skip to content

/countries: show countries in 4 columns #604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
php-coder opened this issue May 28, 2017 · 1 comment
Closed

/countries: show countries in 4 columns #604

php-coder opened this issue May 28, 2017 · 1 comment

Comments

@php-coder
Copy link
Owner

php-coder commented May 28, 2017

Сейчас страны выводятся одним длинным списком и появляется скроллинг. При этом справа на странице много свободного места. Хочется, чтобы когда стран много, то вместо одного столбца, выводить два, три, или даже четыре.

Для этого нужно немного изменить верстку в шаблоне страницы (см. src/main/webapp/WEB-INF/views/country/list.html), чтобы выводить все в несколько столбцов. Количество ссылок в столбце, давай установим в 30. Т.е. если стран <= 30, то будет один столбец, если <= 60, то два, если <= 90, то три, если <=120, то четыре. Больше быть столбцов не должно, поэтому, если стран более 120, то нужно динамически посчитать и изменить максимальное число стран в столбце. Например, если стран 150, то у нас будет 4 столбца по 38 стран.

Также, будет необходимо поработать над тем, чтобы верстка была responsive, т.е. если размер экрана маленький, как на iPhone, то выводить все в один столбец, как раньше (тут все просто, нужно будет просто правильные CSS классы подобрать).

Подробнее про версту с Bootstrap и модель страницы: https://getbootstrap.com/docs/3.3/css/#grid
Документация по Thymeleaf: https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html

@php-coder php-coder added this to the next milestone May 28, 2017
@php-coder php-coder changed the title /country/list: show countries in 3 columns /countries: show countries in 3 columns Mar 12, 2018
@php-coder php-coder changed the title /countries: show countries in 3 columns /countries: show countries in 4 columns Mar 13, 2018
@php-coder php-coder modified the milestones: next, 0.4.6 Feb 15, 2021
@php-coder php-coder self-assigned this Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants