[gtk-web/new-website: 105/191] restructed the assets/img directory



commit 5532c4f03931d7f537ee5053e3f37839059e96eb
Author: ravgeetdhillon <ravgeetdhillon gmail com>
Date:   Mon Jul 15 22:50:46 2019 +0530

    restructed the assets/img directory

 _data/apps.yml                                     |   36 +-
 _includes/footer.html                              |    2 +-
 _includes/header.html                              |    8 +-
 assets/css/index.css                               |    6 +-
 assets/illustrations/api.svg                       |    1 -
 assets/illustrations/card1.svg                     |    1 -
 assets/illustrations/card2.svg                     |    1 -
 assets/illustrations/card3.svg                     |    1 -
 assets/illustrations/circles.svg                   |    1 -
 assets/illustrations/cross_platform.svg            |    1 -
 assets/illustrations/news.svg                      |    1 -
 assets/illustrations/open_source.svg               |    1 -
 assets/illustrations/pattern.svg                   |   13 -
 assets/illustrations/prism.svg                     |    1 -
 assets/illustrations/stability.svg                 |    1 -
 .../img/apps/{Blender-app.png => app-blender.png}  |  Bin
 .../{Calculator-app.png => app-calculator.png}     |  Bin
 assets/img/apps/{Chess-app.png => app-chess.png}   |  Bin
 .../{Dictionary-app.png => app-dictionary.png}     |  Bin
 .../apps/{Evolution-app.png => app-evolution.png}  |  Bin
 assets/img/apps/{Fonts-app.png => app-fonts.png}   |  Bin
 assets/img/apps/{Games-app.png => app-games.png}   |  Bin
 assets/img/apps/{GIMP-app.png => app-gimp.png}     |  Bin
 .../{ImageViewer-app.png => app-image-viewer.png}  |  Bin
 .../img/apps/{Keysign-app.png => app-key-sign.png} |  Bin
 assets/img/apps/{Maps-app.png => app-maps.png}     |  Bin
 ...{PasswordSafe-app.png => app-password-safe.png} |  Bin
 assets/img/apps/{Polari-app.png => app-polari.png} |  Bin
 assets/img/apps/{Social-app.png => app-social.png} |  Bin
 .../apps/{Terminal-app.png => app-terminal.png}    |  Bin
 .../{Transmission-app.png => app-transmission.png} |  Bin
 assets/img/architecture.svg                        |  285 ---
 assets/{ => img}/avatar.png                        |  Bin
 assets/{blog1.png => img/blog-blog1.png}           |  Bin
 assets/{blog2.png => img/blog-blog2.png}           |  Bin
 assets/{blog3.png => img/blog-blog3.png}           |  Bin
 assets/{builder.png => img/docs/doc-builder.png}   |  Bin
 assets/{eclipse.png => img/docs/doc-eclipse.png}   |  Bin
 .../docs/doc-mono-develop.png}                     |  Bin
 assets/img/{gtk-logo.ico => favicon-gtk.ico}       |  Bin
 assets/{illustrations => img}/interfaces.svg       |    0
 assets/img/landing1.png                            |  Bin 31874 -> 0 bytes
 assets/img/language_bindings.png                   |  Bin 260750 -> 0 bytes
 assets/img/{gtk-logo.png => logo-gtk.png}          |  Bin
 ...LogoHorizontal.svg => logognome-horizontal.svg} |    0
 assets/img/manage_apps.png                         |  Bin 268891 -> 0 bytes
 assets/img/org.gnome.Glade.svg                     | 1813 --------------------
 assets/img/org.gtk.Demo.svg                        |  638 -------
 assets/img/{calendar.png => wall-calendar.png}     |  Bin
 assets/img/{community.svg => wall-community.svg}   |    0
 assets/img/{docs.svg => wall-docs.svg}             |    0
 assets/img/{editor.png => wall-editor.png}         |  Bin
 assets/img/{back1.svg => wall-events-pattern.svg}  |    0
 .../img/{features-main.svg => wall-features.svg}   |    0
 assets/img/{glade.png => wall-glade.png}           |  Bin
 assets/img/{music.png => wall-music.png}           |  Bin
 assets/img/{podcasts.png => wall-podcasts.png}     |  Bin
 assets/img/{polari.png => wall-polari.png}         |  Bin
 assets/img/{symbolics.png => wall-symbolics.png}   |  Bin
 .../wall-usecases.svg}                             |    0
 assets/symbolics.png                               |  Bin 2622798 -> 0 bytes
 assets/symbolics1.png                              |  Bin 532240 -> 0 bytes
 assets/symbolics2.png                              |  Bin 868166 -> 0 bytes
 assets/symbolics3.png                              |  Bin 1118718 -> 0 bytes
 collections/_docs/eclipse.md                       |    2 +-
 collections/_docs/gnome-builder.md                 |    2 +-
 collections/_docs/mono-develop.md                  |    2 +-
 features.html                                      |    2 +-
 index.html                                         |   11 +-
 rename.py                                          |   15 +
 70 files changed, 51 insertions(+), 2794 deletions(-)
---
diff --git a/_data/apps.yml b/_data/apps.yml
index 17b7432..007bffe 100644
--- a/_data/apps.yml
+++ b/_data/apps.yml
@@ -5,57 +5,57 @@
 #   link: provide the source/link to visit or download the app
 #   logo: file name of the app's logo
 
-# Add the logo image for the app in the assets/img/apps.
+# Add the logo image for the app in the /assets/img/apps.
 # The name of the logo image for the app should have the following naming convention
-#   <app-name>-app.<image-ext>
+#   app-<app-name>.<image-ext>
 # Make sure that the logo image have square dimensions
 
 apps_list:
   - name: Fonts
     link: /apps/
-    logo: Fonts-app.png
+    logo: app-fonts.png
   - name: Calculator
     link: /apps/
-    logo: Calculator-app.png
+    logo: app-calculator.png
   - name: Blender
     link: /apps/
-    logo: Blender-app.png
+    logo: app-blender.png
   - name: Chess
     link: /apps/
-    logo: Chess-app.png
+    logo: app-chess.png
   - name: Dictionary
     link: /apps/
-    logo: Dictionary-app.png
+    logo: app-dictionary.png
   - name: GIMP
     link: /apps/
-    logo: GIMP-app.png
+    logo: app-gimp.png
   - name: Games
     link: /apps/
-    logo: Games-app.png
+    logo: app-games.png
   - name: Evolution
     link: /apps/
-    logo: Evolution-app.png
+    logo: app-evolution.png
   - name: Image Viewer
     link: /apps/
-    logo: ImageViewer-app.png
+    logo: app-image-viewer.png
   - name: Polari
     link: /apps/
-    logo: Polari-app.png
+    logo: app-polari.png
   - name: Social
     link: /apps/
-    logo: Social-app.png
+    logo: app-social.png
   - name: Key Sign
     link: /apps/
-    logo: Keysign-app.png
+    logo: app-key-sign.png
   - name: Maps
     link: /apps/
-    logo: Maps-app.png
+    logo: app-maps.png
   - name: Transmission
     link: /apps/
-    logo: Transmission-app.png
+    logo: app-transmission.png
   - name: Password Safe
     link: /apps/
-    logo: PasswordSafe-app.png
+    logo: app-password-safe.png
   - name: Terminal
     link: /apps/
-    logo: Terminal-app.png
\ No newline at end of file
+    logo: app-terminal.png
\ No newline at end of file
diff --git a/_includes/footer.html b/_includes/footer.html
index 58d27a5..536c452 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -6,7 +6,7 @@
   <div class="container">
     <div class="row">
       <div class="col-12 col-sm-5 col-md-4 py-3 py-sm-2">
-        <a href="https://www.gnome.org/";><img src="{{ '/assets/img/GnomeLogoHorizontal.svg' | prepend: 
site.url }}"
+        <a href="https://www.gnome.org/";><img src="{{ '/assets/img/logo-gnome-horizontal.svg' | prepend: 
site.url }}"
             class="img-fluid pb-2" width="100" /></a>
         <p>GTK is hosted by GNOME.</p>
         <p>GTK is maintained by the core team of <strong><a href="/community#contributors" 
class="text-muted">contributors</a></strong>
diff --git a/_includes/header.html b/_includes/header.html
index 875ffe3..a4f6883 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -15,8 +15,8 @@
        <meta name="author" content="The GTK Team">
        <meta name="description" content="GTK is a highly usable, feature rich toolkit for creating graphical 
user interfaces which boasts cross platform compatibility and an easy to use API. GTK is licensed under the 
GNU LGPL 2.1 allowing development of both free and proprietary software with GTK without any license fees or 
royalties.">
        <meta name="keywords" content="gtk, gtk, gimp, gnome, toolkit, user interface"> 
-       <link rel="icon" href="{{ '/assets/img/' | prepend: site.url | append: site.data.stuff.website_logo 
}}" type="image/x-icon">
-       <link rel="shortcut icon" href="{{ '/assets/img/' | prepend: site.url | append: 
site.data.stuff.website_logo }}" type="image/x-icon">
+       <link rel="icon" href="{{ '/assets/img/favicon-gtk.png' | prepend: site.url }}" type="image/x-icon">
+       <link rel="shortcut icon" href="{{ '/assets/img/favicon-gtk.png' | prepend: site.url }} 
type="image/x-icon">
        <title>{{site.title}}</title>
        <link rel="stylesheet" href="{{ '/assets/@fortawesome/fontawesome-free/css/all.min.css' | prepend: 
site.url }}" type="text/css" media="screen" />
        <link rel="stylesheet" href="{{ '/assets/css/markdown.css' | prepend: site.url }}" type="text/css" 
media="screen" />
@@ -37,9 +37,9 @@
        {% endif %}
   <nav class="container navbar-expand-md px-0 px-md-3">
     {% if page.navbar_dark %}
-      <a href="/" class="navbar-brand text-white"><img src="{{ '/assets/img/gtk-logo.png' | prepend: 
site.url }}" width="40" height="40" /><strong>GTK</strong></a>
+      <a href="/" class="navbar-brand text-white"><img src="{{ '/assets/img/logo-gtk.png' | prepend: 
site.url }}" width="40" height="40" /><strong>GTK</strong></a>
     {% else %}
-      <a href="/" class="navbar-brand text-dark"><img src="{{ '/assets/img/gtk-logo.png' | prepend: site.url 
}}" width="40" height="40" /><strong>GTK</strong></a>
+      <a href="/" class="navbar-brand text-dark"><img src="{{ '/assets/img/logo-gtk.png' | prepend: site.url 
}}" width="40" height="40" /><strong>GTK</strong></a>
     {% endif %}
     <a class="btn navbar-toggler border-0 p-0" role="button" data-toggle="collapse" 
data-target="#navbarSupportedContent">
       <i class="fas fa-ellipsis-h"></i>
diff --git a/assets/css/index.css b/assets/css/index.css
index 8017ade..2d302d3 100644
--- a/assets/css/index.css
+++ b/assets/css/index.css
@@ -325,15 +325,15 @@ pre {
     height: auto;
 }
 #events {
-    background: url("../img/back1.svg");
+    background: url("/assets/img/wall-events-pattern.svg");
 }
 #development {
-    background: url("../img/symbolics.png");
+    background: url("/assets/img/wall-symbolics.png");
     background-repeat: no-repeat;
     background-size: cover;
 }
 #features-main {
-    background: url("../img/features-hero-integrations-endpoints.svg");
+    background: url("/assets/img/features-hero-integrations-endpoints.svg");
     background-repeat: no-repeat;
     background-position: center;
 }
diff --git a/assets/img/apps/Blender-app.png b/assets/img/apps/app-blender.png
similarity index 100%
rename from assets/img/apps/Blender-app.png
rename to assets/img/apps/app-blender.png
diff --git a/assets/img/apps/Calculator-app.png b/assets/img/apps/app-calculator.png
similarity index 100%
rename from assets/img/apps/Calculator-app.png
rename to assets/img/apps/app-calculator.png
diff --git a/assets/img/apps/Chess-app.png b/assets/img/apps/app-chess.png
similarity index 100%
rename from assets/img/apps/Chess-app.png
rename to assets/img/apps/app-chess.png
diff --git a/assets/img/apps/Dictionary-app.png b/assets/img/apps/app-dictionary.png
similarity index 100%
rename from assets/img/apps/Dictionary-app.png
rename to assets/img/apps/app-dictionary.png
diff --git a/assets/img/apps/Evolution-app.png b/assets/img/apps/app-evolution.png
similarity index 100%
rename from assets/img/apps/Evolution-app.png
rename to assets/img/apps/app-evolution.png
diff --git a/assets/img/apps/Fonts-app.png b/assets/img/apps/app-fonts.png
similarity index 100%
rename from assets/img/apps/Fonts-app.png
rename to assets/img/apps/app-fonts.png
diff --git a/assets/img/apps/Games-app.png b/assets/img/apps/app-games.png
similarity index 100%
rename from assets/img/apps/Games-app.png
rename to assets/img/apps/app-games.png
diff --git a/assets/img/apps/GIMP-app.png b/assets/img/apps/app-gimp.png
similarity index 100%
rename from assets/img/apps/GIMP-app.png
rename to assets/img/apps/app-gimp.png
diff --git a/assets/img/apps/ImageViewer-app.png b/assets/img/apps/app-image-viewer.png
similarity index 100%
rename from assets/img/apps/ImageViewer-app.png
rename to assets/img/apps/app-image-viewer.png
diff --git a/assets/img/apps/Keysign-app.png b/assets/img/apps/app-key-sign.png
similarity index 100%
rename from assets/img/apps/Keysign-app.png
rename to assets/img/apps/app-key-sign.png
diff --git a/assets/img/apps/Maps-app.png b/assets/img/apps/app-maps.png
similarity index 100%
rename from assets/img/apps/Maps-app.png
rename to assets/img/apps/app-maps.png
diff --git a/assets/img/apps/PasswordSafe-app.png b/assets/img/apps/app-password-safe.png
similarity index 100%
rename from assets/img/apps/PasswordSafe-app.png
rename to assets/img/apps/app-password-safe.png
diff --git a/assets/img/apps/Polari-app.png b/assets/img/apps/app-polari.png
similarity index 100%
rename from assets/img/apps/Polari-app.png
rename to assets/img/apps/app-polari.png
diff --git a/assets/img/apps/Social-app.png b/assets/img/apps/app-social.png
similarity index 100%
rename from assets/img/apps/Social-app.png
rename to assets/img/apps/app-social.png
diff --git a/assets/img/apps/Terminal-app.png b/assets/img/apps/app-terminal.png
similarity index 100%
rename from assets/img/apps/Terminal-app.png
rename to assets/img/apps/app-terminal.png
diff --git a/assets/img/apps/Transmission-app.png b/assets/img/apps/app-transmission.png
similarity index 100%
rename from assets/img/apps/Transmission-app.png
rename to assets/img/apps/app-transmission.png
diff --git a/assets/avatar.png b/assets/img/avatar.png
similarity index 100%
rename from assets/avatar.png
rename to assets/img/avatar.png
diff --git a/assets/blog1.png b/assets/img/blog-blog1.png
similarity index 100%
rename from assets/blog1.png
rename to assets/img/blog-blog1.png
diff --git a/assets/blog2.png b/assets/img/blog-blog2.png
similarity index 100%
rename from assets/blog2.png
rename to assets/img/blog-blog2.png
diff --git a/assets/blog3.png b/assets/img/blog-blog3.png
similarity index 100%
rename from assets/blog3.png
rename to assets/img/blog-blog3.png
diff --git a/assets/builder.png b/assets/img/docs/doc-builder.png
similarity index 100%
rename from assets/builder.png
rename to assets/img/docs/doc-builder.png
diff --git a/assets/eclipse.png b/assets/img/docs/doc-eclipse.png
similarity index 100%
rename from assets/eclipse.png
rename to assets/img/docs/doc-eclipse.png
diff --git a/assets/monodevelop.png b/assets/img/docs/doc-mono-develop.png
similarity index 100%
rename from assets/monodevelop.png
rename to assets/img/docs/doc-mono-develop.png
diff --git a/assets/img/gtk-logo.ico b/assets/img/favicon-gtk.ico
similarity index 100%
rename from assets/img/gtk-logo.ico
rename to assets/img/favicon-gtk.ico
diff --git a/assets/illustrations/interfaces.svg b/assets/img/interfaces.svg
similarity index 100%
rename from assets/illustrations/interfaces.svg
rename to assets/img/interfaces.svg
diff --git a/assets/img/gtk-logo.png b/assets/img/logo-gtk.png
similarity index 100%
rename from assets/img/gtk-logo.png
rename to assets/img/logo-gtk.png
diff --git a/assets/img/GnomeLogoHorizontal.svg b/assets/img/logognome-horizontal.svg
similarity index 100%
rename from assets/img/GnomeLogoHorizontal.svg
rename to assets/img/logognome-horizontal.svg
diff --git a/assets/img/calendar.png b/assets/img/wall-calendar.png
similarity index 100%
rename from assets/img/calendar.png
rename to assets/img/wall-calendar.png
diff --git a/assets/img/community.svg b/assets/img/wall-community.svg
similarity index 100%
rename from assets/img/community.svg
rename to assets/img/wall-community.svg
diff --git a/assets/img/docs.svg b/assets/img/wall-docs.svg
similarity index 100%
rename from assets/img/docs.svg
rename to assets/img/wall-docs.svg
diff --git a/assets/img/editor.png b/assets/img/wall-editor.png
similarity index 100%
rename from assets/img/editor.png
rename to assets/img/wall-editor.png
diff --git a/assets/img/back1.svg b/assets/img/wall-events-pattern.svg
similarity index 100%
rename from assets/img/back1.svg
rename to assets/img/wall-events-pattern.svg
diff --git a/assets/img/features-main.svg b/assets/img/wall-features.svg
similarity index 100%
rename from assets/img/features-main.svg
rename to assets/img/wall-features.svg
diff --git a/assets/img/glade.png b/assets/img/wall-glade.png
similarity index 100%
rename from assets/img/glade.png
rename to assets/img/wall-glade.png
diff --git a/assets/img/music.png b/assets/img/wall-music.png
similarity index 100%
rename from assets/img/music.png
rename to assets/img/wall-music.png
diff --git a/assets/img/podcasts.png b/assets/img/wall-podcasts.png
similarity index 100%
rename from assets/img/podcasts.png
rename to assets/img/wall-podcasts.png
diff --git a/assets/img/polari.png b/assets/img/wall-polari.png
similarity index 100%
rename from assets/img/polari.png
rename to assets/img/wall-polari.png
diff --git a/assets/img/symbolics.png b/assets/img/wall-symbolics.png
similarity index 100%
rename from assets/img/symbolics.png
rename to assets/img/wall-symbolics.png
diff --git a/assets/illustrations/language_bindings.svg b/assets/img/wall-usecases.svg
similarity index 100%
rename from assets/illustrations/language_bindings.svg
rename to assets/img/wall-usecases.svg
diff --git a/collections/_docs/eclipse.md b/collections/_docs/eclipse.md
index c61c5d0..14d3148 100644
--- a/collections/_docs/eclipse.md
+++ b/collections/_docs/eclipse.md
@@ -3,7 +3,7 @@ permalink: /docs/dev-tools/:name
 ---
 # Eclipse
 
-![GitHub Logo](../../assets/eclipse.png)
+![GitHub Logo](/assets/img/docs/doc-eclipse.png)
 
 Eclipse is famous for our Java Integrated Development Environment (IDE), but our C/C++ IDE and PHP IDE are 
pretty cool too. You can easily combine language support and other features into any of our default packages, 
and the Eclipse Marketplace allows for virtually unlimited customization and extension.
 
diff --git a/collections/_docs/gnome-builder.md b/collections/_docs/gnome-builder.md
index 2b994a2..58feb1a 100644
--- a/collections/_docs/gnome-builder.md
+++ b/collections/_docs/gnome-builder.md
@@ -3,7 +3,7 @@ permalink: /docs/dev-tools/:name
 ---
 # GNOME Builder
 
-![GitHub Logo](../../assets/builder.png)
+![GitHub Logo](/assets/img/docs/doc-builder.png)
 
 GNOME Builder is a toolsmith for GNOME-based applications. It is a tool to help you write and contribute to 
great GNOME-based applications.
 
diff --git a/collections/_docs/mono-develop.md b/collections/_docs/mono-develop.md
index e1c0f1c..5bcef92 100644
--- a/collections/_docs/mono-develop.md
+++ b/collections/_docs/mono-develop.md
@@ -3,7 +3,7 @@ permalink: /docs/dev-tools/:name
 ---
 # Mono Develop
 
-![GitHub Logo](../../assets/monodevelop.png)
+![GitHub Logo](/assets/img/docs/doc-mono-develop.png)
 
 MonoDevelop enables developers to quickly write desktop and web applications on Linux, Windows and macOS. It 
also makes it easy for developers to port .NET applications created with Visual Studio to Linux and macOS 
maintaining a single code base for all platforms.
 
diff --git a/features.html b/features.html
index 46e625b..81b1eb1 100644
--- a/features.html
+++ b/features.html
@@ -12,7 +12,7 @@
                                <span class="text-muted lead">GTK is loaded with all the features that a 
toolkit should have.</span>
             </div>
             <div class="col-md-7 d-none d-md-flex justify-content-center flex-column">
-                <img src="{{ '/assets/img/features-main.svg' | prepend: site.url }}" class="img-fluid" />
+                <img src="{{ '/assets/img/wall-features.svg' | prepend: site.url }}" class="img-fluid" />
             </div>
                </div>
     </div>
diff --git a/index.html b/index.html
index 6b9dfdf..4923bf1 100644
--- a/index.html
+++ b/index.html
@@ -92,9 +92,9 @@ news_and_events_list:
       </div>
       <div class="col-md-7 d-none d-md-flex justify-content-center flex-column">
         <div class="col img-grp">
-          <img src="{{ '/assets/img/editor.png' | prepend: site.url }}" class="img-fluid editor shadow-lg" />
-          <img src="{{ '/assets/img/calendar.png' | prepend: site.url }}" class="img-fluid calendar 
shadow-lg" />
-          <img src="{{ '/assets/img/music.png' | prepend: site.url }}" class="img-fluid music shadow-lg" />
+          <img src="{{ '/assets/img/wall-editor.png' | prepend: site.url }}" class="img-fluid editor 
shadow-lg" />
+          <img src="{{ '/assets/img/wall-calendar.png' | prepend: site.url }}" class="img-fluid calendar 
shadow-lg" />
+          <img src="{{ '/assets/img/wall-music.png' | prepend: site.url }}" class="img-fluid music 
shadow-lg" />
         </div>
       </div>
     </div>
@@ -112,7 +112,7 @@ news_and_events_list:
     </div>
     <div class="row">
       <div class="col-8 mx-auto">
-        <img src="{{ '/assets/illustrations/language_bindings.svg' | prepend: site.url }}" class="w-100 
img-fluid" style="height:100%;" />
+        <img src="{{ '/assets/img/wall-usecases.svg' | prepend: site.url }}" class="w-100 img-fluid" 
style="height:100%;" />
       </div>
     </div>
     <br>
@@ -198,7 +198,7 @@ news_and_events_list:
         <span class="text-muted">{{ page.integrations_main_heading_description | markdownify }}</span>
       </div>
       <div class="col-lg-7 d-flex justify-content-center align-items-center">
-        <img src="{{ '/assets/img/glade.png' | prepend: site.url }}" class="img-fluid w-100 shadow-lg" 
alt="Integration of Glade and GTK" />
+        <img src="{{ '/assets/img/wall-glade.png' | prepend: site.url }}" class="img-fluid w-100 shadow-lg" 
alt="Integration of Glade and GTK" />
       </div>
     </div>
   </div>
@@ -299,6 +299,7 @@ news_and_events_list:
 </section>
 
 <script>
+  // implementing the "take me down" functionality
   function slideDown() {
     location.assign("#usecases");
   }
diff --git a/rename.py b/rename.py
new file mode 100644
index 0000000..91c5638
--- /dev/null
+++ b/rename.py
@@ -0,0 +1,15 @@
+import os 
+
+def renameFiles(address, prefix, ext):
+       for filename in os.listdir(address):
+               if prefix in filename:
+                       if ext in filename:
+                               dst = filename.split("-")
+                               dst[0] = dst[0].lower()
+                               dst = prefix + "-" + dst[0] + ext
+                               src = address + filename
+                               dst = address + dst
+                               os.rename(src, dst)
+
+renameFiles( "assets/img/", "wall", ".svg" )
+print("done")
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]