Skip to content

Commit

Permalink
Improve kitchen sink (#829)
Browse files Browse the repository at this point in the history
* age calculator done

* bmi calculator done

* book recommendation done

* calculator is done

* countdown timer done

* context done

* currency converter done

* data converter done

* dice roller done

* digital journal done

* carousel done

* discount calculator done

* currency converter done

* create event calender done

* fix: fixed a merge issue

* ran cleanup scripts
  • Loading branch information
Timonwa authored Nov 13, 2023
1 parent 4f0b7f6 commit afc6dfc
Show file tree
Hide file tree
Showing 22 changed files with 1,167 additions and 900 deletions.
17 changes: 17 additions & 0 deletions packages/kitchen-sink/src/css/examples/age-calculator.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.age-calculator h2 {
font-size: 1.2rem;
}
.age-calculator .input-wrapper {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
align-items: flex-end;
gap: 10px;
}
.age-calculator button {
margin-block: 20px;
}
.age-calculator .form-input-group {
display: flex;
flex-direction: column;
gap: 5px;
}
41 changes: 41 additions & 0 deletions packages/kitchen-sink/src/css/examples/bmi-calculator.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.bmi-calculator {
max-width: 900px;
}
.bmi-calculator h2 {
text-align: center;
}
.bmi-calculator .bmi-calculator_wrapper {
max-width: 500px;
display: grid;
grid-template-columns: repeat(2, 1fr);
margin-inline: auto;
gap: 10px 20px;
}
@media screen and (max-width: 500px) {
.bmi-calculator .bmi-calculator_wrapper {
grid-template-columns: 1fr;
}
}
.bmi-calculator .form-input-group {
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 5px;
}
.bmi-calculator input,
.bmi-calculator select {
height: 40px;
color: currentColor;
}
.bmi-calculator select {
background-color: var(--background);
border: none;
border-radius: 5px;
padding: 8px;
}
.bmi-calculator button {
height: 40px;
color: black;
background-color: orange;
margin-top: 10px;
}
18 changes: 18 additions & 0 deletions packages/kitchen-sink/src/css/examples/carousel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* Required styling for carousel */
.carousel {
display: flex;
overflow: hidden;
gap: 10px;
}

.carousel-inner {
display: flex;
width: 100%;
aspect-ratio: 3/2;
transition: transform 0.3s ease-in-out;
}
.carousel img {
width: 100%;
aspect-ratio: 3/2;
transition: transform 0.3s ease-in-out;
}
315 changes: 315 additions & 0 deletions packages/kitchen-sink/src/css/examples/create-event-calender.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,315 @@
/* calendar styles */
.create-event-calender {
/* text-align: center; */
}

.create-event-calender .create-event-calender_wrapper {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
margin-top: 2rem;
}

.create-event-calender .calendar-container {
flex: 1;
max-width: 500px;
margin-right: 2rem;
}

.create-event-calender .event-container {
flex: 1;
max-width: 500px;
}

@media screen and (max-width: 768px) {
.create-event-calender .create-event-calender_wrapper {
flex-direction: column;
}

.create-event-calender .calendar-container,
.create-event-calender .event-container {
max-width: 100%;
margin-right: 0;
margin-bottom: 2rem;
justify-content: center;
}
}

.create-event-calender .react-calendar {
width: 100%;
max-width: 500px;
background-color: white;
border: 1px solid #151515;
font-family: Arial, Helvetica, sans-serif;
line-height: 1.125em;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
padding: 10px;
transition: background-color 0.2s;
}

.create-event-calender .react-calendar--doubleView {
width: 100%;
}

.create-event-calender
.react-calendar--doubleView
.react-calendar__viewContainer {
display: flex;
margin: -0.5em;
}

.create-event-calender
.react-calendar--doubleView
.react-calendar__viewContainer
> * {
width: 50%;
margin: 0.5em;
}

.create-event-calender .react-calendar,
.create-event-calender .react-calendar *,
.create-event-calender .react-calendar *:before,
.create-event-calender .react-calendar *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

.create-event-calender .react-calendar button {
margin: 0;
border: 0;
outline: none;
color: #151515;
}

.create-event-calender .react-calendar button:enabled:hover {
cursor: pointer;
}

.create-event-calender .react-calendar__navigation {
display: flex;
height: 44px;
margin-bottom: 1em;
}

.create-event-calender .react-calendar__navigation button {
min-width: 44px;
background: none;
}

.create-event-calender .react-calendar__navigation button:disabled {
background-color: black;
}

.create-event-calender .react-calendar__navigation button:enabled:hover,
.create-event-calender .react-calendar__navigation button:enabled:focus {
background-color: black;
}

.create-event-calender .react-calendar__month-view__weekdays {
text-align: center;
text-transform: uppercase;
font-weight: bold;
font-size: 0.8rem;
color: black;
}

.create-event-calender .react-calendar__month-view__weekdays__weekday {
padding: 0.5em;
}

.create-event-calender
.react-calendar__month-view__weekNumbers
.react-calendar__tile {
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75em;
font-weight: bold;
}

.create-event-calender .react-calendar__month-view__days__day--weekend {
color: black;
}

.create-event-calender
.react-calendar__month-view__days__day--neighboringMonth {
color: black;
}

.create-event-calender .react-calendar__year-view .react-calendar__tile,
.create-event-calender .react-calendar__decade-view .react-calendar__tile,
.create-event-calender .react-calendar__century-view .react-calendar__tile {
padding: 2em 0.5em;
}

.create-event-calender .react-calendar__tile {
max-width: 100%;
padding: 10px 6.6667px;
background: none;
text-align: center;
line-height: 16px;
}

.create-event-calender .react-calendar__tile:disabled {
background-color: black;
}

.create-event-calender .react-calendar__tile:enabled:hover,
.create-event-calender .react-calendar__tile:enabled:focus {
background-color: black;
}

.create-event-calender .react-calendar__tile--now {
background: black;
color: white !important;
}

.create-event-calender .react-calendar__tile--now:enabled:hover,
.create-event-calender .react-calendar__tile--now:enabled:focus {
background: black;
}

.create-event-calender .react-calendar__tile--hasActive {
background: black;
}

.create-event-calender .react-calendar__tile--hasActive:enabled:hover,
.create-event-calender .react-calendar__tile--hasActive:enabled:focus {
background: black;
}

.create-event-calender .react-calendar__tile--active {
background: black;
color: black;
}

.create-event-calender .react-calendar__tile--active:enabled:hover,
.create-event-calender .react-calendar__tile--active:enabled:focus {
background: black;
}

.create-event-calender
.react-calendar--selectRange
.react-calendar__tile--hover {
background-color: black;
}

.create-event-calender .event-form {
margin-bottom: 20px;
}

.create-event-calender .event-form h2 {
margin-bottom: 10px;
}

.create-event-calender .event-form p {
font-size: 1.2rem;
}

.create-event-calender .event-form input {
padding: 8px;
font-size: 1rem;
margin-right: 10px;
}

.create-event-calender .create-btn {
padding: 8px 6px;
margin-top: 5px;
background-color: white;
color: black;
border: 0.5px solid black;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.2s;
}

.create-event-calender .create-btn:hover {
background-color: black;
color: whitesmoke;
border: 0.5px solid white;
}

.create-event-calender .event-list {
margin-top: 20px;
}

.create-event-calender .event-cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
}

.create-event-calender .event-card {
width: 300px;
background-color: whitesmoke;
border-radius: 8px;
margin: 10px;
padding: 10px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.create-event-calender .event-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.create-event-calender .event-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}

.create-event-calender .event-date {
font-size: 1rem;
color: black;
}

.create-event-calender .event-actions {
display: flex;
}

.create-event-calender .update-btn,
.create-event-calender .delete-btn {
padding: 8px 12px;
margin-left: 5px;
background-color: white;
color: black;
border: 0.5px solid black;
border-radius: 4px;
font-size: 0.9rem;
cursor: pointer;
transition: background-color 0.2s;
}

.create-event-calender .update-btn:hover,
.create-event-calender .delete-btn:hover {
background-color: black;
color: aliceblue;
border: 0.5px solid white;
}

.create-event-calender .event-card-body {
padding-bottom: 10px;
}

.create-event-calender .event-title {
font-size: 1.5rem;
color: blueviolet;
}

.create-event-calender .selected {
background-color: #ff4081 !important;
color: black;
}

.create-event-calender .event-marked {
background-color: #ff4081;
color: white;
}
Loading

2 comments on commit afc6dfc

@vercel
Copy link

@vercel vercel bot commented on afc6dfc Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

million-kitchen-sink – ./packages/kitchen-sink

million-kitchen-sink-millionjs.vercel.app
million-kitchen-sink.vercel.app
million-kitchen-sink-git-main-millionjs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on afc6dfc Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sink – ./packages/kitchen-sink

million-kitchen-sink-atit.vercel.app
sink.million.dev
sink-millionjs.vercel.app
sink-git-main-millionjs.vercel.app

Please sign in to comment.