From ad504df7aef0a7a1adef9e2fe9becd20a9cf374c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 09:52:16 +0000 Subject: [PATCH] Visual edit in Lovable Edited UI in Lovable --- src/pages/Index.tsx | 136 +++++++++++++++++++------------------------- 1 file changed, 58 insertions(+), 78 deletions(-) diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 83dcc94..d2a56b0 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -6,68 +6,58 @@ import { ArrowRight, BookOpen, Puzzle, Sparkles } from "lucide-react"; import Layout from "@/components/Layout"; // Featured interactives to display on index page -const featuredInteractives = [ - { - id: 'binary-number-game', - title: 'Binary Number Representation', - description: 'Learn how numbers are represented in binary (base-2) format through an interactive guessing game.', - tags: ['binary', 'numbers', 'conversion'], - path: '/binary-number-game', - theme: 'Discrete Math' - }, - { - id: 'ternary-number-game', - title: 'Ternary Number Representation', - description: 'Learn how numbers are represented in ternary (base-3) format by toggling between 0, 1, or 2 copies of powers of three.', - tags: ['ternary', 'numbers', 'base-3'], - path: '/ternary-number-game', - theme: 'Discrete Math' - }, - { - id: 'balanced-ternary-game', - title: 'Balanced Ternary Number Representation', - description: 'Explore balanced ternary using digits T (-1), 0, and 1. Add or subtract powers of three to match the target number.', - tags: ['balanced-ternary', 'numbers', 'signed-digits'], - path: '/balanced-ternary-game', - theme: 'Discrete Math' - }, - { - id: 'binary-search-trick', - title: 'Binary Search Magic Trick', - description: 'Perform an amazing magic trick that reveals how binary numbers work. Think of a number and watch the magic happen!', - tags: ['binary', 'magic', 'trick'], - path: '/binary-search-trick', - theme: 'Data Structures' - }, - { - id: 'game-of-sim', - title: 'Game of Sim', - description: 'A strategic two-player game where you take turns coloring edges between vertices, trying to avoid creating a triangle of your own color.', - tags: ['strategy', 'graph-theory', 'two-player'], - path: '/game-of-sim', - theme: 'Games' - }, - { - id: 'ternary-search-trick', - title: 'Ternary Search Magic Trick', - description: 'Experience the magic of ternary search! Think of a number and watch as the cards reveal it through mathematical calculations.', - tags: ['ternary', 'magic', 'search'], - path: '/ternary-search-trick', - theme: 'Data Structures' - }, - { - id: 'northcotts-game', - title: "Northcott's Game", - description: 'A strategic board game where players move their pieces to outmaneuver their opponent in a tactical race.', - tags: ['strategy', 'board-game', 'two-player'], - path: '/northcotts-game', - theme: 'Games' - } -]; - +const featuredInteractives = [{ + id: 'binary-number-game', + title: 'Binary Number Representation', + description: 'Learn how numbers are represented in binary (base-2) format through an interactive guessing game.', + tags: ['binary', 'numbers', 'conversion'], + path: '/binary-number-game', + theme: 'Discrete Math' +}, { + id: 'ternary-number-game', + title: 'Ternary Number Representation', + description: 'Learn how numbers are represented in ternary (base-3) format by toggling between 0, 1, or 2 copies of powers of three.', + tags: ['ternary', 'numbers', 'base-3'], + path: '/ternary-number-game', + theme: 'Discrete Math' +}, { + id: 'balanced-ternary-game', + title: 'Balanced Ternary Number Representation', + description: 'Explore balanced ternary using digits T (-1), 0, and 1. Add or subtract powers of three to match the target number.', + tags: ['balanced-ternary', 'numbers', 'signed-digits'], + path: '/balanced-ternary-game', + theme: 'Discrete Math' +}, { + id: 'binary-search-trick', + title: 'Binary Search Magic Trick', + description: 'Perform an amazing magic trick that reveals how binary numbers work. Think of a number and watch the magic happen!', + tags: ['binary', 'magic', 'trick'], + path: '/binary-search-trick', + theme: 'Data Structures' +}, { + id: 'game-of-sim', + title: 'Game of Sim', + description: 'A strategic two-player game where you take turns coloring edges between vertices, trying to avoid creating a triangle of your own color.', + tags: ['strategy', 'graph-theory', 'two-player'], + path: '/game-of-sim', + theme: 'Games' +}, { + id: 'ternary-search-trick', + title: 'Ternary Search Magic Trick', + description: 'Experience the magic of ternary search! Think of a number and watch as the cards reveal it through mathematical calculations.', + tags: ['ternary', 'magic', 'search'], + path: '/ternary-search-trick', + theme: 'Data Structures' +}, { + id: 'northcotts-game', + title: "Northcott's Game", + description: 'A strategic board game where players move their pieces to outmaneuver their opponent in a tactical race.', + tags: ['strategy', 'board-game', 'two-player'], + path: '/northcotts-game', + theme: 'Games' +}]; const Index = () => { - return ( - + return {/* Hero Section */}
@@ -75,9 +65,7 @@ const Index = () => {
-

- Interactive Learning Hub -

+

Discover a collection of interactive educational tools designed to supplement lectures and enhance understanding across multiple disciplines. From discrete mathematics to social choice theory.

@@ -107,14 +95,10 @@ const Index = () => {
- {featuredInteractives.map(interactive => ( - + {featuredInteractives.map(interactive => - + {interactive.title} @@ -127,11 +111,9 @@ const Index = () => { {interactive.description}

- {interactive.tags.slice(0, 3).map(tag => ( - + {interactive.tags.slice(0, 3).map(tag => {tag} - - ))} + )}
-
- ))} +
)}
@@ -153,7 +134,6 @@ const Index = () => {
-
- ); +
; }; export default Index; \ No newline at end of file