Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
9f8c63f4
Commit
9f8c63f4
authored
2 years ago
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
fix(district): homepage header block shadow & responsinvness
parent
7bf698f7
No related branches found
No related tags found
2 merge requests
!510
Release
,
!506
More map improvements
Pipeline
#8173
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
district/models.py
+8
-2
8 additions, 2 deletions
district/models.py
district/templates/district/blocks/homepage_header_block.html
+7
-7
7 additions, 7 deletions
...rict/templates/district/blocks/homepage_header_block.html
with
15 additions
and
9 deletions
district/models.py
+
8
−
2
View file @
9f8c63f4
...
@@ -1044,7 +1044,10 @@ class DistrictElectionRootPage(RoutablePageMixin, Page):
...
@@ -1044,7 +1044,10 @@ class DistrictElectionRootPage(RoutablePageMixin, Page):
### RELATIONS
### RELATIONS
parent_page_types
=
[
"
district.DistrictHomePage
"
]
parent_page_types
=
[
"
district.DistrictHomePage
"
]
subpage_types
=
[
"
district.DistrictElectionCampaignPage
"
]
subpage_types
=
[
"
district.DistrictElectionCampaignPage
"
,
"
district.DistrictGeoFeatureCollectionPage
"
,
]
### OTHERS
### OTHERS
...
@@ -1372,7 +1375,10 @@ class DistrictGeoFeatureCollectionPage(
...
@@ -1372,7 +1375,10 @@ class DistrictGeoFeatureCollectionPage(
### RELATIONS
### RELATIONS
parent_page_types
=
[
"
district.DistrictHomePage
"
]
parent_page_types
=
[
"
district.DistrictHomePage
"
,
"
district.DistrictElectionRootPage
"
,
]
subpage_types
=
[
"
district.DistrictGeoFeatureDetailPage
"
]
subpage_types
=
[
"
district.DistrictGeoFeatureDetailPage
"
]
class
Meta
:
class
Meta
:
...
...
This diff is collapsed.
Click to expand it.
district/templates/district/blocks/homepage_header_block.html
+
7
−
7
View file @
9f8c63f4
{% load wagtailimages_tags %}
{% load wagtailimages_tags %}
<header
class=
"hero py-8 lg:py-16"
>
<header
class=
"hero py-8 lg:py-16"
>
<div
class=
"container container--default grid
lg
:grid-cols-7
lg
:grid-rows-3 gap-2 items-center"
>
<div
class=
"container container--default grid
md
:grid-cols-7
md
:grid-rows-3 gap-2 items-center
text-center md:text-left
"
>
<div
class=
"
lg
:col-span-3
lg
:row-span-2 order-1"
>
<div
class=
"
md
:col-span-3
md
:row-span-2
order-2 md:
order-1"
>
<h1
class=
"head-alt-lg
md
:head-alt-xl
text-shadow-lg
"
>
{% firstof self.title page.title %}
</h1>
<h1
class=
"head-alt-lg
lg
:head-alt-xl"
>
{% firstof self.title page.title %}
</h1>
</div>
</div>
<div
class=
"
lg
:row-span-1
lg
:col-span-3 order-3"
>
<div
class=
"
md
:row-span-1
md
:col-span-3 order-3"
>
<div
class=
"mt-4 md:mt-8 space-y-4 "
>
<div
class=
"mt-4 md:mt-8 space-y-4 "
>
{% if self.button_link and self.button_text %}
{% if self.button_link and self.button_text %}
<a
href=
"{{ self.button_link }}"
class=
"btn btn--icon btn--hoveractive btn--fullwidth m
d
:btn--autowidth text-lg"
>
<a
href=
"{{ self.button_link }}"
class=
"btn btn--icon btn--hoveractive btn--fullwidth
s
m:btn--autowidth text-lg"
>
<div
class=
"btn__body-wrap"
>
<div
class=
"btn__body-wrap"
>
<div
class=
"btn__body "
>
{{ self.button_text }}
</div>
<div
class=
"btn__body "
>
{{ self.button_text }}
</div>
<div
class=
"btn__icon "
>
<div
class=
"btn__icon "
>
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
</div>
</div>
</div>
</div>
<div
class=
"
lg
:col-span-4 order-
2 row-span-1 lg
:row-span-3"
>
<div
class=
"
md
:col-span-4 order-
1 md:order-2 md
:row-span-3"
>
{% image self.image width-495 as img %}
{% image self.image width-495 as img %}
<img
src=
"{{ img.url }}"
alt=
""
class=
"object-contain h-32 lg:h-80
lg:
m-auto
hidden md:
block"
>
<img
src=
"{{ img.url }}"
alt=
""
class=
"object-contain h-32
md:h-64
lg:h-80 m-auto block"
>
</div>
</div>
</div>
</div>
</header>
</header>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment