diff --git a/.gitignore b/.gitignore index 4ca0ce7..3240ecc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ __pycache__/ -idre/settings.py -static/ -media/ +/idre/settings.py +/static/ +/media/ diff --git a/idre/static/css/base.css b/idre/static/css/base.css index 3fc6e9a..09d3080 100644 --- a/idre/static/css/base.css +++ b/idre/static/css/base.css @@ -72,6 +72,7 @@ body { .release-infos .title { margin: 0; font-size: 1.5em; + line-height: 1.1em; } .release-infos .contributors, @@ -109,6 +110,22 @@ body { .release-infos .extras { font-size: 1.4em; } + + .release-links { + position: absolute; + bottom: -1.5em; + height: 3em; + width: 100%; + display: flex; + justify-content: center; + gap: 0.5em; + } + + .release-link img { + max-width: 3em; + border: 2px solid white; + border-radius: 0.5em; + } } @keyframes fadeColor { diff --git a/idre/static/img/bandcamp-button-square-aqua-128.png b/idre/static/img/bandcamp-button-square-aqua-128.png new file mode 100644 index 0000000..cec2a47 Binary files /dev/null and b/idre/static/img/bandcamp-button-square-aqua-128.png differ diff --git a/idre/static/img/bandcamp_logo.png b/idre/static/img/bandcamp_logo.png deleted file mode 100644 index fad8fea..0000000 Binary files a/idre/static/img/bandcamp_logo.png and /dev/null differ diff --git a/idre/static/img/soundcloud_logo.png b/idre/static/img/soundcloud_logo.png deleted file mode 100644 index 81a3a44..0000000 Binary files a/idre/static/img/soundcloud_logo.png and /dev/null differ diff --git a/label/migrations/0007_auto_20230914_2147.py b/label/migrations/0007_auto_20230914_2147.py new file mode 100644 index 0000000..94b6519 --- /dev/null +++ b/label/migrations/0007_auto_20230914_2147.py @@ -0,0 +1,22 @@ +# Generated by Django 3.2.21 on 2023-09-14 19:47 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('label', '0006_auto_20220117_1636'), + ] + + operations = [ + migrations.RemoveField( + model_name='release', + name='embed', + ), + migrations.AddField( + model_name='release', + name='url_bandcamp', + field=models.URLField(blank=True), + ), + ] diff --git a/label/models.py b/label/models.py index 02e8ab0..083ba8d 100644 --- a/label/models.py +++ b/label/models.py @@ -46,6 +46,7 @@ class Release(models.Model): year: year of release cover: image file associated to this release released: show this release publicly + url_bandcamp: link to the release """ TYPE_HINT = 'full-length (0), EP (1), Split (2), Démo (3)' @@ -57,9 +58,9 @@ class Release(models.Model): release_type = models.IntegerField(default=0, help_text=TYPE_HINT) cover = models.ImageField(upload_to='releases') year = models.IntegerField() - embed = models.TextField(blank=True, help_text=EMBED_HINT) description = models.TextField(blank=True) released = models.BooleanField(default=False) + url_bandcamp = models.URLField(blank=True) def __str__(self): return self.title diff --git a/label/templates/label/releases.html b/label/templates/label/releases.html index 42a22cc..689ee13 100644 --- a/label/templates/label/releases.html +++ b/label/templates/label/releases.html @@ -27,6 +27,14 @@ {{ release.tag }} — {{ release.year }}
+ +