diff --git a/compile_elm.sh b/compile_elm.sh new file mode 100755 index 0000000..aa91884 --- /dev/null +++ b/compile_elm.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +for dir in */; do + # Get the folder name + folder=$(basename "$dir") + + # Navigate into the folder + cd "$dir" || exit + + # Compile Elm file in the current directory to HTML + elm make src/Main.elm --output="../dest/$folder.html" + + # Return to the main 'architecture' directory + cd ../ || exit +done + +./read_filenames.sh \ No newline at end of file diff --git a/dest/allergies.html b/dest/allergies.html new file mode 100644 index 0000000..177423c --- /dev/null +++ b/dest/allergies.html @@ -0,0 +1,5525 @@ + + + + + Main + + + + + +

+
+
+
+
+
\ No newline at end of file
diff --git a/dest/background.jpg b/dest/background.jpg
new file mode 100644
index 0000000..f0eba80
Binary files /dev/null and b/dest/background.jpg differ
diff --git a/dest/leap.html b/dest/leap.html
new file mode 100644
index 0000000..21468f0
--- /dev/null
+++ b/dest/leap.html
@@ -0,0 +1,4457 @@
+
+
+
+  
+  Main
+  
+
+
+
+
+

+
+
+
+
+
\ No newline at end of file
diff --git a/dest/pangram.html b/dest/pangram.html
new file mode 100644
index 0000000..0ebd18c
--- /dev/null
+++ b/dest/pangram.html
@@ -0,0 +1,4457 @@
+
+
+
+  
+  Main
+  
+
+
+
+
+

+
+
+
+
+
\ No newline at end of file
diff --git a/files.js b/files.js
new file mode 100644
index 0000000..723c008
--- /dev/null
+++ b/files.js
@@ -0,0 +1,5 @@
+const filesList = [
+"allergies.html",
+"leap.html",
+"pangram.html",
+];
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..9ed0b91
--- /dev/null
+++ b/index.html
@@ -0,0 +1,26 @@
+
+
+
+
+    
+    
+    Elmitecture
+    
+
+
+
+    

Landing Page

+ + + + + \ No newline at end of file diff --git a/leap/elm.json b/leap/elm.json index 22c9e13..e64b687 100644 --- a/leap/elm.json +++ b/leap/elm.json @@ -7,6 +7,7 @@ "dependencies": { "direct": { "elm/core": "1.0.5", + "elm/html": "1.0.0", "elm/json": "1.1.3", "elm/parser": "1.1.0", "elm/random": "1.0.0", @@ -22,7 +23,6 @@ }, "indirect": { "elm/bytes": "1.0.8", - "elm/html": "1.0.0", "elm/virtual-dom": "1.0.3" } } diff --git a/leap/src/Main.elm b/leap/src/Main.elm new file mode 100644 index 0000000..eed1c36 --- /dev/null +++ b/leap/src/Main.elm @@ -0,0 +1,5 @@ +module Main exposing (..) +import Html + +main = + Html.text "leap year!" \ No newline at end of file diff --git a/main b/main deleted file mode 100644 index e69de29..0000000 diff --git a/pangram/elm.json b/pangram/elm.json index 22c9e13..e64b687 100644 --- a/pangram/elm.json +++ b/pangram/elm.json @@ -7,6 +7,7 @@ "dependencies": { "direct": { "elm/core": "1.0.5", + "elm/html": "1.0.0", "elm/json": "1.1.3", "elm/parser": "1.1.0", "elm/random": "1.0.0", @@ -22,7 +23,6 @@ }, "indirect": { "elm/bytes": "1.0.8", - "elm/html": "1.0.0", "elm/virtual-dom": "1.0.3" } } diff --git a/pangram/src/Main.elm b/pangram/src/Main.elm new file mode 100644 index 0000000..9b021b9 --- /dev/null +++ b/pangram/src/Main.elm @@ -0,0 +1,5 @@ +module Main exposing (..) +import Html + +main = + Html.text "Hello!" \ No newline at end of file diff --git a/read_filenames.sh b/read_filenames.sh new file mode 100755 index 0000000..caea1e7 --- /dev/null +++ b/read_filenames.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# List all HTML files in the 'dest' directory and save to a JavaScript file +echo "const filesList = [" > files.js +for file in dest/*.html; do + filename=$(basename "$file") + echo "\"$filename\"," >> files.js +done +echo "];" >> files.js \ No newline at end of file