Skip to content

Commit

Permalink
include team card and info card components
Browse files Browse the repository at this point in the history
  • Loading branch information
Swimming7birdz committed Jun 29, 2024
1 parent 3351c20 commit 09a4336
Show file tree
Hide file tree
Showing 8 changed files with 766 additions and 2 deletions.
164 changes: 163 additions & 1 deletion package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^5.2.1",
"react-router-dom": "^6.23.1"
"react-router-dom": "^6.23.1",
"semantic-ui-css": "^2.5.0",
"semantic-ui-react": "^2.1.5"
},
"devDependencies": {
"@types/react": "^18.2.66",
Expand Down
107 changes: 107 additions & 0 deletions src/components/Info/InfoCards.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
@import url('../../styles/fonts.css');

:root {
--soda-red-900: oklch(55% 0.2 12);
--soda-red-775: oklch(55% 0.2 12);
--soda-red-675: oklch(55% 0.2 12);
--soda-red-550: oklch(55% 0.2 12);
--soda-red-450: oklch(55% 0.2 12);
--soda-red-325: oklch(55% 0.2 12);
--soda-red-225: oklch(55% 0.2 12);
--soda-red-100: oklch(55% 0.2 12);
}

.infocards {
display: flex;
flex-direction: column;
}

.infocards #title {
font-family: 'Apfel-Fett';
font-size: 2em;
text-align: center;
padding: 7vw;
padding-bottom: 0vw;
}

/*
#cards {
max-width: 1000px;
margin: 3vh auto 5vh auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
#cards .Card {
padding-top: 3px;
margin: 5px 10px 5px 10px;
justify-content: center;
}
*/


/*Card styling*/

.rounded-card {
border-radius: 15px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow for better appearance */
background-color: white;
color: black;
font-family: 'Apfel-Regular';
}

.card-content {
padding: 16px;
}

.card-header {
color: black;
padding-bottom: 8px;
font-weight: bold;
font-size:1.2em;
}

.card-description {
color: black;
padding-bottom: 8px;
font-size:0.8em;
}


#cards {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}

.Card {
width: 300px;
}


/* Card button */
.card-button{
background-color: var(--soda-red-550);
color: white;
border: none; /* Remove default border */
border-radius: 25px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer; /* Change cursor to pointer on hover */
display: flex;
align-items: center;
transition: background-color 0.6s ease; /* Add transition for smooth background color change */
}

.card-button::after {
content: '→'; /* Unicode character for right arrow */
margin-left: 10px;
}

.card-button:hover {
background-color: darkred; /* Change background color on hover */
}
Loading

0 comments on commit 09a4336

Please sign in to comment.