Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
f861d912
Commit
f861d912
authored
Mar 19, 2021
by
Karishma Chadha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cat lives and images
parent
419a245d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
31 deletions
+29
-31
src/components/cats/cats.jsx
src/components/cats/cats.jsx
+29
-31
static/images/cats/Cat13.png
static/images/cats/Cat13.png
+0
-0
static/images/cats/Cat14.png
static/images/cats/Cat14.png
+0
-0
static/images/cats/cat-meme.jpg
static/images/cats/cat-meme.jpg
+0
-0
static/images/cats/cat-meme2.jpg
static/images/cats/cat-meme2.jpg
+0
-0
No files found.
src/components/cats/cats.jsx
View file @
f861d912
...
@@ -55,35 +55,33 @@ const catImages = [
...
@@ -55,35 +55,33 @@ const catImages = [
/* eslint-disable max-len */
/* eslint-disable max-len */
const
mysteryFacts
=
[
const
mysteryFacts
=
[
'
How small can they make a t-shirt?
'
,
'
I became a pet after retiring from NASA
'
,
'
Why do hotdogs come in packages of 8?
'
,
'
I was cursed to take this form by an evil wizard
'
,
'
Who let the dogs out?
'
,
'
I
\'
m a cat burglar by night
'
,
'
Why are cats so cute?
'
,
'
You should feed me now or I
\'
ll be late to my bowling league
'
,
'
Where is the other sock?
'
,
'
You think you know, but you have no idea. This is the diary of Scratch Cat...
'
,
'
Why is the sky blue?
'
,
'
I
\'
m a criminal paw-secutor.
'
,
'
Why does everyday end in y?
'
,
'
By night, I put on a human costume and fight crime.
'
,
'
How many licks does it take to get to the center of a lollipop?
'
,
'
My grandma was the inspiration for Warrior Cats.
'
,
'
How many bites does it take to get to the center of a corndog?
'
,
'
You think I
\'
m running back and forth for no reason, but I
\'
ve got a marathon in June I
\'
m training for.
'
,
'
How many hours can a cat sleep in one day?
'
,
'
Can you please put on the movie Ratatouille
'
,
'
Am I hungry?
'
,
'
In my secret lab I
\'
ve almost perfected prosthetic opposable thumbs
'
,
'
What should I eat?
'
,
'
I
\'
m late for my audition for Cats: The Musical.
'
,
'
Who will make me a sandwich?
'
,
'
Actually I
\'
m a famous opera meower.
'
,
'
Where are my glasses?
'
,
'
My purrs are ancient healing magic.
'
,
'
Why did I walk into this room?
'
,
'
I purr because I contain a small motor.
'
,
'
Where is the bathroom?
'
,
'
I
\'
m not trying to stab you with my claws, I
\'
m practicing to be on The Great British Bakeoff
'
,
'
Where is the mop?
'
,
'
My name is Alexander Hameowlton.
'
,
'
Why are ants so strong?
'
,
'
When my humans go to school, I host tea parties with the neighborhood pets
'
,
'
Why do I wake up before my alarm goes off?
'
,
'
When I scratch at the furniture it
\'
s my way of telling you it
\'
s time for a new couch
'
,
'
Where do almonds come from?
'
,
'
I knock things off the table, because things on the table are my mortal enemies.
'
,
'
When is the sky blue?
'
,
'
When I sleep, I dream about three things: fish, catnip, and you. But mostly fish.
'
,
'
Wherefore art thou Romeo?
'
,
'
This is my angry face.
'
,
'
What was the Scratch Cat like as a kitten?
'
,
'
I
\'
m a cat during the day, but I
\'
m a loaf ... also during the day.
'
,
'
What is the plural of Moose?
'
,
'
At night I closely study the word "homeowner" because the word "meow" is in it.
'
,
'
Whose chair is that?
'
,
'
My journal is filled with so many cat puns, I almost cat believe it.
'
,
'
Who paid for that floor?
'
,
'
I
\'
m gonna change the world super soon, quick 3-hour power nap first
'
,
'
What is my cat
\'
s favorite color?
'
,
'
If Scratch code happened in real life, "Move 10" would make me just sit there and look at you
'
'
What is that cat
\'
s favorite color?
'
,
'
Does the "close door" button on an elevator really work?
'
];
];
/* eslint-enable max-len */
/* eslint-enable max-len */
...
@@ -124,7 +122,7 @@ class Cats extends React.Component {
...
@@ -124,7 +122,7 @@ class Cats extends React.Component {
render
()
{
render
()
{
return
(<
React
.
Fragment
>
return
(<
React
.
Fragment
>
<
div
onClick=
{
this
.
handleCatsClick
}
>
<
div
onClick=
{
this
.
handleCatsClick
}
>
<
a
>
{
'
Mystery
'
}
</
a
>
<
a
>
{
'
Secret Lives
'
}
</
a
>
</
div
>
</
div
>
<
Modal
<
Modal
useStandardSizes
useStandardSizes
...
@@ -133,7 +131,7 @@ class Cats extends React.Component {
...
@@ -133,7 +131,7 @@ class Cats extends React.Component {
onRequestClose=
{
this
.
handleClose
}
onRequestClose=
{
this
.
handleClose
}
>
>
<
div
className=
"cats-modal-header modal-header"
>
<
div
className=
"cats-modal-header modal-header"
>
<
ModalTitle
title=
{
'
Hmmm... 🤔
'
}
/>
<
ModalTitle
title=
{
'
Shhh... 🤫
'
}
/>
</
div
>
</
div
>
<
div
className=
"cats-modal-content modal-content"
>
<
div
className=
"cats-modal-content modal-content"
>
<
p
>
{
this
.
pickRandomFact
()
}
</
p
>
<
p
>
{
this
.
pickRandomFact
()
}
</
p
>
...
...
static/images/cats/Cat13.png
0 → 100644
View file @
f861d912
1.61 MB
static/images/cats/Cat14.png
0 → 100644
View file @
f861d912
1.51 MB
static/images/cats/cat-meme.jpg
0 → 100644
View file @
f861d912
87.3 KB
static/images/cats/cat-meme2.jpg
0 → 100644
View file @
f861d912
27 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment