Skip to content

Commit

Permalink
feedback link
Browse files Browse the repository at this point in the history
  • Loading branch information
defreeze committed Jan 29, 2024
1 parent f60e946 commit c64636f
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 16 deletions.
28 changes: 14 additions & 14 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,16 @@ star.png,1703632333408,e28272f397163268e0471a132695720712062adda2ec656feac4e7d98
star92.png,1703632333409,627b28cacea9dc7c8e76fd16e059c01d85a6bba0557920890d50e51c2096a921
tarot1_stack1.png,1703698547936,d4535dc26dce77595ab9df35791c9e5f6dfe5484e900bb52a2e60b2807d63828
tarot2_card1.png,1703698266456,ac6909d8faaac8f3c08d7526bdfe3950ce625891a7f0f80e5ea64201a2de1b2b
tarot2_card1_v2.png,1705003334564,7f83a78d2e45188a9ef73c3fd199c930fc62f80b50ad91384eef817bb6436b26
tarot3_stack2.png,1703698564202,05899090142d6c332600a731b8e759e498830603e404678b09c5b7e211e93b12
tarot4_card2.png,1703698299535,af73c1c1192b8f81fd856b1f62b5c3a51e34ac92aa535c227c094a98c9cd41ad
tarot4_card2_v2.png,1705003387034,b3d245f4d20097f5ed9b43157a630d9871834aa4f3345c04644976509b44647a
tarot5_stack3.png,1703698577945,20b8ba6d1a5aad77287db384087003416fe85cdd0bc46455a727e365d81d3b09
tarot6_card3.png,1703698326745,c9ece9295082aae0c02fc73cb728b91c9d99da5f4d598a1bb545cac3d1ce633e
tarot6_card3_v2.png,1705003433063,f86c73efefb75af39ff7678e74d2df192b8f13c2f3ed89af66551e764c9d5673
tarot7_stack4.png,1703698590137,8b6e05446859f90f3a793adcb1acd9960d57f584cd239695c34f80292b89b287
tarot7_stack4_v2.png,1705003265303,f1aed157895697f3182cf19c184f3090919768df6917f6857f87d81d6b813155
tarot8_stack5_v2.png,1705006965021,16c1e100cb8866b805967b396286eb72faa4c2c6806e199678ecec26054859f1
tarotdemo.mp4,1703632333630,af311ee305094f46f099ccc11c35635ef91d3f0754501e371faf026c67f2669c
tarotstar.png,1703632333633,dcf7ae1e7f9c7c4e4d67a77ffcb33b6d4f4137fb19111d52163e566fc3cd9c97
tarotstar2.png,1704214982607,7b3c1e3954387a31a48d9d2560affea1673ce1159ffae9f32f4f6e52618dad79
Expand Down Expand Up @@ -294,17 +299,12 @@ tarot_deck_one/Two of Swords.jpg,1703632333606,e24e343ae9f7bc7e3e3f79fe29a6d3bc7
tarot_deck_one/Two of Wands.jpg,1703632333608,8fc348698321f5c68aff09a56d33ddab24296d3d75f2b39f62e5e72eec1c1919
tarot_deck_one/Wheel of Fortune.jpg,1703632333609,12b9bd953ea36fb6c7d108888f416330c78adadc3220cbf1a60212250a9d4239
tarot_deck_one/z00.jpg,1703632333611,5734e942155f1d608372674459d7c34db5bdd6c164f395ebcd8de13cb91e5fb9
asset-manifest.json,1705052798895,45d5392868fbcef91114309883c08e9d0d24155ce44ba4db99c914ff61826b4f
index.html,1705052798895,632edf51ed74e0d21b14346129cc6891ce47709096f1d8b02e09f50cb7f3be4a
static/css/main.a5af35f0.css,1705052798907,598101dde7d43e62ea197d9fb5b01fcae8e6674cbcaf6313d2e3cfab65840a24
static/js/787.7a370507.chunk.js,1705052798909,a5ad7c8ca915cee3d676c117243014a97a7000f942f49b65eb23e9db2840c0d8
static/js/main.09dc06c3.js.LICENSE.txt,1705052798907,719399c1ef490fedd4063fa1b9dbfd640c4c0258e1718108586e19f9dd4fca70
static/css/main.a5af35f0.css.map,1705052798908,c21b42f9427bcae1e5d6b4ffed74ab50459e6aecabf3d3964e8d2febd7eb60bf
static/js/787.7a370507.chunk.js.map,1705052798912,e5a84b156d17a81448d9679190c7ebd0f6c907bf576ec1bc1191b190a6ebab3b
tarot6_card3_v2.png,1705003433063,f86c73efefb75af39ff7678e74d2df192b8f13c2f3ed89af66551e764c9d5673
tarot2_card1_v2.png,1705003334564,7f83a78d2e45188a9ef73c3fd199c930fc62f80b50ad91384eef817bb6436b26
tarot8_stack5_v2.png,1705006965021,16c1e100cb8866b805967b396286eb72faa4c2c6806e199678ecec26054859f1
tarot4_card2_v2.png,1705003387034,b3d245f4d20097f5ed9b43157a630d9871834aa4f3345c04644976509b44647a
tarot7_stack4_v2.png,1705003265303,f1aed157895697f3182cf19c184f3090919768df6917f6857f87d81d6b813155
static/js/main.09dc06c3.js,1705052798907,9c8e2930aa73144958cca0c749d90799813b82c13f3174b7fea2049d0790a7bb
static/js/main.09dc06c3.js.map,1705052798914,ef68ba9358181c5624e2df03eaa021cc35751d4cfad546ac249754896c45bec0
index.html,1705345985274,c344af8a73ec4c936a722dccffc1e9a433cdd5ab09ca31e2b03c590a4f48f677
asset-manifest.json,1705345985275,08c1481d27feb66be54e3d2c4e7ce6911bb72025da543b662016832564514322
static/css/main.4f70389d.css,1705345985298,f705120ad42f43c8a65e0c8d77f67ddf8b80e82f97fb613dbdb0eb340de480fc
static/js/787.7a370507.chunk.js,1705345985298,a5ad7c8ca915cee3d676c117243014a97a7000f942f49b65eb23e9db2840c0d8
static/js/main.09dc06c3.js.LICENSE.txt,1705345985298,719399c1ef490fedd4063fa1b9dbfd640c4c0258e1718108586e19f9dd4fca70
static/css/main.4f70389d.css.map,1705345985298,db08cd25fffa18e97ed2d4df3e86801bf782a91ff71c0ab80cb19ae324fa1efd
static/js/787.7a370507.chunk.js.map,1705345985299,e5a84b156d17a81448d9679190c7ebd0f6c907bf576ec1bc1191b190a6ebab3b
static/js/main.09dc06c3.js,1705345985299,9c8e2930aa73144958cca0c749d90799813b82c13f3174b7fea2049d0790a7bb
static/js/main.09dc06c3.js.map,1705345985303,ef68ba9358181c5624e2df03eaa021cc35751d4cfad546ac249754896c45bec0
16 changes: 16 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,22 @@ body {
}
}

.feedback-link {
position: absolute;
font-size: 20px;
top: 1%;
left: 7px;
padding: 10px;
color: yellow;
animation: fadeInOut3 5s infinite;
/* Clear yellow text */
cursor: pointer;
z-index: 1000;
transform: rotate(-10deg);
/* Tilts the text. Adjust the angle as needed */

}

.user-input:disabled,
.user-select:disabled,
.prompt-input:disabled {
Expand Down
9 changes: 7 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function App() {
const [loading, setLoading] = useState(false);
const [choice, setChoice] = useState("");
const [showPasswordPage, setShowPasswordPage] = useState(false);
//const [user, setUser] = useState([]);
const [profile, setProfile] = useState(null);


Expand All @@ -39,7 +38,9 @@ function App() {
console.error('Login Failed:', error);
});
};

const handleFeedbackClick = () => {
window.open('https://forms.gle/mYw64PTEUC3C8RsWA', '_blank');
};
const logOut = () => {
signOut(auth)
.then(() => {
Expand Down Expand Up @@ -73,6 +74,10 @@ function App() {
return (
<Router>
<div className="App">
{/* Feedback Link */}
<div className="feedback-link" onClick={handleFeedbackClick}>
Help Us Improve!
</div>
<Routes>
<Route path="/about" element={<AboutPage profile={profile} login={login} logOut={logOut} />} />
<Route path="/" element={
Expand Down
26 changes: 26 additions & 0 deletions src/components/generatePrompt_general.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// promptGenerator for general advice reading
export function generatePrompt_general(variables: {
NAMEHERE: string;
MOODHERE: string;
CONTEXTHERE: string;
pastCard: string;
presentCard: string;
futureCard: string;
}): string {
return `You are an expert AI tarot card reader with a thoughtful and insightful tone. You will refer to the client as ${variables.NAMEHERE} and their current mood is ${variables.MOODHERE}, take this into account. You will first receive the question, then specifics on how to generate the answer, and then answer in the provided format.
Question: Give a general advice tarot reading. The question ${variables.NAMEHERE} asks is ${variables.CONTEXTHERE}. Focus the reading on that context.
The first card is ${variables.pastCard}, the second card is ${variables.presentCard} and third card is ${variables.futureCard}. Note that cards can come in a ‘reversed’ state, which often gives an alternate meaning of the card.
Answer generation specifics: THINK DEEPLY BUT VALUE SPEED TO ANSWER. CONSIDER INTERPRETATIONS FOR EACH CARD INDIVIDUALLY AND THE QUESTION ${variables.NAMEHERE} ASKED. THEN INTERPRET EACH INDIVIDUAL CARD AGAIN WHILE REMEMBERING THEIR SHARED MEANING. THIS IS IMPORTANT.
FORMAT:
<Personalized greeting for ${variables.NAMEHERE}>,
QUESTION ASKED: <Summarize the client context, identify the generic problbems and underline what the challenges might be: ${variables.CONTEXTHERE}>
THE challenges, <challenge card name here>: <interpretation of the challenge card (${variables.pastCard}) here>
THE ACTION, <action card name here>: <interpretation of the action card (${variables.presentCard}) here>
THE OUTCOME, <outcome card name here>: <interpretation of the outcome (${variables.futureCard}) card here>
COMBINED INTERPRETATION: <specific advice combining the interpretations of all cards, remember that this paragraph is the most important>
<sign off message and then sign off as AI tarot reader`;
}
4 changes: 4 additions & 0 deletions src/components/tarotreading.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { generatePrompt_rel } from "./generatePrompt_rel.ts";
import { generatePrompt_career } from "./generatePrompt_career.ts";
import { generatePrompt_daily } from "./generatePrompt_daily.ts";
import { generatePrompt_weekly } from "./generatePrompt_weekly.ts";
import { generatePrompt_general } from "./generatePrompt_general.ts";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faRefresh } from '@fortawesome/free-solid-svg-icons';

Expand Down Expand Up @@ -231,6 +232,7 @@ function Tarotgen({ profile, setLoading, loading, choice, setChoice, setShowPass
"4": generatePrompt_career,
"5": generatePrompt_daily,
"6": generatePrompt_weekly,
"7": generatePrompt_general,
"": generatePrompt_PPF,
};
const promptGenerator = promptGenerators[choice];
Expand Down Expand Up @@ -365,6 +367,8 @@ function Tarotgen({ profile, setLoading, loading, choice, setChoice, setShowPass
<option value="4">Career Path</option>
<option value="5">Daily Insight</option>
<option value="6">Weekly Insight</option>
<option value="7">Specific Question</option>

</select>
</div>
<textarea
Expand Down

0 comments on commit c64636f

Please sign in to comment.