source for lucas.co
fix for some browsers
.DS_Store | Bin 6148 -> 0 bytes
info.json => info.js | 66 +++++++++++++++++++++++++--------------------------
main.js | 5 +++-
readme.txt | 1 +
4 files changed, 38 insertions(+), 34 deletions(-)
diff --git a/.DS_Store b/.DS_Store
deleted file mode 100644
index fd9649f..0000000
Binary files a/.DS_Store and /dev/null differ
diff --git a/info.json b/info.js
similarity index 94%
rename from info.json
rename to info.js
index bec3383..8597d43 100644
--- a/info.json
+++ b/info.js
@@ -1,33 +1,33 @@
-{
- "tabs": {
- "tab_0": {
- "title": "Morphogen",
- "body": "Computer program for design through evolution and growth based exploration.",
- "image": []
- },
-
- "tab_1": {
- "title": "Moldtek",
- "body": "Computer based mold designing tools for objects with very complex geometry.",
- "image": []
- },
-
- "tab_2": {
- "title": "Drawing",
- "body": "Some pencil drawings",
- "image": ["/images/drawing.png"]
- },
-
- "tab_3": {
- "title": "Spoon",
- "body": "A wax carving intended for ceramic slip casting",
- "image": []
- },
-
- "tab_4": {
- "title": "Info",
- "body": "Lucas Galante\n\[email protected]/\n\n",
- "image": []
- }
- }
-}
\ No newline at end of file
+export const data = {
+ "tabs": {
+ "tab_0": {
+ "title": "Morphogen",
+ "body": "Computer program for design through evolution and growth based exploration.",
+ "image": []
+ },
+
+ "tab_1": {
+ "title": "Moldtek",
+ "body": "Computer based mold designing tools for objects with very complex geometry.",
+ "image": []
+ },
+
+ "tab_2": {
+ "title": "Drawing",
+ "body": "Some pencil drawings",
+ "image": ["/images/drawing.png"]
+ },
+
+ "tab_3": {
+ "title": "Spoon",
+ "body": "A wax carving intended for ceramic slip casting",
+ "image": []
+ },
+
+ "tab_4": {
+ "title": "Info",
+ "body": "Lucas Galante\n\[email protected]/\n\n",
+ "image": []
+ }
+ }
+};
\ No newline at end of file
diff --git a/main.js b/main.js
index f3c4fb5..ecfed89 100644
--- a/main.js
+++ b/main.js
@@ -1,7 +1,10 @@
-import data from "./info.json" assert { type: "json" };
+import { data } from "./info.js";
+
console.log(data);
let n_tabs = Object.keys(data.tabs).length;
+
+console.log(n_tabs)
let active_tab = 0;
const bg_on = "#3f3131";
diff --git a/readme.txt b/readme.txt
new file mode 100644
index 0000000..3417e72
--- /dev/null
+++ b/readme.txt
@@ -0,0 +1 @@
+My Freaking Website
\ No newline at end of file