style.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780
  1. import styled from 'styled-components';
  2. import grid from '../../statics/images/grid.png';
  3. export const BannerWrapper = styled.div`
  4. position: relative;
  5. overflow: hidden;
  6. height: auto;
  7. &:before{
  8. content: '';
  9. position: absolute;
  10. top: 0;
  11. bottom: 0;
  12. left: 0;
  13. right: 0;
  14. z-index: 3;
  15. background-attachment: fixed;
  16. background-image: url(${grid});
  17. }
  18. @keyframes move_wave {
  19. 0% {
  20. transform: translateX(0) translateZ(0) scaleY(1)
  21. }
  22. 50% {
  23. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  24. }
  25. 100% {
  26. transform: translateX(-50%) translateZ(0) scaleY(1)
  27. }
  28. }
  29. .waveWrapper {
  30. overflow: hidden;
  31. position: absolute;
  32. left: 0;
  33. right: 0;
  34. bottom: 0;
  35. top: 0;
  36. margin: auto;
  37. }
  38. .waveWrapperInner {
  39. position: absolute;
  40. width: 100%;
  41. overflow: hidden;
  42. height: 100%;
  43. bottom: -1px;
  44. }
  45. .bgTop {
  46. z-index: 15;
  47. opacity: 0.5;
  48. }
  49. .bgMiddle {
  50. z-index: 10;
  51. opacity: 0.75;
  52. }
  53. .bgBottom {
  54. z-index: 5;
  55. }
  56. .wave{
  57. position: absolute;
  58. left: 0;
  59. width: 200%;
  60. height: 100%;
  61. background-repeat: repeat no-repeat;
  62. background-position: 0 bottom;
  63. transform-origin: center bottom;
  64. }
  65. .waveTop {
  66. background-size: 50% 100px;
  67. }
  68. .waveAnimation .waveTop {
  69. animation: move-wave 3s;
  70. -webkit-animation: move-wave 3s;
  71. -webkit-animation-delay: 1s;
  72. animation-delay: 1s;
  73. }
  74. .waveMiddle {
  75. background-size: 50% 120px;
  76. }
  77. .waveAnimation .waveMiddle {
  78. animation: move_wave 10s linear infinite;
  79. }
  80. .waveBottom {
  81. background-size: 50% 100px;
  82. }
  83. .waveAnimation .waveBottom {
  84. animation: move_wave 15s linear infinite;
  85. }
  86. .waveTop{
  87. background-image: url('${require('../../statics/images/wave-top.png')}');
  88. }
  89. .waveMiddle{
  90. background-image: url('${require('../../statics/images/wave-mid.png')}');
  91. }
  92. .waveBottom{
  93. background-image: url('${require('../../statics/images/wave-bot.png')}');
  94. }
  95. .headertop-down {
  96. position: absolute;
  97. bottom: 80px;
  98. left: 50%;
  99. cursor: pointer;
  100. z-index: 90;
  101. animation: float 2s linear infinite;
  102. i{
  103. font-size: 32px;
  104. color: #fff;
  105. -ms-transform: scale(1.5,1);
  106. -webkit-transform: scale(1.5,1);
  107. transform: scale(1.5,1)
  108. }
  109. }
  110. @-webkit-keyframes float {
  111. 0% {
  112. -webkit-transform: translateY(0);
  113. transform: translateY(0)
  114. }
  115. 50% {
  116. -webkit-transform: translateY(-6px);
  117. transform: translateY(-6px)
  118. }
  119. 100% {
  120. -webkit-transform: translateY(0);
  121. transform: translateY(0)
  122. }
  123. }
  124. @keyframes float {
  125. 0% {
  126. -webkit-transform: translateY(0);
  127. -ms-transform: translateY(0);
  128. transform: translateY(0)
  129. }
  130. 50% {
  131. -webkit-transform: translateY(-6px);
  132. -ms-transform: translateY(-6px);
  133. transform: translateY(-6px)
  134. }
  135. 100% {
  136. -webkit-transform: translateY(0);
  137. -ms-transform: translateY(0);
  138. transform: translateY(0)
  139. }
  140. }
  141. @media (max-width: 768px) {
  142. .waveWrapper{
  143. display:none
  144. }
  145. }
  146. `;
  147. export const Center = styled.div`
  148. width: 100%;
  149. height: 550px;
  150. height:1235px;
  151. margin: 0;
  152. padding: 0;
  153. background-position: top center;
  154. background-repeat: no-repeat;
  155. background-attachment: fixed;
  156. background-size: cover;
  157. z-index: -1;
  158. `;
  159. export const Focusinfo = styled.div`
  160. position: relative;
  161. max-width: 800px;
  162. padding: 0 10px;
  163. top: 49.3%;
  164. left: 50%;
  165. transform: translate(-50%,-50%);
  166. -webkit-transform: translate(-50%,-50%);
  167. text-align: center;
  168. z-index: 99;
  169. -webkit-transition: .4s ease all;
  170. -moz-transition: .4s ease all;
  171. -o-transition: .4s ease all;
  172. transition: .4s ease all;
  173. @media (max-width: 768px){
  174. display: none;
  175. }
  176. .header-tou{
  177. img{
  178. box-shadow: inset 0 0 10px #000;
  179. padding: 5px;
  180. opacity: 1;
  181. transform: rotate(0);
  182. transition: all ease 1s;
  183. width: 130px;
  184. height: 130px;
  185. border-radius: 100%;
  186. }
  187. }
  188. .header-tou img:hover {
  189. transform: rotate(360deg);
  190. }
  191. .glitch{
  192. font-family: 'Ubuntu',sans-serif;
  193. position: relative;
  194. color: #fff;
  195. mix-blend-mode: lighten;
  196. margin: auto;
  197. font-size: 80px;
  198. text-transform: uppercase;
  199. font-weight: bold;
  200. }
  201. .glitch:before, .glitch:after {
  202. content: attr(data-text);
  203. position: absolute;
  204. top: 0;
  205. width: 100%;
  206. background: rgba(0,0,0,0);
  207. clip: rect(0,0,0,0);
  208. }
  209. .glitch:before {
  210. left: -1px;
  211. text-shadow: 1px 0 #ff3f1a;
  212. }
  213. .glitch:after {
  214. left: 1px;
  215. text-shadow: -1px 0 #00a7e0;
  216. }
  217. .glitch:hover:before {
  218. text-shadow: 4px 0 #ff3f1a;
  219. animation: glitch-loop-1 .8s infinite ease-in-out alternate-reverse;
  220. }
  221. .glitch:hover:after {
  222. text-shadow: -5px 0 #00a7e0;
  223. animation: glitch-loop-2 .8s infinite ease-in-out alternate-reverse;
  224. }
  225. @-webkit-keyframes glitch-loop-1 {
  226. 0% {
  227. clip: rect(36px,9999px,9px,0)
  228. }
  229. 25% {
  230. clip: rect(25px,9999px,99px,0)
  231. }
  232. 50% {
  233. clip: rect(50px,9999px,102px,0)
  234. }
  235. 75% {
  236. clip: rect(30px,9999px,92px,0)
  237. }
  238. 100% {
  239. clip: rect(91px,9999px,98px,0)
  240. }
  241. }
  242. @keyframes glitch-loop-1 {
  243. 0% {
  244. clip: rect(36px,9999px,9px,0)
  245. }
  246. 25% {
  247. clip: rect(25px,9999px,99px,0)
  248. }
  249. 50% {
  250. clip: rect(50px,9999px,102px,0)
  251. }
  252. 75% {
  253. clip: rect(30px,9999px,92px,0)
  254. }
  255. 100% {
  256. clip: rect(91px,9999px,98px,0)
  257. }
  258. }
  259. @-webkit-keyframes glitch-loop-2 {
  260. 0% {
  261. top: -1px;
  262. left: 1px;
  263. clip: rect(65px,9999px,119px,0)
  264. }
  265. 25% {
  266. top: -6px;
  267. left: 4px;
  268. clip: rect(79px,9999px,19px,0)
  269. }
  270. 50% {
  271. top: -3px;
  272. left: 2px;
  273. clip: rect(68px,9999px,11px,0)
  274. }
  275. 75% {
  276. top: 0;
  277. left: -4px;
  278. clip: rect(95px,9999px,53px,0)
  279. }
  280. 100% {
  281. top: -1px;
  282. left: -1px;
  283. clip: rect(31px,9999px,149px,0)
  284. }
  285. }
  286. @keyframes glitch-loop-2 {
  287. 0% {
  288. top: -1px;
  289. left: 1px;
  290. clip: rect(65px,9999px,119px,0)
  291. }
  292. 25% {
  293. top: -6px;
  294. left: 4px;
  295. clip: rect(79px,9999px,19px,0)
  296. }
  297. 50% {
  298. top: -3px;
  299. left: 2px;
  300. clip: rect(68px,9999px,11px,0)
  301. }
  302. 75% {
  303. top: 0;
  304. left: -4px;
  305. clip: rect(95px,9999px,53px,0)
  306. }
  307. 100% {
  308. top: -1px;
  309. left: -1px;
  310. clip: rect(31px,9999px,149px,0)
  311. }
  312. }
  313. .header-info {
  314. position: relative;
  315. width: 70%;
  316. margin: auto;
  317. font-size: 16px;
  318. color: #eaeadf;
  319. background: rgba(0,0,0,.5);
  320. padding: 15px;
  321. margin-top: 22px;
  322. letter-spacing: 0;
  323. line-height: 30px;
  324. border-radius: 10px;
  325. box-sizing: initial;
  326. white-space: nowrap;
  327. }
  328. .header-info:before {
  329. content: "";
  330. position: absolute;
  331. top: -30px;
  332. left: 50%;
  333. margin-left:-15px;
  334. border-width: 15px;
  335. border-style: solid;
  336. border-color: transparent transparent rgba(0,0,0,.5) transparent;
  337. }
  338. .header-info p {
  339. margin: 0;
  340. font-family: 'Ubuntu',sans-serif;
  341. font-weight: 700;
  342. span{
  343. margin:0 10px;
  344. }
  345. }
  346. .top-social_v2 {
  347. height: 35px;
  348. margin-bottom:-10px;
  349. list-style: none;
  350. display: inline-block;
  351. }
  352. .top-social_v2 li {
  353. height: 35px;
  354. float: left;
  355. margin:0 6px;
  356. cursor: url(${require('../../statics/images/ayuda.cur')}),auto;
  357. position: relative;
  358. }
  359. .top-social_v2 li {
  360. .img-box{
  361. position: absolute;
  362. border-radius: 6px;
  363. transition: .7s all ease;
  364. width: 121px;
  365. height: 121px;
  366. padding: 4px;
  367. background: rgba(0, 0, 0, .4);
  368. top: 40px;
  369. left: 50%;
  370. transform: translate3d(0, 50px, 0) translateX(-50%);
  371. opacity: 0;
  372. &:before {
  373. content: "";
  374. position: absolute;
  375. top: -30px;
  376. left: 50%;
  377. margin-left: -15px;
  378. border-width: 15px;
  379. border-style: solid;
  380. border-color: transparent transparent rgba(0, 0, 0, .4) transparent;
  381. }
  382. img{
  383. width: 100%;
  384. height: 100%;
  385. }
  386. }
  387. .text-box{
  388. position: absolute;
  389. border-radius: 4px;
  390. transition: .7s all ease;
  391. background: rgba(0, 0, 0, .4);
  392. top: 40px;
  393. left: 50%;
  394. transform: translate3d(0, 50px, 0) translateX(-50%);
  395. opacity: 0;
  396. &:before {
  397. content: "";
  398. position: absolute;
  399. top: -30px;
  400. left: 50%;
  401. margin-left: -15px;
  402. border-width: 15px;
  403. border-style: solid;
  404. border-color: transparent transparent rgba(0, 0, 0, .4) transparent;
  405. }
  406. p{
  407. color: #ffffff;
  408. font-weight: normal;
  409. font-size: 12px;
  410. padding: 2px 5px;
  411. }
  412. }
  413. }
  414. .top-social_v2 li:hover .img-box{
  415. transform: translate3d(0, 16px, 0) translateX(-50%);
  416. opacity: 1;
  417. visibility: visible;
  418. }
  419. .top-social_v2 li:hover .text-box{
  420. transform: translate3d(0, 16px, 0) translateX(-50%);
  421. opacity: 1;
  422. visibility: visible;
  423. }
  424. .top-social_v2 li:hover .text-box{
  425. display:block;
  426. }
  427. .top-social_v2 img {
  428. height: 35px;
  429. width: 35px;
  430. padding: 6px;
  431. background: 0 0;
  432. }
  433. .flipx {
  434. -moz-transform: scaleX(-1);
  435. -webkit-transform: scaleX(-1);
  436. -o-transform: scaleX(-1);
  437. transform: scaleX(-1);
  438. filter: FlipH;
  439. }
  440. `;
  441. export const HomeWrapper = styled.div`
  442. width:100%;
  443. `;
  444. export const MainWrapper = styled.div`
  445. width:100%;
  446. max-width: 900px;
  447. padding: 0 10px;
  448. margin-left: auto;
  449. margin-right: auto;
  450. background-color: rgba(255,255,255,.8);
  451. animation: main 1s;
  452. @keyframes main {
  453. 0% {
  454. opacity: 0;
  455. transform: translateY(50px)
  456. }
  457. 100% {
  458. opacity: 1;
  459. transform: translateY(0)
  460. }
  461. }
  462. `;
  463. export const BlogList = styled.div`
  464. width: 100%;
  465. .blog-item{
  466. width: 100%;
  467. height: 300px;
  468. position: relative;
  469. margin: 30px 0;
  470. border-radius: 10px;
  471. background-color: rgba(255,255,255,0);
  472. box-shadow: 0 1px 20px -6px rgba(0,0,0,.5);
  473. opacity: 0;
  474. transition: box-shadow .3s ease;
  475. @media (min-width: 768px){
  476. &:hover{
  477. box-shadow: 0 5px 10px 5px rgba(110,110,110,.4);
  478. }
  479. &:hover img{
  480. transform: scale(1.1);
  481. }
  482. }
  483. .post-thumb {
  484. float: right;
  485. width: 55%;
  486. a{
  487. height: 300px;
  488. position: relative;
  489. display: block;
  490. background-repeat: no-repeat;
  491. background-size: cover;
  492. overflow: hidden;
  493. border-radius: 0 10px 10px 0;
  494. img{
  495. width: 100%;
  496. height: 100%;
  497. object-fit: cover;
  498. pointer-events: none;
  499. transition: all .6s;
  500. filter: blur(0px);
  501. }
  502. }
  503. }
  504. }
  505. .post-content-wrap {
  506. position: relative;
  507. display: inline-block;
  508. float: right;
  509. padding-right: 30px;
  510. padding-left: 0;
  511. width: 40%;
  512. margin: 30px 10px 0;
  513. .post-date, .post-meta, .post-meta a {
  514. color: #888;
  515. font-size: 14px;
  516. }
  517. i {
  518. margin-right: 5px;
  519. color: #989898;
  520. font-size: 14px;
  521. }
  522. .post-title{
  523. display:block;
  524. margin:18px 0;
  525. h3 {
  526. text-overflow: ellipsis;
  527. display: -webkit-box;
  528. -webkit-box-orient: vertical;
  529. -webkit-line-clamp: 2;
  530. overflow: hidden;
  531. word-wrap: break-word;
  532. font-size: 16px;
  533. font-weight: bold;
  534. color: #504e4e;
  535. transition: color .2s ease-out,border .2s ease-out,opacity .2s ease-out;
  536. }
  537. &:hover h3{
  538. color: #FE9600;
  539. }
  540. }
  541. .comments-number{
  542. margin: 0 10px;
  543. }
  544. .float-content {
  545. position: relative;
  546. width: 100%;
  547. right: 0;
  548. margin: 0;
  549. padding: 0;
  550. z-index: 50;
  551. color: rgba(0,0,0,.66);
  552. p{
  553. display: -webkit-box;
  554. -webkit-box-orient: vertical;
  555. -webkit-line-clamp: 3;
  556. height: 69px;
  557. overflow: hidden;
  558. margin:16px 0 22px 0;
  559. font-size: 15px;
  560. color: rgba(0,0,0,.66);
  561. line-height:23px;
  562. }
  563. i {
  564. font-size: 25px;
  565. color: #666;
  566. &:hover{
  567. color: #FE9600;
  568. }
  569. }
  570. }
  571. }
  572. .right{
  573. .post-thumb {
  574. float: left;
  575. a {
  576. border-radius: 10px 0 0 10px;
  577. }
  578. }
  579. .post-content-wrap {
  580. float: left;
  581. padding-left: 30px;
  582. padding-right: 0;
  583. text-align: right;
  584. margin: 30px 10px 10px 0;
  585. }
  586. }
  587. .post-list-show {
  588. animation: post-list-show .5s;
  589. -webkit-animation: post-list-show .5s;
  590. opacity: 1;
  591. }
  592. @keyframes post-list-show {
  593. 0% {
  594. opacity: 0;
  595. -webkit-transform: translateY(80px);
  596. transform: translateY(80px)
  597. }
  598. 100% {
  599. opacity: 1;
  600. -webkit-transform: translateY(0);
  601. transform: translateY(0)
  602. }
  603. }
  604. @media (max-width: 768px){
  605. .blog-item{
  606. margin: 0;
  607. height: auto;
  608. padding: 0;
  609. border: 0;
  610. box-shadow: none;
  611. .post-thumb{
  612. width: 100%;
  613. left: 0;
  614. clear: initial;
  615. a{
  616. height: 210px;
  617. border-radius: 10px;
  618. }
  619. }
  620. .post-content-wrap{
  621. clear: initial;
  622. width: 100%;
  623. left: 0;
  624. text-align: left;
  625. margin: 0;
  626. padding: 20px;
  627. float: none;
  628. box-shadow: none;
  629. border-top: 0;
  630. .post-title{
  631. margin:10px 0;
  632. font-size: 14px;
  633. }
  634. .float-content{
  635. p{
  636. margin:10px 0;
  637. font-size: 14px;
  638. }
  639. }
  640. }
  641. }
  642. }
  643. `;
  644. export const FeatureWrapper = styled.div`
  645. @media (max-width: 768px){
  646. display: none;
  647. }
  648. .top-feature-row{
  649. .top-feature-item{
  650. position: relative;
  651. height: 160px;
  652. box-shadow: 1px 1px 3px rgba(0,0,0,.3);
  653. overflow: hidden;
  654. border-radius: 10px;
  655. a{
  656. display:block;
  657. height:100%;
  658. }
  659. .img-box{
  660. transition: all .35s ease-in-out;
  661. transform: scale(1);
  662. height:100%;
  663. img{
  664. width:100%;
  665. height:100%;
  666. }
  667. }
  668. &:hover .img-box{
  669. transform: scale(1.2);
  670. }
  671. .info{
  672. position: absolute;
  673. top: 0;
  674. bottom: 0;
  675. left: 0;
  676. right: 0;
  677. text-align: center;
  678. backface-visibility: hidden;
  679. background: #333;
  680. background: rgba(0,0,0,.6);
  681. visibility: hidden;
  682. opacity: 0;
  683. transition: all .35s ease-in-out;
  684. h3{
  685. text-transform: uppercase;
  686. color: #fff;
  687. text-align: center;
  688. font-size: 17px;
  689. padding: 10px;
  690. background: #111;
  691. margin: 40px 0 0;
  692. transition: all .35s ease-in-out;
  693. transform: translateX(-100%);
  694. }
  695. p{
  696. font-style: italic;
  697. font-size: 12px;
  698. position: relative;
  699. color: #bbb;
  700. padding:0 20px;
  701. text-align: center;
  702. transition: all .35s .1s linear;
  703. transform: translateX(100%);
  704. margin-top:15px;
  705. height:40px;
  706. line-height:20px;
  707. }
  708. }
  709. &:hover .info{
  710. visibility: visible;
  711. opacity: 1;
  712. h3{
  713. transform: translateX(0);
  714. }
  715. p{
  716. transform: translateX(0);
  717. }
  718. }
  719. }
  720. }
  721. `;
  722. export const FeatureTitle = styled.div`
  723. width: 100%;
  724. height: auto;
  725. margin-top: 55px;
  726. display: inline-block;
  727. h1{
  728. color: #666;
  729. font-size: 16px;
  730. font-weight: bold;
  731. margin-top: 10px;
  732. line-height:24px;
  733. padding-bottom: 5px;
  734. margin-bottom: 30px;
  735. border-bottom: 1px dashed #ececec;
  736. }
  737. @media( max-width:768px ){
  738. margin-top: 15px;
  739. h1{
  740. margin-bottom: 15px;
  741. }
  742. }
  743. `;
  744. export const HomeList = styled.div`
  745. width: 100%;
  746. `;