-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2a21db
commit f3632e8
Showing
12 changed files
with
165 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
html, body {margin:0; padding:0; background-color: floralwhite;} | ||
|
||
body { | ||
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; | ||
} | ||
#root {display:grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr;} | ||
img {grid-area: 2/1/3/2} | ||
.spinner {grid-area: 2/1/3/2; width: 320px; height:240px;} | ||
|
||
#root {display:grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; margin:0; padding:0; min-height:100vh;} | ||
#root > * {padding: 2rem; margin:auto} | ||
figure {grid-area: 2/1/3/2} | ||
|
||
article {grid-area: 1/2/3/3; max-width: 70%} | ||
|
||
h1 {font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;} | ||
|
||
form > * {padding:1rem; border-radius:0.5rem; margin: 0.5rem; font-size: large;} | ||
|
||
footer {grid-area: 3/1/4/3;} | ||
|
||
.spinner {grid-area: 2/1/3/2; background-image: url("./loading.gif"); background-size: 70px; background-position: center; background-repeat: no-repeat; background-color: floralwhite; height: 100%; width: 100%; } | ||
label {display: block;} | ||
figcaption {text-align: center; font-style: italic;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Article = ({ articleText, articleHeadline }) => { | ||
// let searchWord=""; | ||
// if(articleHeadline){searchWord=articleHeadline.toLowerCase()} | ||
return <article><h2>Let me tell you about the {articleHeadline}:</h2>{articleText}</article> | ||
} | ||
export default Article; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const Footer = () => { | ||
return <footer>Made using <a href="https://deepai.org/machine-learning-model/text-generator">text generator</a> and <a href="https://deepai.org/machine-learning-model/text2img">text to image</a> from DeepAI and <a href = "https://www.mediawiki.org/wiki/API:Main_page">MediaWiki</a></footer> | ||
} | ||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const Image = ({ imageUrl, onLoad }) => { | ||
return <img src= {imageUrl} alt="the thing you looked up" onLoad = {onLoad} /> | ||
const Image = ({ imageUrl, onLoad, caption }) => { | ||
return <figure><img src={imageUrl} alt={caption} onLoad={onLoad} id="image"/><figcaption>A typical {caption} going about its business</figcaption></figure>; | ||
} | ||
export default Image; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const Spinner = () => { | ||
return <img src= "./loading.gif" alt="loading" className = "spinner"/> | ||
return <div className ="spinner"></div> | ||
} | ||
export default Spinner; |
File renamed without changes