stable
Clone or download
Run forgeupgrade, then hack the database to inject in project_background table one of the two backgrounds provided by this changeset: * beach * bridge Then load the project dashboard and the project administration: the background should be displayed. Other pages in the project should not have the background (for now). Background images are taken from Unsplash[0] that allows us to use them freely[1]: > Unsplash grants you an irrevocable, nonexclusive, worldwide copyright > license to download, copy, modify, distribute, perform, and use photos > from Unsplash for free, including for commercial purposes, without > permission from or attributing the photographer or Unsplash. This > license does not include the right to compile photos from Unsplash to > replicate a similar or competing service. Images are in large format (2400px wide) and cropped to ≃850px height so that header can be displayed on most pages without taking too much bandwidth. Furthermore webp format is used instead of original jpg to reduce the size of the asset. Dominant color of the image is extracted[2] and displayed while the image is loading, in order to allow a not too harsh transition. Background is composed of 3 layers: Semi transparent opacifier so that the image integrates +--+ with theme variants | | +---------------------v-+ |· · · · · · | +--+ · · · · · ·| | |· · · · · · | +--+ | · · · · · ·| |##| |· · · · · · | |##| | · · · · · ·| |##| |· · · · · · | |##| | · · · · · ·| |##| +-------------------+---+ |##| | |##+----------------+---^-+ |###################| | +^------------------+ | | | | The image +----+ | | +-+ Dominant color of the image * displayed while loading image * if image is not big enough, it is displayed as fallback Note: We need to adjust FP tabs and feedback_* style so that they look the same than on BP pages. Note: While searching a place to put the background images, I found an unused image image-homepage-tuleap.jpg. It has then been removed, alongside the corresponding css style in src/themes/common/css/style.scss. Part of story #16211 Set a header background image [0] https://unsplash.com [1] https://unsplash.com/license [2] Ex of online tool: https://www.imgonline.com.ua/eng/get-dominant-colors-result.php Change-Id: Ia71baa5c870f99acd0f9fc14a7715965ca9ab5b0
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/Dashboard/Project/ProjectDashboardController.php | +15 | −1 | Go to diff View file |
M | src/common/Project/Admin/Navigation/HeaderNavigationDisplayer.php | +21 | −4 | Go to diff View file |
M | src/common/Project/Admin/ProjectDetails/ProjectDetailsController.php | +2 | −1 | Go to diff View file |
M | src/common/Project/Admin/ProjectMembers/ProjectMembersController.php | +2 | −1 | Go to diff View file |
M | src/common/Project/Admin/Routing/AdministrationLayoutHelper.php | +2 | −1 | Go to diff View file |
M | src/common/Project/Home.php | +3 | −1 | Go to diff View file |
M | src/common/Project/Label/IndexController.php | +2 | −1 | Go to diff View file |
A | src/common/Project/ProjectBackground/ProjectBackgroundDao.php | +36 | −0 | Go to diff View file |
M | src/common/layout/BaseLayout.php | +2 | −1 | Go to diff View file |
M | src/common/layout/Layout.class.php | +9 | −0 | Go to diff View file |
M | src/db/mysql/database_structure.sql | +6 | −0 | Go to diff View file |
A | src/db/mysql/updates/2020/202010060853_create_project_background_table.php | +45 | −0 | Go to diff View file |
M | src/templates/dashboard/dashboard-tabs.mustache | +2 | −0 | Go to diff View file |
M | src/templates/project/navigation.mustache | +24 | −22 | Go to diff View file |
M | src/templates/project/navigation_flaming_parrot.mustache | +2 | −0 | Go to diff View file |
M | src/themes/BurningParrot/css/_includes.scss | +1 | −0 | Go to diff View file |
M | src/themes/BurningParrot/css/dashboards/_dashboard.scss | +0 | −4 | Go to diff View file |
M | src/themes/BurningParrot/css/dashboards/includes/_dashboard-project.scss | +1 | −2 | Go to diff View file |
M | src/themes/BurningParrot/css/includes/_project-admin.scss | +4 | −0 | Go to diff View file |
A | src/themes/BurningParrot/css/includes/_project-background.scss | +104 | −0 | Go to diff View file |
M | src/themes/BurningParrot/css/includes/_structure.scss | +9 | −6 | Go to diff View file |
M | src/themes/FlamingParrot/css/utils/_bootstrap-overrides.scss | +9 | −7 | Go to diff View file |
M | src/themes/FlamingParrot/css/utils/_definitions.scss | +1 | −0 | Go to diff View file |
M | src/themes/FlamingParrot/css/utils/_feedback.scss | +5 | −5 | Go to diff View file |
M | src/themes/FlamingParrot/css/utils/_navbar.scss | +12 | −13 | Go to diff View file |
M | src/themes/FlamingParrot/css/utils/_post-definitions.scss | +0 | −4 | Go to diff View file |
A | src/themes/FlamingParrot/css/utils/_project-background.scss | +135 | −0 | Go to diff View file |
M | src/themes/FlamingParrot/css/utils/_project.scss | +1 | −1 | Go to diff View file |
M | src/themes/FlamingParrot/include/ContainerPresenter.class.php | +8 | −1 | Go to diff View file |
M | src/themes/FlamingParrot/templates/container.mustache | +1 | −1 | Go to diff View file |
A | src/themes/common/css/project-background/_project-background.scss | +79 | −0 | Go to diff View file |
A | src/themes/common/css/project-background/beach.scss | +25 | −0 | Go to diff View file |
A | src/themes/common/css/project-background/bridge.scss | +25 | −0 | Go to diff View file |
M | src/themes/common/css/style.scss | +0 | −5 | Go to diff View file |
D | src/themes/common/images/homepage/image-homepage-tuleap.png | +- | −- | Go to diff View file |
A | src/themes/common/images/project-background/beach.webp | Binary file | Go to diff View file | |
A | src/themes/common/images/project-background/bridge.webp | Binary file | Go to diff View file | |
M | src/webpack.common.js | +7 | −0 | Go to diff View file |
M | src/www/include/html.php | +14 | −0 | Go to diff View file |
M | src/www/project/admin/editugroup.php | +2 | −1 | Go to diff View file |
M | src/www/project/admin/permission_per_group.php | +2 | −1 | Go to diff View file |
M | src/www/project/admin/project_admin_utils.php | +5 | −4 | Go to diff View file |
M | src/www/project/admin/ugroup.php | +2 | −1 | Go to diff View file |
M | src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php | +13 | −3 | Go to diff View file |
M | tests/unit/common/layout/LayoutTest.php | +35 | −3 | Go to diff View file |
M | tools/utils/scripts/webpack-rule-configs.js | +1 | −1 | Go to diff View file |