Skip to content

Commit

Permalink
fix-AddNewCard-Screen-added
Browse files Browse the repository at this point in the history
  • Loading branch information
munezeromicha committed May 30, 2024
1 parent 40a36d3 commit 47046cc
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/(app)/ActionMenu/Booking/AddNewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
} from "@/components/Icons/Icons";
import { BarCodeScanner } from "expo-barcode-scanner";
import { router } from "expo-router";
import header from '@/components/UI/Header';

export default function AddNewCard() {
const [date, setDate] = useState<Date>(new Date());
Expand All @@ -42,7 +41,7 @@ export default function AddNewCard() {
const { theme, changeTheme } = useContext(ThemeContext);

useEffect(() => {
changeTheme("dark");
changeTheme("light");
}, [changeTheme]);

const onDateChange = (event: Event | AndroidEvent, selectedDate?: Date) => {
Expand Down
41 changes: 41 additions & 0 deletions assets/images/Booking/Card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
export const Card= `<svg width="424" height="287" viewBox="0 0 424 287" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_d_1241_26802)">
<g clip-path="url(#clip0_1241_26802)">
<rect x="20" y="16" width="380" height="239" rx="44" fill="url(#paint0_linear_1241_26802)"/>
<g opacity="0.32">
<path opacity="0.1" d="M262.831 -16.3608L391.137 60.0095V189.138L262.831 112.076V-16.3608Z" fill="white"/>
<path opacity="0.2" d="M518.993 -16.2837L390.691 60.0066V189L518.993 112.018V-16.2837Z" fill="white"/>
<path opacity="0.3" d="M262.831 -15.938L391.137 -93L519.442 -15.938V-15.3616L391.137 61.7004L262.831 -15.3616V-15.938Z" fill="white"/>
<path opacity="0.1" d="M-99 56.8936L29.3056 133.264V262.392L-99 185.33V56.8936Z" fill="white"/>
<path opacity="0.2" d="M157.162 56.9707L28.8601 133.261V262.254L157.162 185.273V56.9707Z" fill="white"/>
<path opacity="0.3" d="M-99 57.3164L29.3056 -19.7456L157.611 57.3164V57.8928L29.3056 134.955L-99 57.8928V57.3164Z" fill="white"/>
<path opacity="0.1" d="M209.111 15.7607L262.609 47.6037V101.444L209.111 69.3131V15.7607Z" fill="white"/>
<path opacity="0.2" d="M315.919 15.793L262.423 47.6026V101.387L315.919 69.2891V15.793Z" fill="white"/>
<path opacity="0.3" d="M209.111 15.9371L262.609 -16.1943L316.107 15.9371V16.1774L262.609 48.3088L209.111 16.1774V15.9371Z" fill="white"/>
<path opacity="0.1" d="M253.951 221.316L307.449 253.159V307L253.951 274.868V221.316Z" fill="white"/>
<path opacity="0.2" d="M360.759 221.348L307.263 253.158V306.942L360.759 274.844V221.348Z" fill="white"/>
<path opacity="0.3" d="M253.951 221.492L307.449 189.361L360.947 221.492V221.733L307.449 253.864L253.951 221.733V221.492Z" fill="white"/>
</g>
</g>
</g>
<defs>
<filter id="filter0_d_1241_26802" x="0" y="0" width="428" height="287" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dx="4" dy="8"/>
<feGaussianBlur stdDeviation="12"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0.141176 0 0 0 0 0.419608 0 0 0 0 0.992157 0 0 0 0.25 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1241_26802"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1241_26802" result="shape"/>
</filter>
<linearGradient id="paint0_linear_1241_26802" x1="400" y1="255" x2="-4.26502" y2="68.6363" gradientUnits="userSpaceOnUse">
<stop stop-color="#246BFD"/>
<stop offset="1" stop-color="#5089FF"/>
</linearGradient>
<clipPath id="clip0_1241_26802">
<rect x="20" y="16" width="380" height="239" rx="44" fill="white"/>
</clipPath>
</defs>
</svg>
`
2 changes: 1 addition & 1 deletion components/Icons/Icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,4 @@ export const WhiteDownArrow = `<svg width="20" height="20" viewBox="0 0 20 20" f
export const GreyDownArrow = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.0575 13.8591C9.00917 13.8121 8.8025 13.6343 8.6325 13.4687C7.56333 12.4977 5.81333 9.96485 5.27917 8.63915C5.19333 8.43781 5.01167 7.9288 5 7.65684C5 7.39625 5.06 7.14783 5.18167 6.91078C5.35167 6.61528 5.61917 6.37823 5.935 6.24834C6.15417 6.16472 6.81 6.03483 6.82167 6.03483C7.53917 5.90494 8.705 5.8335 9.99333 5.8335C11.2208 5.8335 12.3392 5.90494 13.0675 6.01128C13.0792 6.02346 13.8942 6.15335 14.1733 6.29542C14.6833 6.55602 15 7.06503 15 7.60976V7.65684C14.9875 8.01161 14.6708 8.75767 14.6592 8.75767C14.1242 10.0119 12.46 12.4864 11.3542 13.4808C11.3542 13.4808 11.07 13.7609 10.8925 13.8827C10.6375 14.0727 10.3217 14.1668 10.0058 14.1668C9.65333 14.1668 9.325 14.0605 9.0575 13.8591" fill="#212121"/>
</svg>
`
`

0 comments on commit 47046cc

Please sign in to comment.