Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:AbigailDawson/knownative into al…
Browse files Browse the repository at this point in the history
…exg/KN-44-login-refactor
  • Loading branch information
agrimes23 committed Jan 4, 2025
2 parents 6a78326 + 514af6e commit d181de9
Show file tree
Hide file tree
Showing 50 changed files with 785 additions and 690 deletions.
1 change: 0 additions & 1 deletion client/dist/assets/index-BB4O8R-e.css

This file was deleted.

165 changes: 0 additions & 165 deletions client/dist/assets/index-BKo2qcWO.js

This file was deleted.

1 change: 0 additions & 1 deletion client/dist/assets/index-BoYVvlwz.css

This file was deleted.

165 changes: 0 additions & 165 deletions client/dist/assets/index-DyOLaXRn.js

This file was deleted.

Binary file removed client/dist/favicon.ico
Binary file not shown.
Binary file removed client/dist/images/Abigail.jpg
Binary file not shown.
Binary file removed client/dist/images/abigail-taiwan.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed client/dist/images/core-contributors/Jason-Houn.png
Binary file not shown.
Binary file not shown.
Binary file removed client/dist/images/core-contributors/Lisa-Young.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed client/dist/images/github-icon.png
Binary file not shown.
Binary file removed client/dist/images/horizontal-logo.png
Binary file not shown.
Binary file removed client/dist/images/landing-image.png
Binary file not shown.
Binary file removed client/dist/images/linkedin-icon.png
Binary file not shown.
Binary file removed client/dist/images/portfolio-icon.png
Binary file not shown.
Binary file removed client/dist/images/square-logo.png
Binary file not shown.
Binary file removed client/dist/images/transparent-square-logo.png
Binary file not shown.
39 changes: 0 additions & 39 deletions client/dist/index.html

This file was deleted.

3 changes: 2 additions & 1 deletion client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"react-dom": "^18.3.1",
"react-icons": "^5.0.1",
"react-router-dom": "^6.25.1",
"react-tooltip": "^5.27.1"
"react-tooltip": "^5.27.1",
"sass": "^1.80.7"
},
"scripts": {
"start": "vite",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef } from 'react';
import './DemoStudyText.css';
import './DemoStudyText.scss';
import DemoPopup from './components/DemoPopup/DemoPopup';
import DemoWord from './components/DemoWord/DemoWord';
import * as demoAPI from '../../../utilities/demo-api';
Expand Down Expand Up @@ -99,7 +99,7 @@ export default function DemoStudyText({
return (
<>
<div className="StudyText" ref={containerRef}>
<div className="study-text-block">{words}</div>
<div className="StudyText__block">{words}</div>
</div>
{showPopup && (
<DemoPopup
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.StudyText {
display: flex;
flex-direction: column;
position: relative;
gap: 2rem;
margin: 0 3vmin 0 3vmin;
padding: 4vmin 2vmin;
color: var(--drk-txt);
max-width: 900px;

&__block {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: flex-start;
padding-top: 4vmin;
}

}

/* small screens and smaller */
@media (max-width: 550px) {
.TranslateText {
padding: 4vmin 0 0 5.5vmin;
}

.study-text-block {
margin-left: 20px;
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useState, useEffect, useRef } from 'react';
import './DemoPopup.css';
import './DemoPopup.scss';

export default function Popup({ word, popupPosition, saveWord, onClose, checkSaved }) {
const [popupHeight, setPopupHeight] = useState('15%');
Expand All @@ -19,7 +19,7 @@ export default function Popup({ word, popupPosition, saveWord, onClose, checkSav
}, [onClose]);

useEffect(() => {
const popupMeaning = document.querySelector('.popup-meaning');
const popupMeaning = document.querySelector('.save-word-popup__meaning');
const html = popupMeaning.innerHTML;
const lines = html.split('<br>').length; // count the number of lines by splitting on <br> elements

Expand All @@ -43,17 +43,17 @@ export default function Popup({ word, popupPosition, saveWord, onClose, checkSav

return (
<div
className="Popup"
className="save-word-popup"
style={{
left: `${popupPosition[0] + 105}px`,
top: popupHeight === '11rem' ? `${popupPosition[1] - 100}px` : `${popupPosition[1] - 50}px`,
height: popupHeight
}}
ref={popupRef}>
<div className="popup-content">
<p className="popup-pinyin">{pinyin}</p>
<p className="popup-glyphs">{word.text}</p>
<p className="popup-meaning">
<div className="save-word-popup__content">
<p className="save-word-popup__pinyin">{pinyin}</p>
<p className="save-word-popup__glyphs">{word.text}</p>
<p className="save-word-popup__meaning">
{meaning.length > 25 ? (
<span>
{meaning.substring(0, meaning.lastIndexOf(' ', 20))}
Expand All @@ -66,23 +66,23 @@ export default function Popup({ word, popupPosition, saveWord, onClose, checkSav
</p>
</div>
{!isSaved ? (
<button className="save-button" onClick={handleSaveClick}>
<button className="save-word-popup__save-button" onClick={handleSaveClick}>
{' '}
+{' '}
</button>
) : (
<button className="save-button saved-button" disabled="true">
<button className="save-word-popup__save-button--saved" disabled="true">
{' '}
{' '}
</button>
)}
&nbsp;
{/* <button className="save-button" onClick={handleSaveClick} disabled={isSaved}> + </button>&nbsp; */}
<button className="close-btn" onClick={onClose}>
<button className="save-word-popup__close-btn" onClick={onClose}>
{' '}
x{' '}
</button>
<div className="popup-arrow" />
<div className="save-word-popup__arrow" />
</div>
);
}
Loading

0 comments on commit d181de9

Please sign in to comment.