From 206434b7de1e055ab653a6f67abec968853dc40e Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Sun, 18 Jan 2015 14:21:52 +0000 Subject: [PATCH] Refresh design --- links/models.py | 2 +- links/templates/404.html | 28 ++ links/templates/index.html | 30 +- links/views.py | 2 +- static/style.css | 967 +++++++++++++++++++++++++++++++------ 5 files changed, 863 insertions(+), 166 deletions(-) create mode 100644 links/templates/404.html diff --git a/links/models.py b/links/models.py index fa1987e..d157d81 100644 --- a/links/models.py +++ b/links/models.py @@ -31,7 +31,7 @@ class Link(models.Model): class LinkForm(ModelForm): - url = CharField(label='') + url = CharField(widget=TextInput(attrs={'class':'u-full-width', 'placeholder': 'Paste the link you want to shorten'}), label='') class Meta: model = Link fields = ['url'] diff --git a/links/templates/404.html b/links/templates/404.html new file mode 100644 index 0000000..399724d --- /dev/null +++ b/links/templates/404.html @@ -0,0 +1,28 @@ + + + + + + minie links! + + + +
+ + +

Page not found

+

Try this one instead https://min.ie/WVFdWJMa

+ + +
+ + + + + \ No newline at end of file diff --git a/links/templates/index.html b/links/templates/index.html index 07fa317..dd558e2 100644 --- a/links/templates/index.html +++ b/links/templates/index.html @@ -2,32 +2,34 @@ + + minie links! -
-
-
    - {{form.as_ul}} -
  • -
-
-
- -
+
+ +
+ {{form.url}} + +
+ {% if short_url %}
- - + +
{% endif %} -
Drag this bookmarklet min.ie to your bookmark bar, or just stick "min.ie/" before any link you want to shrink.
-

Django and Postgres Powered

+
+

Makes links shorter, like this: https://min.ie/WVFdWJMa

+

Drag this bookmarklet min.ie to your bookmark bar for quick shrinking. Then just click the bookmark on a page you want a short url for.

+
+