Skip to content

Commit

Permalink
textbox & introtext view change
Browse files Browse the repository at this point in the history
  • Loading branch information
IslandHanX committed Dec 19, 2023
1 parent 7f7ed7e commit fd50eea
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 24 deletions.
2 changes: 1 addition & 1 deletion src/model/openai/GetPersonalityMatch.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const callChatGPT = async (formattedResponses) => {
console.log(requestPrompt);

let openai = new OpenAI({
apiKey: "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",
apiKey: "sk-",
dangerouslyAllowBrowser: true,
});

Expand Down
59 changes: 37 additions & 22 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,16 @@ h1 {
max-width: 60vw;
}


.history {
display: flex;
align-items: center;
width: 100%;
gap: 2%;
margin-left: 3%;
margin-bottom: 50px;
margin-bottom: 30px;
margin-top: 50px;
justify-content: space-around;
justify-content: space-between;
place-items: center;
}

Expand Down Expand Up @@ -284,13 +286,13 @@ h1 {
max-height: 8vh;
}

.normalText, .normalText-test, .introText, .date, .iconText, .titleText {
.normalText, .normalText-test, .introText, .introText-history, .date, .iconText, .titleText {
font-size: 4vw;
}

.textBox, .textBox-history {
padding: 10px;
width: 90%;
padding: 30px;
width: 80%;
}

.login-button {
Expand Down Expand Up @@ -457,30 +459,34 @@ img {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
padding: 30px;
width: 60%;
border-radius: 30px;
text-align: justify;
line-height: 38px;
margin-bottom: 40px;
background-color: #373d7f;
background-color: #373d7fda;
}

.textBox-history {
display: block;
margin-left: auto;
margin-right: auto;
padding: 10px;
padding-left: 24px;
padding-right: 24px;
padding: 20px;
background-color: #f9d552af;
color: #373d7f;
font-size: 1rem;
line-height: 1.5;
text-align: justify;
width: 64%;
border-radius: 30px;
line-height: 38px;
margin-bottom: 40px;
background-color: #373d7f;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin: 10px auto;
max-width: 65%;
border: 1px solid #ddd;
display: flex;
flex-direction: column;
justify-content: center;
}


@media screen and (max-width: 768px) {
.textBox,
.textBox-history {
Expand All @@ -490,20 +496,27 @@ img {
}

.iconText {
font-size: 2rem;
font-size: 1.9rem;
color: #ffffff;
display: flex;
flex-direction: column;
justify-content: center;
}

.introText {
font-size: 2rem;
padding: 10px;
font-size: 1.3rem;
color: #ffffff;
}

.introText-history {
padding: 10px;
font-size: 1rem;
color: #373d7f;
}

.date {
font-size: 3vh;
font-size: 2vh;
color: #373d7f;
align-self: center;
text-align-last: center;
Expand All @@ -527,6 +540,7 @@ img {
.normalText,
.normalText-test,
.introText,
.introText-history,
.date,
.titleText {
font-size: smaller;
Expand Down Expand Up @@ -661,11 +675,12 @@ img {
.itemButton {
background-color: #f7cc2e;
color: #3c444d;
padding: 5px 10px;
padding: 15px;
border: none;
justify-content: center;
text-decoration: none;
margin-right: 10vw;
font-size: 2vw;
font-size: 1.5vw;
margin-bottom: 4vh;
cursor: pointer;
border-radius: 10px;
Expand Down
2 changes: 1 addition & 1 deletion src/views/components/historyItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function HistoryItem(props){
<div className="history">
<img className="img_3" src={props.image} alt=""></img>
<div className="textBox-history">
<div className="introText">
<div className="introText-history">
{props.intro}
</div>
</div>
Expand Down

0 comments on commit fd50eea

Please sign in to comment.