Skip to content

Commit 58e9403

Browse files
Merge pull request #94 from tech-chieftain/task/firebaseupdate
enhance: update firebase and edit some styles
2 parents 5e508a7 + 8daec51 commit 58e9403

File tree

22 files changed

+67
-58
lines changed

22 files changed

+67
-58
lines changed

src/Firebase/Firebase.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import 'firebase/firestore';
44
// Your web app's Firebase configuration
55
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
66
const firebaseConfig = {
7-
apiKey: 'AIzaSyCmmGbub9jlAGiG-cR8zuu9jp5gHN_AiB0',
8-
authDomain: 'blood-donars-63da7.firebaseapp.com',
9-
databaseURL: 'https://blood-donars-63da7.firebaseio.com',
10-
projectId: 'blood-donars-63da7',
11-
storageBucket: 'blood-donars-63da7.appspot.com',
12-
messagingSenderId: '563577097714',
13-
appId: '1:563577097714:web:785bb6ea8e3a2a8025af6b',
14-
measurementId: 'G-CDGZNX7PH3',
7+
apiKey: 'AIzaSyBv7nM7ZuaZ6VZWNVngISqTpjbXXOti2-0',
8+
authDomain: 'lifevessels.firebaseapp.com',
9+
databaseURL: 'https://lifevessels.firebaseio.com',
10+
projectId: 'lifevessels',
11+
storageBucket: 'lifevessels.appspot.com',
12+
messagingSenderId: '1001070360554',
13+
appId: '1:1001070360554:web:dd31de001186f9d3eca493',
14+
measurementId: 'G-Y7EZT4BTCX',
1515
};
1616
// Initialize Firebase
1717
Firebase.initializeApp(firebaseConfig);

src/__snapshots__/App.test.js.snap

+5-5
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ Array [
567567
target="_blank"
568568
>
569569
<svg
570-
className="mr-4 "
570+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
571571
fill="none"
572572
height="32.74"
573573
viewBox="0 0 18 22"
@@ -602,7 +602,7 @@ Array [
602602
target="_blank"
603603
>
604604
<svg
605-
className="mr-4"
605+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
606606
fill="none"
607607
height="32.74"
608608
viewBox="0 0 17 22"
@@ -637,7 +637,7 @@ Array [
637637
target="_blank"
638638
>
639639
<svg
640-
className="mr-4"
640+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
641641
fill="none"
642642
height="32.74"
643643
viewBox="0 0 18 22"
@@ -672,7 +672,7 @@ Array [
672672
target="_blank"
673673
>
674674
<svg
675-
className="mr-4"
675+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
676676
fill="none"
677677
height="32.74"
678678
viewBox="0 0 17 22"
@@ -707,7 +707,7 @@ Array [
707707
target="_blank"
708708
>
709709
<svg
710-
className="mr-4"
710+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
711711
fill="none"
712712
height="32.74"
713713
viewBox="0 0 17 22"

src/components/ContactForm/ContactForm.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const ContactForm = () => {
4242
/>
4343
</div>
4444
<textarea
45-
className=" flex-1 mr-4 p-2 text-base tracking-normal placeholder-gray-500 border-2 border-gray-300 focus:outline-none "
45+
className=" flex-1 mr-4 p-2 text-base tracking-normal placeholder-gray-500 border-2 border-gray-300 focus:outline-none focus:placeholder-transparent hover:border-primary-100 transition duration-500 "
4646
rows="6"
4747
placeholder={t('AboutPage.ContectMessage')}
4848
value={form.massege}

src/components/ContactForm/__test__/__snapshots__/ContactForm.test.jsx.snap

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ exports[`renders correctly 1`] = `
1515
htmlFor="name"
1616
/>
1717
<input
18-
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none bg-white placeholder-gray-500"
18+
autoComplete="off"
19+
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none hover:border-primary-100 transition duration-500 focus:placeholder-transparent bg-white placeholder-gray-500"
1920
id="name"
2021
name="name"
2122
onChange={[Function]}
@@ -32,7 +33,8 @@ exports[`renders correctly 1`] = `
3233
htmlFor="email"
3334
/>
3435
<input
35-
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none bg-white placeholder-gray-500"
36+
autoComplete="off"
37+
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none hover:border-primary-100 transition duration-500 focus:placeholder-transparent bg-white placeholder-gray-500"
3638
id="email"
3739
name="email"
3840
onChange={[Function]}
@@ -43,7 +45,7 @@ exports[`renders correctly 1`] = `
4345
</div>
4446
</div>
4547
<textarea
46-
className=" flex-1 mr-4 p-2 text-base tracking-normal placeholder-gray-500 border-2 border-gray-300 focus:outline-none "
48+
className=" flex-1 mr-4 p-2 text-base tracking-normal placeholder-gray-500 border-2 border-gray-300 focus:outline-none focus:placeholder-transparent hover:border-primary-100 transition duration-500 "
4749
name="massege"
4850
onChange={[Function]}
4951
placeholder="AboutPage.ContectMessage"

src/components/Footer/SocialIcons/__test__/__snapshots__/SocialIcons.test.jsx.snap

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ exports[`renders correctly 1`] = `
1010
target="_blank"
1111
>
1212
<svg
13-
className="mr-4 "
13+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
1414
fill="none"
1515
height="32.74"
1616
viewBox="0 0 18 22"
@@ -45,7 +45,7 @@ exports[`renders correctly 1`] = `
4545
target="_blank"
4646
>
4747
<svg
48-
className="mr-4"
48+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
4949
fill="none"
5050
height="32.74"
5151
viewBox="0 0 17 22"
@@ -80,7 +80,7 @@ exports[`renders correctly 1`] = `
8080
target="_blank"
8181
>
8282
<svg
83-
className="mr-4"
83+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
8484
fill="none"
8585
height="32.74"
8686
viewBox="0 0 18 22"
@@ -115,7 +115,7 @@ exports[`renders correctly 1`] = `
115115
target="_blank"
116116
>
117117
<svg
118-
className="mr-4"
118+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
119119
fill="none"
120120
height="32.74"
121121
viewBox="0 0 17 22"
@@ -150,7 +150,7 @@ exports[`renders correctly 1`] = `
150150
target="_blank"
151151
>
152152
<svg
153-
className="mr-4"
153+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
154154
fill="none"
155155
height="32.74"
156156
viewBox="0 0 17 22"

src/components/Footer/__test__/__snapshots__/Footer.test.jsx.snap

+5-5
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ exports[`renders correctly 1`] = `
123123
target="_blank"
124124
>
125125
<svg
126-
className="mr-4 "
126+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
127127
fill="none"
128128
height="32.74"
129129
viewBox="0 0 18 22"
@@ -158,7 +158,7 @@ exports[`renders correctly 1`] = `
158158
target="_blank"
159159
>
160160
<svg
161-
className="mr-4"
161+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
162162
fill="none"
163163
height="32.74"
164164
viewBox="0 0 17 22"
@@ -193,7 +193,7 @@ exports[`renders correctly 1`] = `
193193
target="_blank"
194194
>
195195
<svg
196-
className="mr-4"
196+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
197197
fill="none"
198198
height="32.74"
199199
viewBox="0 0 18 22"
@@ -228,7 +228,7 @@ exports[`renders correctly 1`] = `
228228
target="_blank"
229229
>
230230
<svg
231-
className="mr-4"
231+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
232232
fill="none"
233233
height="32.74"
234234
viewBox="0 0 17 22"
@@ -263,7 +263,7 @@ exports[`renders correctly 1`] = `
263263
target="_blank"
264264
>
265265
<svg
266-
className="mr-4"
266+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
267267
fill="none"
268268
height="32.74"
269269
viewBox="0 0 17 22"

src/components/InputField/InputField.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ function InputForm({ labelText, placeholder, onChange, inputValue, Inputtype, in
88
{labelText}
99
</label>
1010
<input
11-
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none bg-white placeholder-gray-500"
11+
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none hover:border-primary-100 transition duration-500 focus:placeholder-transparent bg-white placeholder-gray-500"
1212
placeholder={placeholder}
1313
type={Inputtype}
1414
name={inputName}
1515
value={inputValue}
1616
onChange={onChange}
1717
id={inputName}
18+
autoComplete="off"
1819
/>
1920
</div>
2021
);

src/components/InputField/__test__/__snapshots__/InputField.test.jsx.snap

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ exports[`renders correctly 1`] = `
99
htmlFor="name"
1010
/>
1111
<input
12-
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none bg-white placeholder-gray-500"
12+
autoComplete="off"
13+
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none hover:border-primary-100 transition duration-500 focus:placeholder-transparent bg-white placeholder-gray-500"
1314
id="name"
1415
name="name"
1516
onChange={[Function]}

src/components/InputSelect/InputSelect.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function InputSelect({ city, text, onChange, name, options, classflag }) {
1313
{text}
1414
</div>
1515
<select
16-
className="form-select block w-full border-gray-300 border-2 py-2 px-4 text-sm sm:text-base md:text-lg "
16+
className="form-select block w-full border-gray-300 border-2 py-2 px-4 text-sm sm:text-base md:text-lg focus:outline-none "
1717
value={city}
1818
name={name}
1919
onChange={onChange}

src/components/InputSelect/__test__/__snapshots__/InputSelect.test.jsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exports[`renders correctly 1`] = `
1414
3. Please select your city ?*
1515
</div>
1616
<select
17-
className="form-select block w-full border-gray-300 border-2 py-2 px-4 text-sm sm:text-base md:text-lg "
17+
className="form-select block w-full border-gray-300 border-2 py-2 px-4 text-sm sm:text-base md:text-lg focus:outline-none "
1818
name="city"
1919
onBlur={[Function]}
2020
onChange={[Function]}

src/components/SecondStep/__test__/__snapshots__/SecondStep.test.jsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ exports[`renders correctly 1`] = `
216216
donate_second_page.city
217217
</div>
218218
<select
219-
className="form-select block w-full border-gray-300 border-2 py-2 px-4 text-sm sm:text-base md:text-lg "
219+
className="form-select block w-full border-gray-300 border-2 py-2 px-4 text-sm sm:text-base md:text-lg focus:outline-none "
220220
name="city"
221221
onBlur={[Function]}
222222
onChange={[Function]}

src/components/Table/DonorRow/DonorRow.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function DonorRow({ donor }) {
55
const StylesClass = {
66
// grayColor: 'w-full bg-gray-200',
77
// whiteColor: 'we-full bg-red',
8-
rowStyle: 'bg-white odd:bg-gray-200',
8+
rowStyle: 'bg-white odd:bg-gray-200 hover:bg-primary-100 hover:text-white ',
99
ceilClass:
1010
'border px-4 py-2 text-center lg:px-6 mt-4 md:mt-0 whitespace-no-wrap border-b bg-gray',
1111
headerStyle:

src/components/ThirdStep/ThirdStep.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function ThirdStep({ donor, onChange, setStep, onRegister }) {
6262
<div>
6363
<InputField
6464
labelText={t('donate_third_page.name')}
65-
placeholder={t('donate_third_page.name_placeholder')}
65+
placeholder=""
6666
onChange={onChange}
6767
inputValue={donor.name}
6868
inputName="name"
@@ -75,7 +75,7 @@ function ThirdStep({ donor, onChange, setStep, onRegister }) {
7575
<div>
7676
<InputField
7777
labelText={t('donate_third_page.phone')}
78-
placeholder={t('donate_third_page.phone_placeholder')}
78+
placeholder=""
7979
onChange={onChange}
8080
inputValue={donor.phone}
8181
inputName="phone"
@@ -88,7 +88,7 @@ function ThirdStep({ donor, onChange, setStep, onRegister }) {
8888
<div>
8989
<InputField
9090
labelText={t('donate_third_page.email')}
91-
placeholder={t('donate_third_page.email_placeholder')}
91+
placeholder=""
9292
onChange={onChange}
9393
inputValue={donor.email}
9494
inputName="email"

src/components/ThirdStep/__test__/__snapshots__/ThirdStep.test.jsx.snap

+9-6
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ exports[`renders correctly 1`] = `
7474
donate_third_page.name
7575
</label>
7676
<input
77-
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none bg-white placeholder-gray-500"
77+
autoComplete="off"
78+
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none hover:border-primary-100 transition duration-500 focus:placeholder-transparent bg-white placeholder-gray-500"
7879
id="name"
7980
name="name"
8081
onChange={[Function]}
81-
placeholder="donate_third_page.name_placeholder"
82+
placeholder=""
8283
type="text"
8384
value=""
8485
/>
@@ -100,11 +101,12 @@ exports[`renders correctly 1`] = `
100101
donate_third_page.phone
101102
</label>
102103
<input
103-
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none bg-white placeholder-gray-500"
104+
autoComplete="off"
105+
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none hover:border-primary-100 transition duration-500 focus:placeholder-transparent bg-white placeholder-gray-500"
104106
id="phone"
105107
name="phone"
106108
onChange={[Function]}
107-
placeholder="donate_third_page.phone_placeholder"
109+
placeholder=""
108110
type="text"
109111
value=""
110112
/>
@@ -126,11 +128,12 @@ exports[`renders correctly 1`] = `
126128
donate_third_page.email
127129
</label>
128130
<input
129-
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none bg-white placeholder-gray-500"
131+
autoComplete="off"
132+
className="flex-1 mr-4 p-2 text-sm sm:text-base tracking-normal border-2 border-gray-300 focus:outline-none hover:border-primary-100 transition duration-500 focus:placeholder-transparent bg-white placeholder-gray-500"
130133
id="email"
131134
name="email"
132135
onChange={[Function]}
133-
placeholder="donate_third_page.email_placeholder"
136+
placeholder=""
134137
type="email"
135138
value=""
136139
/>

src/components/images/SocialIcons/FBIcon.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function FBIcon() {
88
height="32.74"
99
fill="none"
1010
viewBox="0 0 18 22"
11-
className="mr-4 "
11+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
1212
>
1313
<path
1414
fill="#fff"

src/components/images/SocialIcons/InstaIcon.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function InstaIcon() {
88
height="32.74"
99
fill="none"
1010
viewBox="0 0 17 22"
11-
className="mr-4"
11+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
1212
>
1313
<path
1414
fill="#fff"

src/components/images/SocialIcons/LinkedInIcon.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function LinkedInIcon() {
88
height="32.74"
99
fill="none"
1010
viewBox="0 0 18 22"
11-
className="mr-4"
11+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
1212
>
1313
<path
1414
fill="#fff"

src/components/images/SocialIcons/TwitterIcon.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function TwitterIcon() {
88
height="32.74"
99
fill="none"
1010
viewBox="0 0 17 22"
11-
className="mr-4"
11+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
1212
>
1313
<path
1414
fill="#fff"

src/components/images/SocialIcons/UtupeIcon.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function UtupeIcon() {
88
height="32.74"
99
fill="none"
1010
viewBox="0 0 17 22"
11-
className="mr-4"
11+
className="mr-4 h-6 w-6 transform hover:scale-125 transition duration-500 ease-out"
1212
>
1313
<path
1414
fill="#fff"

0 commit comments

Comments
 (0)