Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion client/package-lock.json

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

16 changes: 9 additions & 7 deletions client/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,25 @@
font-style:normal;
font-size: calc(10px + 2vmin);
color: #373D3F;
justify-content: center;
/* background-image: url('background.jpg'); */
background-color: #75c3f3a3;
background-position: right center;
background-size: cover;
padding:20px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
flex-direction: column;
align-items: center;
justify-content: center;


min-height: 800px;
min-height: 100vh;
/* background-attachment: fixed;
background-position: center;
background-repeat: no-repeat; */
background-size: cover;

}

.app-content {
width: 100%;
flex: 1;
display: flex;
justify-content: center;
}
4 changes: 3 additions & 1 deletion client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ const App = () => {
return (
<div className="App">
<NavBar />
{element}
<div className="app-content">
{element}
</div>
<Footer />
</div>
)
Expand Down
119 changes: 119 additions & 0 deletions client/src/Pages_css/flowerDictionary.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
.floriography-page {
width: 90%;
margin-bottom: 32px;
display: flex;
flex-direction: column;
gap: 20px;
min-height: calc(100vh - 260px);
}

.floriography-header {
text-align: center;
background: rgba(255, 255, 255, 0.62);
border-radius: 14px;
padding: 24px 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.floriography-header h1 {
margin: 0;
font-size: 2.2rem;
color: #2f3335;
}

.floriography-header p {
margin: 10px auto 0;
max-width: 760px;
color: #41555f;
font-size: 1rem;
}

.floriography-controls {
background: rgba(255, 255, 255, 0.54);
border-radius: 14px;
padding: 18px;
display: flex;
flex-direction: column;
gap: 14px;
}

.floriography-controls input {
border: 1px solid #9eb4c0;
border-radius: 8px;
font-size: 1rem;
padding: 10px 12px;
color: #2f3335;
outline: none;
}

.floriography-controls input:focus {
border-color: #2a7abf;
box-shadow: 0 0 0 2px rgba(42, 122, 191, 0.2);
}

.letter-nav {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.letter-nav button {
border: 1px solid #9eb4c0;
background: #ffffff;
color: #2f3335;
border-radius: 999px;
padding: 5px 12px;
font-size: 0.85rem;
cursor: pointer;
transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.letter-nav button:hover {
border-color: #2a7abf;
color: #2a7abf;
}

.letter-nav button.active {
background-color: #2a7abf;
border-color: #2a7abf;
color: #fff;
}

.floriography-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
column-gap: 10px;
row-gap: 8px;
align-content: start;
}

.meaning-card {
background: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(26, 93, 123, 0.16);
border-radius: 12px;
padding: 14px;
height: 240px;
overflow: hidden;
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.08);
}

.meaning-card h2 {
margin: 0;
font-size: 1.1rem;
color: #2f3335;
}

.meaning-card p {
margin: 8px 0 0;
color: #3e5964;
font-size: 0.95rem;
line-height: 1.4;
}

.floriography-state {
margin: 0;
text-align: center;
font-size: 1rem;
color: #34515d;
padding: 12px;
}
Loading