From 56266d00a5381588580ee555d43ea4e8686573c8 Mon Sep 17 00:00:00 2001 From: Anna Knoerr Date: Mon, 21 Jul 2025 14:13:54 +0200 Subject: testing quantum elements with json --- elements.css | 103 ++++++++++++++++++++++++++++++++++ elements.json | 142 +++++++++++++++++++++++++++++++++++++++++++++++ quantum-elements-v3.html | 62 +++++++++++++++++++++ 3 files changed, 307 insertions(+) create mode 100644 elements.css create mode 100644 elements.json create mode 100644 quantum-elements-v3.html diff --git a/elements.css b/elements.css new file mode 100644 index 0000000..0cebd97 --- /dev/null +++ b/elements.css @@ -0,0 +1,103 @@ +/* elements.css */ +body { + margin: 0; + font-family: Arial, sans-serif; + background-color: #f4f4f4; + } + + .periodic-table { + display: grid; + grid-template-columns: repeat(18, 1fr); + grid-gap: 5px; + padding: 20px; + max-width: 1200px; + margin: auto; + } + + .element { + background-color: #e0e0e0; + border: 1px solid #999; + text-align: center; + padding: 10px; + cursor: pointer; + border-radius: 5px; + position: relative; + } + + .element .number { + font-size: 12px; + position: absolute; + top: 5px; + left: 5px; + } + + .element .symbol { + font-size: 20px; + font-weight: bold; + } + + .element .name { + font-size: 12px; + } + + /* Classification colors */ + .alkali-metal { background-color: #ff6666; } + .alkaline-earth-metal { background-color: #ffdead; } + .lanthanoid { background-color: #ffbfff; } + .actinoid { background-color: #ff99cc; } + .transition-metal { background-color: #ffc0c0; } + .post-transition-metal { background-color: #cccccc; } + .metalloid { background-color: #cccc99; } + .nonmetal { background-color: #b3e6ff; } + noble-gas { background-color: #c0ffff; } + .unknown { background-color: #e5e5e5; } + + /* Overlay and popup */ + #overlay { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.6); + backdrop-filter: blur(4px); + z-index: 1000; + } + + #popup { + display: none; + position: fixed; + top: 10%; + left: 50%; + transform: translateX(-50%); + width: 80%; + max-width: 600px; + background-color: #fff; + padding: 20px; + border-radius: 8px; + z-index: 1001; + overflow-y: auto; + max-height: 80%; + } + + #popup h2 { + margin-top: 0; + } + + #popup button { + display: block; + margin: 20px auto 0; + padding: 10px 20px; + font-size: 16px; + border: none; + background-color: #007bff; + color: white; + border-radius: 5px; + cursor: pointer; + } + + #popup button:hover { + background-color: #0056b3; + } + \ No newline at end of file diff --git a/elements.json b/elements.json new file mode 100644 index 0000000..aca8450 --- /dev/null +++ b/elements.json @@ -0,0 +1,142 @@ +[ + { + "number": 1, + "symbol": "H", + "name": "Hydrogen", + "category": "nonmetal", + "column": 1, + "row": 1, + "quantum": "Used in quantum hydride models", + "other": "Rocket fuel, industrial processes", + "vendors": [ + "Air Liquide", + "Linde" + ] + }, + { + "number": 2, + "symbol": "He", + "name": "Helium", + "category": "noble-gas", + "column": 18, + "row": 1, + "quantum": "Key in dilution refrigeration for qubit cooling", + "other": "MRI scanners, balloons", + "vendors": [ + "Airgas", + "Gazprom" + ] + }, + { + "number": 3, + "symbol": "Li", + "name": "Lithium", + "category": "alkali-metal", + "column": 1, + "row": 2, + "quantum": "Trapped-ion qubit candidate", + "other": "Batteries, ceramics", + "vendors": [ + "Albemarle", + "SQM" + ] + }, + { + "number": 4, + "symbol": "Be", + "name": "Beryllium", + "category": "alkaline-earth-metal", + "column": 2, + "row": 2, + "quantum": "Used in ion traps", + "other": "Aerospace, X-ray windows", + "vendors": [ + "Materion", + "American Elements" + ] + }, + { + "number": 5, + "symbol": "B", + "name": "Boron", + "category": "metalloid", + "column": 13, + "row": 2, + "quantum": "Used in B-doped superconductors", + "other": "Glass, detergents", + "vendors": [ + "Borax", + "Eti Maden" + ] + }, + { + "number": 6, + "symbol": "C", + "name": "Carbon", + "category": "nonmetal", + "column": 14, + "row": 2, + "quantum": "Base of diamond NV centers", + "other": "All life forms, steel", + "vendors": [ + "GrafTech", + "Asbury" + ] + }, + { + "number": 7, + "symbol": "N", + "name": "Nitrogen", + "category": "nonmetal", + "column": 15, + "row": 2, + "quantum": "Part of NV centers", + "other": "Fertilizers, inert gas", + "vendors": [ + "Air Products", + "Yara" + ] + }, + { + "number": 8, + "symbol": "O", + "name": "Oxygen", + "category": "nonmetal", + "column": 16, + "row": 2, + "quantum": "Present in oxide superconductors", + "other": "Respiration, combustion", + "vendors": [ + "Praxair", + "Air Liquide" + ] + }, + { + "number": 9, + "symbol": "F", + "name": "Fluorine", + "category": "halogen", + "column": 17, + "row": 2, + "quantum": "Used in fluorine-doped quantum dots", + "other": "Teflon, refrigerants", + "vendors": [ + "Solvay", + "Honeywell" + ] + }, + { + "number": 10, + "symbol": "Ne", + "name": "Neon", + "category": "noble-gas", + "column": 18, + "row": 2, + "quantum": "Cryogenic support gas", + "other": "Sign lighting", + "vendors": [ + "Linde", + "Messer" + ] + } +] \ No newline at end of file diff --git a/quantum-elements-v3.html b/quantum-elements-v3.html new file mode 100644 index 0000000..6cb1eea --- /dev/null +++ b/quantum-elements-v3.html @@ -0,0 +1,62 @@ + + + + + + Interactive Periodic Table + + + +
+ + +
+ + + + -- cgit v1.3.1