From cad796c8e37089bfe7d5f8886b4854110d5763c2 Mon Sep 17 00:00:00 2001 From: chimchooree Date: Fri, 4 Dec 2020 23:28:47 -0600 Subject: [PATCH] ideabox fills with words from file --- src/diary/entries/extra/ideabox | 85 +++++++++++++++++++++++++++------ src/index.py | 9 +++- src/static/css/box.css | 8 ++++ src/views/ideabox.tpl | 4 +- 4 files changed, 90 insertions(+), 16 deletions(-) diff --git a/src/diary/entries/extra/ideabox b/src/diary/entries/extra/ideabox index 9d460bf..00962ac 100644 --- a/src/diary/entries/extra/ideabox +++ b/src/diary/entries/extra/ideabox @@ -1,5 +1,5 @@ - My personal collection of inspiring concepts. Many are from nature, culture, mythology, literature, music, art, and beauty. Some are personal concepts. Some are from existing IPs.
abyssal whip +adamantine aloe alpine amber @@ -19,29 +19,40 @@ black bear The Black Hand black knight black water +black widow +bloodstone blue and yellow blue rose bluebell box garden +breath of life bunny boy +buried treasure butterfly woman candlelight castle cat familiar cat man chained to rocks -chainmail +chain mail +chamaeleon +chamomile chimera chives cipher +cold iron +confetti constellations +cotton couture crab crazy quilt Crossroad Keep +crystal sea daeva +death's-head hawkmoth Diana -diarama +diorama dimetrodon donkey doppelgänger @@ -50,6 +61,7 @@ dragonstone Dymer dystopia ectoplasm +edelweiss egg hunt elixir of life Entrana @@ -58,8 +70,9 @@ ettin evil twin fable falling leaves -fairy kingdom +fairy lights fairy ring +faun femme covert femme fatale fiery sword @@ -67,14 +80,18 @@ firebrand floating flower woman flying -folkelore +folklore +fountain of youth fortress fringe frog prince geode +ghost orchid ghost town girl in the internet girl in white +glow stick +glow-in-the-dark stars golden apple golden orb weaver golem @@ -87,25 +104,30 @@ haunted house headscarf heart hermit +holly +honeydew hot air balloon hot and cold game +hot cocoa igari makeup illuminated text -imbalanced style -imprismed incense ironwood jacquard kesi silk +kigurumi La Belle Sans Merci labyrinth lady cat Lady of Shallot Lady of the Lake lady in black +lake of fire +lavender lip oil Little Red Riding Hood lobster +locket Lokasenna loner lost city @@ -115,29 +137,35 @@ lullaby macramé mages guild magic carpet -maknae man in the moon -mandragor +mandrake +manna marine mask masquerade mead of poetry mean girl +melon soda memento mori memoir mercury rivers and lakes +miasma mirror of Venus mirror on the wall +mithril monastery money tree monkey and bear moonglow moonstone mossy cobblestone +moth +muse oneiromancer oblivion opal orb +orichalcum orphan panda eyes pearl @@ -146,14 +174,20 @@ phantom residue phantom thief pharisee philosopher's stone -pilgrimmage +pilgrimage +pinwheel planetary weather +plastic vampire fangs Poeta poetry and prose pomegranate poppy post-rock +pretzel princess of Kentucky +prism +poinsettia +popcorn propaganda proverb pseudonym @@ -162,13 +196,20 @@ rainbow reclining woman red reverse trap +road roller +rooibos tea runestone +s'more sailor fuku Sanctum +sandcastle +sandman sanguine, my brother sardonic satire +satyr scrying pool +scythe sea foam sea of stars secret garden @@ -180,39 +221,55 @@ silk embroidery singing sword skeleton skipping stone +slide puzzle slime -soulmates +snow globe +soma +soulmate +spooky chews +squid spice cookie spirit animal spy stained-glass +stardust starry sky +sticker stinky cat stone people +strawberries and cream +strawberry shortcake +sunflower sword in the stone +taffy tatting tears of Guthix three women +toasted marshmallow treasure trails tree of life trickster +tulip tungsten underwater +unicorn horn unstoppable mailman urban legend utopia vanity of vanities -vyrewatch walled city wampus cat watchmen on the wall +water bearer water nymph -waterbearer +white Christmas +will-o'-wisp wings +wishing well witchhouse witching hour wizard tower -wolfbane +wolf's-bane woman and serpent the woodsman Yggdrasil diff --git a/src/index.py b/src/index.py index 3d59155..127173f 100644 --- a/src/index.py +++ b/src/index.py @@ -181,6 +181,13 @@ def gather_files(loc): def gather_and_sort(loc): return sort_files(curate_files(gather_files(loc))) +def fill_ideabox(): + box = [] + with open('diary/entries/extra/ideabox') as f: + for line in f: + box.append(line) + return box + ## Static ## # Serve CSS @@ -296,7 +303,7 @@ def contact(): @route('/ideabox') def ideabox(): """idea box page""" - info = {'css': 'box', 'title': 'blessfrey - idea box - a collection of inspiring concepts', 'words': ["cat", "dog", "tree", "why", "what", "how"], 'limit': 5, 'year': datetime.datetime.now()} + info = {'css': 'box', 'title': 'blessfrey - idea box - a collection of inspiring concepts', 'words': fill_ideabox(), 'limit': 5, 'year': datetime.datetime.now()} return template('ideabox.tpl', info) ## Main ## diff --git a/src/static/css/box.css b/src/static/css/box.css index d8acb61..0f26d70 100755 --- a/src/static/css/box.css +++ b/src/static/css/box.css @@ -121,6 +121,14 @@ body { color: #f463ad; } +table, th, td { + border: 1px solid #330532; +} + +th, td { + padding: 5px; +} + .footer-content { padding-top: 5px; text-align: right; diff --git a/src/views/ideabox.tpl b/src/views/ideabox.tpl index 79e591f..24c104e 100644 --- a/src/views/ideabox.tpl +++ b/src/views/ideabox.tpl @@ -3,7 +3,9 @@
-

+
+

ideabox☆

+ My personal collection of inspiring concepts + favorite things. Many are from nature, culture, mythology, literature, music, art, and beauty. Some are personal concepts. Some are from existing IPs. You can use them, too, if they help you.

% for i in range(math.ceil(len(words) / limit)):