From 5835bbc236c6387d6e235fcf16cf4ab92a94c003 Mon Sep 17 00:00:00 2001 From: Geo Halkiadakis Date: Wed, 7 Jun 2023 19:20:25 +0300 Subject: add and organize themes --- public/app/controllers/Office.php | 9 +- public/app/views/components/theme.php | 105 ++++++++++++++--------- public/assets/css/class.css | 2 +- public/assets/css/themes/fall-08.css | 8 ++ public/assets/css/themes/spring-01.css | 7 ++ public/assets/css/themes/spring-09.css | 7 ++ public/assets/media/.comments/fall-08.jpg.xml | 7 -- public/assets/media/.comments/spring-05.jpg.xml | 8 -- public/assets/media/.comments/spring-08.jpg.xml | 57 ------------ public/assets/media/.comments/summer-0.jpg.xml | 49 ----------- public/assets/media/.comments/summer-01.webp.xml | 49 ----------- public/assets/media/.comments/summer-02.jpg.xml | 8 -- public/assets/media/.comments/summer-09.jpg.xml | 7 -- public/assets/media/.comments/winter-07.jpg.xml | 19 ---- public/assets/media/.comments/winter-08.jpg.xml | 7 -- public/assets/media/credits.txt | 26 +++++- public/assets/media/fall-08.jpg | Bin 10820 -> 0 bytes public/assets/media/fall-08.webp | Bin 0 -> 54986 bytes public/assets/media/spring-01.jpg | Bin 49114 -> 68870 bytes public/assets/media/spring-01.webp | Bin 0 -> 26938 bytes public/assets/media/spring-09.webp | Bin 0 -> 62760 bytes 21 files changed, 114 insertions(+), 261 deletions(-) create mode 100644 public/assets/css/themes/fall-08.css create mode 100644 public/assets/css/themes/spring-01.css create mode 100644 public/assets/css/themes/spring-09.css delete mode 100644 public/assets/media/.comments/fall-08.jpg.xml delete mode 100644 public/assets/media/.comments/spring-05.jpg.xml delete mode 100644 public/assets/media/.comments/spring-08.jpg.xml delete mode 100644 public/assets/media/.comments/summer-0.jpg.xml delete mode 100644 public/assets/media/.comments/summer-01.webp.xml delete mode 100644 public/assets/media/.comments/summer-02.jpg.xml delete mode 100644 public/assets/media/.comments/summer-09.jpg.xml delete mode 100644 public/assets/media/.comments/winter-07.jpg.xml delete mode 100644 public/assets/media/.comments/winter-08.jpg.xml delete mode 100644 public/assets/media/fall-08.jpg create mode 100644 public/assets/media/fall-08.webp create mode 100644 public/assets/media/spring-01.webp create mode 100644 public/assets/media/spring-09.webp (limited to 'public') diff --git a/public/app/controllers/Office.php b/public/app/controllers/Office.php index 7a542eb..be8919f 100644 --- a/public/app/controllers/Office.php +++ b/public/app/controllers/Office.php @@ -48,6 +48,7 @@ class Office { + ## SERVE FILE ## ------------------------------------------------------------------------- @@ -384,7 +385,6 @@ class Office { return $tick; // return the xreated ticket } - /** remove_ticker * * removes a ticket and return true; @@ -408,7 +408,6 @@ class Office { - ## ADMIN METHODS (insert, updated etc.) ## ------------------------------------------------------------------------- @@ -435,7 +434,6 @@ class Office { return Cache_service::files_attributes(); } - /** upload_file * upload the file to the file system * @@ -473,7 +471,6 @@ class Office { } } - /** upload to fs * upload file to File-System * @@ -561,7 +558,6 @@ class Office { } - /** clear_file_name * replace greek characters and strip symbols */ @@ -574,7 +570,7 @@ class Office { return str_replace($strip, '', str_replace($el, $en, $str)); } - + /** define_media * * create a record in media table @@ -598,7 +594,6 @@ class Office { return $media_id; } - /** create media for petition * * links petition to each media-file of the media `id`s array diff --git a/public/app/views/components/theme.php b/public/app/views/components/theme.php index c44fcce..b6ada78 100644 --- a/public/app/views/components/theme.php +++ b/public/app/views/components/theme.php @@ -29,71 +29,94 @@ switch ($month) { * --- -- -- - - - * auto select one id of L = array.LENGTH, per month: * ( ( (month*31 + day) % L*2 ) div 2 ) - * * this will allow theme exchange every 2 days + * + * ( ( ( month*31 + day) % L*4 ) div 4 ) + * change seasonal theme every 4 days */ -$themes = [ +$theme_def = [ + + # --- summer --- - 'summer' => [ - [ - 'css' => 'summer-05', - 'url' => 'https://www.vecteezy.com/vector-art/6691305', - 'label' => 'Mohammad Arfa Affan: 3d Vectors (@Vecteezy)' - ], - [ - 'css' => 'summer-02', - 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-elkiv', - 'label' => '@pxfuel: Faded orange lines' - ], - [ - 'css' => 'summer-01', - 'url' => 'https://www.freepik.com/free-photo/nazare-portugal_7487018.htm', - 'label' => 'frimufilms: North beach and ocean in Nazare, Portugal' - ] + 's1' => [ + 'css' => 'summer-01', + 'url' => 'https://www.freepik.com/free-photo/nazare-portugal_7487018.htm', + 'label' => 'frimufilms: North beach and ocean in Nazare, Portugal' ], + 's2' => [ + 'css' => 'summer-02', + 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-elkiv', + 'label' => '@pxfuel: Faded orange lines' + ], + + 's5' => [ + 'css' => 'summer-05', + 'url' => 'https://www.vecteezy.com/vector-art/6691305', + 'label' => 'Mohammad Arfa Affan: 3d Vectors (@Vecteezy)' + ], - 'fall' => [ + # --- fall --- - [ - 'css' => 'spring-04', - 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-evgsz', - 'label' => '@pxfuel: Nature, lights' - ] + 'f8' => [ + 'css' => 'fall-08', + 'url' => 'https://www.flickr.com/photos/docsearls/12114022885/', + 'label' => 'Doc Searls: Amazing Santa Barbara sunset (2014/01)' ], - // summer-09 - // https://www.freepik.com/free-photo/body-water_13126578.htm - // ninjason1: Body of water - 'winter' => [ - [ - 'css' => 'winter-09', - 'url' => 'https://www.freepik.com/free-photo/abstract-water-waves-with-ink-dots_5068293.htm', - 'label' => 'freepik: Abstract water waves with ink dots' - ] + # --- winter --- + 'w9' => [ + 'css' => 'winter-09', + 'url' => 'https://www.freepik.com/free-photo/abstract-water-waves-with-ink-dots_5068293.htm', + 'label' => 'freepik: Abstract water waves with ink dots' ], + # --- spring --- - 'spring' => [ - [ - 'css' => 'spring-04', - 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-evgsz', - 'label' => '@pxfuel: Nature, lights' - ] + 'g1' => [ + 'css' => 'spring-01', + 'url' => 'https://www.flickr.com/photos/youngsabroad/26305344342/', + 'label' => 'A Young Retirement: Bokeh background' + ], + + 'g4' => [ + 'css' => 'spring-04', + 'url' => 'https://www.pxfuel.com/en/desktop-wallpaper-evgsz', + 'label' => '@pxfuel: Nature, lights' + ], + 'g9' => [ + 'css' => 'spring-09', + 'url' => 'https://www.flickr.com/photos/112072356@N06/14882252902/', + 'label' => 'auimeesri: banana leaf; blur green of banana leaf with water drop' ] ]; -define('THEME', $themes['summer'][2]); +$themes = [ + + 'summer' => [ 's1', 's5', 'g9', 's2', 'g1' ], + + + 'fall' => [ 'f8', 's5', 'g4', 's1' ], + + + 'winter' => [ 'w9' ], + + + 'spring' => [ 'g1', 'g4', 'g9' ] + +]; + + +define('THEME', $theme_def[ $themes['fall'][0] ]); ?> - diff --git a/public/assets/css/class.css b/public/assets/css/class.css index 9113ec4..6d79077 100644 --- a/public/assets/css/class.css +++ b/public/assets/css/class.css @@ -92,7 +92,7 @@ html, body { .btn-back2panel { float: right; margin-top: calc(-1 * var(--bs-btn-padding-y)); } .btn-back2panel:hover, -.btn-preview:hover { border: 1px solid #7777; background: #f5f5f5; } +.btn-preview:hover { border: 1px solid #7777; background: #f5f5f5; color: #444; } diff --git a/public/assets/css/themes/fall-08.css b/public/assets/css/themes/fall-08.css new file mode 100644 index 0000000..76f1b67 --- /dev/null +++ b/public/assets/css/themes/fall-08.css @@ -0,0 +1,8 @@ +:root { + --background-image: url(/assets/media/fall-08.webp); + --form-layer-bgr: #cccc; + --bs-heading-color: #fee /* #045 */; + --menu-hover-bgr: #fcc; + --info-text-color: #112; + --img-credit-hover-color: #334; +} diff --git a/public/assets/css/themes/spring-01.css b/public/assets/css/themes/spring-01.css new file mode 100644 index 0000000..f3eef8b --- /dev/null +++ b/public/assets/css/themes/spring-01.css @@ -0,0 +1,7 @@ +:root { + --background-image: url(/assets/media/spring-01.webp); + --bs-heading-color: #045; + --menu-hover-bgr: #bee; + --info-text-color: #334; + --img-credit-hover-color: #334; +} diff --git a/public/assets/css/themes/spring-09.css b/public/assets/css/themes/spring-09.css new file mode 100644 index 0000000..97fe4bb --- /dev/null +++ b/public/assets/css/themes/spring-09.css @@ -0,0 +1,7 @@ +:root { + --background-image: url(/assets/media/spring-09.webp); + --bs-heading-color: #230; + --menu-hover-bgr: #bee; + --info-text-color: #334; + --img-credit-hover-color: #334; +} diff --git a/public/assets/media/.comments/fall-08.jpg.xml b/public/assets/media/.comments/fall-08.jpg.xml deleted file mode 100644 index fb4c15c..0000000 --- a/public/assets/media/.comments/fall-08.jpg.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - Vertical ratio size of sunset background. sky with soft and blur pastel colored clouds. gradient cloud on the beach resort. nature. sunrise. peaceful morning. - - - diff --git a/public/assets/media/.comments/spring-05.jpg.xml b/public/assets/media/.comments/spring-05.jpg.xml deleted file mode 100644 index ca4540e..0000000 --- a/public/assets/media/.comments/spring-05.jpg.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 100 - - - - diff --git a/public/assets/media/.comments/spring-08.jpg.xml b/public/assets/media/.comments/spring-08.jpg.xml deleted file mode 100644 index 94372db..0000000 --- a/public/assets/media/.comments/spring-08.jpg.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - Blur circle bokeh green leaf background. Blurry yellow leaves rays light flare nature backdrop. - Blur circle bokeh green leaf background. Blurry yellow leaves rays light flare nature backdrop. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/assets/media/.comments/summer-0.jpg.xml b/public/assets/media/.comments/summer-0.jpg.xml deleted file mode 100644 index 9c6546c..0000000 --- a/public/assets/media/.comments/summer-0.jpg.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - North Beach in Nazare Portugal - North Beach in Nazare Portugal with foaming waves - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/assets/media/.comments/summer-01.webp.xml b/public/assets/media/.comments/summer-01.webp.xml deleted file mode 100644 index 9c6546c..0000000 --- a/public/assets/media/.comments/summer-01.webp.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - North Beach in Nazare Portugal - North Beach in Nazare Portugal with foaming waves - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/assets/media/.comments/summer-02.jpg.xml b/public/assets/media/.comments/summer-02.jpg.xml deleted file mode 100644 index ca4540e..0000000 --- a/public/assets/media/.comments/summer-02.jpg.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 100 - - - - diff --git a/public/assets/media/.comments/summer-09.jpg.xml b/public/assets/media/.comments/summer-09.jpg.xml deleted file mode 100644 index f90978a..0000000 --- a/public/assets/media/.comments/summer-09.jpg.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - body of water - - - diff --git a/public/assets/media/.comments/winter-07.jpg.xml b/public/assets/media/.comments/winter-07.jpg.xml deleted file mode 100644 index 58ddc92..0000000 --- a/public/assets/media/.comments/winter-07.jpg.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - Lake Hjälmanren - - - - - - - - - - - - - - - - diff --git a/public/assets/media/.comments/winter-08.jpg.xml b/public/assets/media/.comments/winter-08.jpg.xml deleted file mode 100644 index b30ad21..0000000 --- a/public/assets/media/.comments/winter-08.jpg.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - Bright background blur - - - diff --git a/public/assets/media/credits.txt b/public/assets/media/credits.txt index 971cb12..f5533e6 100644 --- a/public/assets/media/credits.txt +++ b/public/assets/media/credits.txt @@ -35,9 +35,17 @@ https://www.pexels.com/photo/una-tarde-normal-16693424/ + // fall + https://www.istockphoto.com/photo/vertical-ratio-size-of-sunset-background-sky-with-soft-and-blur-pastel-colored-gm1249608150-364223108 + FTiare: Sky with soft and blur pastel colored clouds + // summer-09 + // https://www.freepik.com/free-photo/body-water_13126578.htm + // ninjason1: Body of water + + @@ -73,7 +81,17 @@ fall ++ https://www.freepik.com/free-photo/flat-lay-see-through-leaf-texture_10205888.htm ++ https://www.freepik.com/free-photo/top-view-transparent-leaves-with-orange-light_23404485.htm ++ https://www.freepik.com/free-photo/close-up-colourful-autumn-leaf-concept_8034414.htm -+++ https://www.freepik.com/free-photo/beautiful-autumn-leaves-autumn-red-background-sunny-daylight-horizontal-toning_1284515.htm + +[done] https://www.freepik.com/free-photo/beautiful-autumn-leaves-autumn-red-background-sunny-daylight-horizontal-toning_1284515.htm +Image by valeria_aksakova on Freepik + + + +Valeria Aksakova: Autumn leaves on autumn red background, sunny daylight horizontal toning +https://www.freepik.com/free-photo/beautiful-autumn-leaves_1284515.htm + + + ++ https://www.freepik.com/free-photo/flat-lay-close-up-autumn-leaf_12356800.htm ++ https://www.freepik.com/free-photo/beautiful-autumn-leaves-autumn-red-background-sunny-daylight-horizontal_1284510.htm ++ https://www.freepik.com/free-photo/beautiful-autumn-leaves-autumn-red-background-sunny-daylight-horizontal-toning_1284514.htm @@ -151,6 +169,12 @@ no-summer ++ https://www.freepik.com/free-photo/amazing-aerial-view-mountains-partially-covered-with-snow-positioned-higher-than-clouds_10606093.htm +Wow! dark: +https://www.flickr.com/photos/docsearls/48688569986/ +https://www.flickr.com/photos/docsearls/48688235508/ + + + https://www.flickr.com/photos/31176607@N05/34285736050/ https://www.flickr.com/photos/138748077@N02/45718622541/ diff --git a/public/assets/media/fall-08.jpg b/public/assets/media/fall-08.jpg deleted file mode 100644 index f4ac8b5..0000000 Binary files a/public/assets/media/fall-08.jpg and /dev/null differ diff --git a/public/assets/media/fall-08.webp b/public/assets/media/fall-08.webp new file mode 100644 index 0000000..8e9ce62 Binary files /dev/null and b/public/assets/media/fall-08.webp differ diff --git a/public/assets/media/spring-01.jpg b/public/assets/media/spring-01.jpg index c45979d..398b783 100644 Binary files a/public/assets/media/spring-01.jpg and b/public/assets/media/spring-01.jpg differ diff --git a/public/assets/media/spring-01.webp b/public/assets/media/spring-01.webp new file mode 100644 index 0000000..f0e4172 Binary files /dev/null and b/public/assets/media/spring-01.webp differ diff --git a/public/assets/media/spring-09.webp b/public/assets/media/spring-09.webp new file mode 100644 index 0000000..429f42b Binary files /dev/null and b/public/assets/media/spring-09.webp differ -- cgit v1.2.3