diff --git a/frontend/src/lib/components/ResourceList.svelte b/frontend/src/lib/components/ResourceList.svelte index b9ed178..765a7fb 100644 --- a/frontend/src/lib/components/ResourceList.svelte +++ b/frontend/src/lib/components/ResourceList.svelte @@ -6,38 +6,93 @@ export let tag: string; export let resources: Resource[]; - console.log(`ResourceList Component - Tag: ${tag}`, resources); // Debugging line + // State for toggling additional resources + let expandedResourceIndex: number | null = null; + + function toggleAdditionalResources(index: number) { + expandedResourceIndex = expandedResourceIndex === index ? null : index; + }

{tag}

- +
diff --git a/frontend/src/styles/app.css b/frontend/src/styles/app.css index ce511d3..1df62ac 100644 --- a/frontend/src/styles/app.css +++ b/frontend/src/styles/app.css @@ -154,7 +154,7 @@ a.boopable-link:hover::after { margin-left: 200px; /* Same as the width of .nav-panel */ margin-top: 2.5rem; /* Same as the height of the top header */ padding: 1rem; - max-width: 1200px; + max-width: 80vw; /* 80% of the viewport */ } /* Resource Group Styles */ diff --git a/frontend/static/resources.json b/frontend/static/resources.json index 9ac3240..c07514b 100644 --- a/frontend/static/resources.json +++ b/frontend/static/resources.json @@ -43,7 +43,10 @@ "author": "H. G. Wells", "link": "https://www.nand2tetris.org/", "Description": "Ever wondered how ones and zeroes are put together to make a computer? This is the book that will answer all your questions", - "tags": ["computer architecture", "boolean logic", "assembly language", "VHDL", "book"] + "tags": ["computer architecture", "boolean logic", "assembly language", "VHDL", "book"], + "additional_resources": { + "Free online pdf of the book 'Elements of computing systems'": "https://cmls-global.com/wp-content/uploads/2021/08/The-elements-of-computing-systems-building-a-modern-computer.pdf" + } }, { "title": "Building an 8-bit breadboard computer", @@ -79,5 +82,12 @@ "link": "/Machine_Learning_with_PyTorch_and_Scikit-Learn.pdf", "Description": "Not finished yet", "tags": ["python", "machine learning", "book"] + }, + { + "title": "Learn Git Branching", + "author": "Git", + "link": "https://learngitbranching.js.org/", + "Description": "A fun little game to learn about branching and merging", + "tags": ["git", "game"] } ]