-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impact areas page with placeholders, css changes
=> font sizes are more accurate to the mockups (adobe XD font sizes aren't true to other programs for some reason?)
- Loading branch information
1 parent
b197096
commit f005da7
Showing
13 changed files
with
206 additions
and
28 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
app/impact_areas/migrations/0004_impactareaspage_impact_area_blocks.py
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,21 @@ | ||
# Generated by Django 4.2.7 on 2024-05-06 23:47 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('impact_areas', '0003_impactareaspage_image'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='impactareaspage', | ||
name='impact_area_blocks', | ||
field=wagtail.fields.StreamField([('image', wagtail.images.blocks.ImageChooserBlock()), ('title', wagtail.blocks.CharBlock(form_classname='title')), ('description', wagtail.blocks.RichTextBlock()), ('link', wagtail.blocks.URLBlock())], blank=True, use_json_field=True), | ||
), | ||
] |
21 changes: 21 additions & 0 deletions
21
app/impact_areas/migrations/0005_alter_impactareaspage_impact_area_blocks.py
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,21 @@ | ||
# Generated by Django 4.2.7 on 2024-05-06 23:48 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('impact_areas', '0004_impactareaspage_impact_area_blocks'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='impactareaspage', | ||
name='impact_area_blocks', | ||
field=wagtail.fields.StreamField([('image', wagtail.images.blocks.ImageChooserBlock()), ('title', wagtail.blocks.CharBlock(form_classname='title')), ('description', wagtail.blocks.RichTextBlock()), ('link', wagtail.blocks.URLBlock())], null=True, use_json_field=True), | ||
), | ||
] |
21 changes: 21 additions & 0 deletions
21
app/impact_areas/migrations/0006_alter_impactareaspage_impact_area_blocks.py
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,21 @@ | ||
# Generated by Django 4.2.7 on 2024-05-06 23:50 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('impact_areas', '0005_alter_impactareaspage_impact_area_blocks'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='impactareaspage', | ||
name='impact_area_blocks', | ||
field=wagtail.fields.StreamField([('image', wagtail.images.blocks.ImageChooserBlock()), ('title', wagtail.blocks.CharBlock(form_classname='title')), ('description', wagtail.blocks.CharBlock()), ('link', wagtail.blocks.URLBlock())], null=True, use_json_field=True), | ||
), | ||
] |
21 changes: 21 additions & 0 deletions
21
app/impact_areas/migrations/0007_alter_impactareaspage_impact_area_blocks.py
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,21 @@ | ||
# Generated by Django 4.2.7 on 2024-05-06 23:54 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('impact_areas', '0006_alter_impactareaspage_impact_area_blocks'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='impactareaspage', | ||
name='impact_area_blocks', | ||
field=wagtail.fields.StreamField([('image', wagtail.images.blocks.ImageChooserBlock()), ('title', wagtail.blocks.CharBlock()), ('description', wagtail.blocks.RichTextBlock()), ('link', wagtail.blocks.URLBlock())], null=True, use_json_field=True), | ||
), | ||
] |
21 changes: 21 additions & 0 deletions
21
app/impact_areas/migrations/0008_alter_impactareaspage_impact_area_blocks.py
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,21 @@ | ||
# Generated by Django 4.2.7 on 2024-05-06 23:58 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('impact_areas', '0007_alter_impactareaspage_impact_area_blocks'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='impactareaspage', | ||
name='impact_area_blocks', | ||
field=wagtail.fields.StreamField([('impact_area_block', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('title', wagtail.blocks.CharBlock()), ('description', wagtail.blocks.RichTextBlock()), ('link', wagtail.blocks.URLBlock())]))], null=True, use_json_field=True), | ||
), | ||
] |
21 changes: 21 additions & 0 deletions
21
app/impact_areas/migrations/0009_alter_impactareaspage_impact_area_blocks.py
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,21 @@ | ||
# Generated by Django 4.2.7 on 2024-05-07 16:12 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('impact_areas', '0008_alter_impactareaspage_impact_area_blocks'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='impactareaspage', | ||
name='impact_area_blocks', | ||
field=wagtail.fields.StreamField([('impact_area_block', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('title', wagtail.blocks.CharBlock()), ('description', wagtail.blocks.RichTextBlock()), ('link', wagtail.blocks.URLBlock(null=True))]))], null=True, use_json_field=True), | ||
), | ||
] |
21 changes: 21 additions & 0 deletions
21
app/impact_areas/migrations/0010_alter_impactareaspage_impact_area_blocks.py
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,21 @@ | ||
# Generated by Django 4.2.7 on 2024-05-07 16:13 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('impact_areas', '0009_alter_impactareaspage_impact_area_blocks'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='impactareaspage', | ||
name='impact_area_blocks', | ||
field=wagtail.fields.StreamField([('impact_area_block', wagtail.blocks.StructBlock([('image', wagtail.images.blocks.ImageChooserBlock()), ('title', wagtail.blocks.CharBlock()), ('description', wagtail.blocks.RichTextBlock()), ('link', wagtail.blocks.URLBlock(required=False))]))], null=True, use_json_field=True), | ||
), | ||
] |
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
26 changes: 26 additions & 0 deletions
26
app/ui/templates/ui/components/LearnMoreAboutBlurbWithImage.html
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,26 @@ | ||
{% load wagtailimages_tags %} | ||
{% image image original as image_p %} | ||
|
||
<div class="mx-4 my-8 lg:my-4"> | ||
<div class="bg-gradient-to-t from-black/70 to-transparent to-30%"> | ||
<img class="w-full h-72 object-cover -z-10 relative" src="{{ image_p.url }}" /> | ||
</div> | ||
|
||
<h2 class="text-h3 font-bold py-1"> | ||
{{ title }} | ||
</h2> | ||
|
||
<div class="text-base py-1"> | ||
{{ description }} | ||
</div> | ||
|
||
<p class="text-h5 py-1"> | ||
<a href="{{ link }}"> | ||
<span class="border-b-hot-red border-b-2 pb-1">Learn More about {{ title }}</span> | ||
|
||
<svg class="inline ml-4" xmlns="http://www.w3.org/2000/svg" width="10.808" height="16.817" viewBox="0 0 10.808 16.817"> | ||
<path id="Path_13007" data-name="Path 13007" d="M0,8.4,7,0l7,8.4" transform="translate(9.808 1.408) rotate(90)" fill="none" stroke="#d43f3f" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/> | ||
</svg> | ||
</a> | ||
</p> | ||
</div> |
Empty file.
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