-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EDU-3861: Landing page prototype phase 2
- Adds inline definitions - Adds "under the hood" - Simplifies and focuses content - Adds explanatory images
- Loading branch information
1 parent
cf6c2c1
commit 11f280d
Showing
6 changed files
with
148 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 11 additions & 1 deletion
12
docs/production-deployment/cloud/high-availability/work-file.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import React, { useState } from 'react'; | ||
|
||
const ExpandableDefinition = ({ label = "Definition", definition }) => { | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
const toggleDefinition = () => setIsOpen(!isOpen); | ||
|
||
return ( | ||
<span> | ||
<button | ||
onClick={toggleDefinition} | ||
style={{ | ||
background: 'none', | ||
border: 'none', | ||
color: '#007acc', | ||
cursor: 'pointer', | ||
fontSize: '0.9rem', | ||
margin: '-5px', | ||
verticalAlign: 'super', | ||
transition: 'transform 0.3s ease-in-out', | ||
transform: isOpen ? 'rotate(45deg)' : 'none', | ||
// textDecoration: 'underline', | ||
}} | ||
> | ||
⊕ {/* Circled plus */} | ||
</button> | ||
{isOpen && ( | ||
<span | ||
style={{ | ||
display: 'block', | ||
marginTop: '5px', | ||
fontStyle: 'italic', | ||
textAlign: 'center', | ||
marginLeft: 'auto', | ||
marginRight: 'auto', | ||
maxWidth: '80%', | ||
// color: '#4F4F4F', | ||
fontFamily: 'Georgia, serif', | ||
padding: '10px', | ||
border: '2px solid #B0B0B0', | ||
borderRadius: '8px', | ||
// backgroundColor: '#f9f9f9', | ||
transition: 'max-height 0.3s ease-out', | ||
maxHeight: isOpen ? '500px' : '0', | ||
overflow: 'hidden', | ||
}} | ||
> | ||
<span style={{ fontWeight: 'bold', /*color: '#333'*/ }}> | ||
{label}: {/* Dynamically change the label */} | ||
</span> | ||
{definition} | ||
</span> | ||
)} | ||
</span> | ||
); | ||
}; | ||
|
||
export default ExpandableDefinition; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.