├── .npmignore ├── public ├── gif.gif ├── favicon.ico └── index.html ├── src ├── index.js ├── docs │ ├── components │ │ ├── title │ │ │ └── index.js │ │ ├── hello │ │ │ ├── index.css │ │ │ └── index.js │ │ ├── example3 │ │ │ ├── index.css │ │ │ ├── index.js │ │ │ └── block.js │ │ ├── example1 │ │ │ ├── index.css │ │ │ ├── index.js │ │ │ └── block.js │ │ ├── footer │ │ │ └── index.js │ │ ├── example2 │ │ │ ├── index.css │ │ │ ├── block.js │ │ │ └── index.js │ │ ├── navbar │ │ │ └── index.js │ │ ├── methods │ │ │ └── index.js │ │ ├── usage │ │ │ └── index.js │ │ └── props │ │ │ └── index.js │ ├── App.js │ └── index.css └── react-advanced-news-ticker │ └── index.js ├── .gitignore ├── package.json ├── README.md ├── dist └── index.js └── LICENSE /.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | docs 3 | public 4 | -------------------------------------------------------------------------------- /public/gif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmetcanaydemir/react-advanced-news-ticker/HEAD/public/gif.gif -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmetcanaydemir/react-advanced-news-ticker/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import App from "./docs/App"; 4 | 5 | ReactDOM.render( 6 | 7 | 8 | , 9 | document.getElementById("root") 10 | ); 11 | -------------------------------------------------------------------------------- /src/docs/components/title/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | function Title({ title, id }) { 4 | return ( 5 |
6 |

{title}

7 |
8 | ); 9 | } 10 | 11 | export default Title; 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | node_modules 3 | 4 | # production 5 | build 6 | 7 | # misc 8 | .DS_Store 9 | .env.local 10 | .env.development.local 11 | .env.test.local 12 | .env.production.local 13 | 14 | npm-debug.log* 15 | yarn-debug.log* 16 | yarn-error.log* 17 | package-lock.json 18 | -------------------------------------------------------------------------------- /src/docs/components/hello/index.css: -------------------------------------------------------------------------------- 1 | /* hello */ 2 | #hello { 3 | width: 100%; 4 | padding-top: 150px; 5 | padding-bottom: 150px; 6 | } 7 | 8 | #hello h1 { 9 | font-size: 45px; 10 | font-weight: 600; 11 | color: #319795; 12 | } 13 | 14 | #hello h2 { 15 | color: #c0c0c0; 16 | font-weight: 400; 17 | } 18 | 19 | /* nt-title */ 20 | 21 | #nt-title li { 22 | list-style: none; 23 | } 24 | #nt-title li div { 25 | font-size: 28px; 26 | color: #4e4e4e; 27 | white-space: nowrap; 28 | overflow: hidden; 29 | text-overflow: ellipsis; 30 | } 31 | -------------------------------------------------------------------------------- /src/docs/components/example3/index.css: -------------------------------------------------------------------------------- 1 | /* nt-example3 */ 2 | 3 | #nt-example3 { 4 | margin: 80px auto 0; 5 | } 6 | 7 | #nt-example3-container { 8 | text-align: center; 9 | } 10 | 11 | #nt-example3-container i { 12 | font-size: 36px; 13 | margin: 8px; 14 | cursor: pointer; 15 | -webkit-transition: all 0.1s ease-in-out; 16 | -moz-transition: all 0.1s ease-in-out; 17 | -ms-transition: all 0.1s ease-in-out; 18 | -o-transition: all 0.1s ease-in-out; 19 | transition: all 0.1s ease-in-out; 20 | } 21 | 22 | #nt-example3-container i:hover { 23 | color: #333; 24 | } 25 | 26 | #nt-example3 li { 27 | color: #4e4e4e; 28 | background: #f2f2f2; 29 | overflow: hidden; 30 | height: 80px; 31 | padding: 10px; 32 | line-height: 60px; 33 | font-size: 40px; 34 | text-transform: uppercase; 35 | list-style: none; 36 | } 37 | 38 | #nt-example3 li:hover { 39 | background: #fff; 40 | } 41 | -------------------------------------------------------------------------------- /src/docs/App.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import Example1Block from "./components/example1/block"; 3 | import Example2Block from "./components/example2/block"; 4 | import Example3Block from "./components/example3/block"; 5 | import Footer from "./components/footer"; 6 | import Hello from "./components/hello"; 7 | import NavBar from "./components/navbar"; 8 | import Usage from "./components/usage"; 9 | import "codemirror/keymap/sublime"; 10 | import "codemirror/theme/monokai.css"; 11 | import "./index.css"; 12 | import Methods from "./components/methods"; 13 | import Props from "./components/props"; 14 | 15 | function App() { 16 | return ( 17 | <> 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |