diff --git a/public/images/peoples_lab.svg b/public/images/peoples_lab.svg index f44d23e0..5b846b5c 100644 --- a/public/images/peoples_lab.svg +++ b/public/images/peoples_lab.svg @@ -24,15 +24,15 @@ inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" - inkscape:zoom="1" - inkscape:cx="207" - inkscape:cy="336" + inkscape:zoom="0.70710678" + inkscape:cx="203.64675" + inkscape:cy="567.09964" inkscape:window-width="1280" inkscape:window-height="731" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" - inkscape:current-layer="g2" + inkscape:current-layer="svg1" showgrid="false" /> @@ -337,30 +337,6 @@ offset="1" id="stop21" /> - - - - - - - - @@ -565,7 +541,7 @@ offset="0" id="stop103041" /> @@ -578,30 +554,6 @@ x2="119.1357" y2="166.1172" gradientUnits="userSpaceOnUse" /> - - - - - - - - + x1="369.13211" + y1="168.02052" + x2="369.04922" + y2="164.33627" /> - - - - + + + + + + + + + + + + + + + sodipodi:insensitive="true" + style="display:inline"> + d="m 54.471077,71.072355 c 0,0 -5.933967,3.178862 -6.993173,3.602436 -1.059205,0.423573 -2.119357,6.357483 -2.119357,6.357483 0,0 -2.87e-4,0.212223 -0.847978,1.271967 -0.84769,1.059748 -4.237538,6.780941 -4.237538,7.416574 -7.16821,10.639235 -0.249001,27.292905 2.9297,34.710055 3.178697,7.41715 0,11.65588 0,11.65588 l 1.695368,2.33106 c 0,0 4.669759,-8.02391 4.669759,-10.1434 0,-2.11949 -5.268861,-12.06428 -5.692978,-12.91196 -0.424116,-0.8477 -0.212106,-1.05964 -2.331058,-4.45042 -2.118954,-3.39074 0,-15.045358 0,-17.800479 0,-2.639732 8.943279,-10.138335 9.692942,-12.253342 0.185979,-0.06711 0.452267,-0.15212 0.843273,-0.256392 1.097637,-0.292718 5.927001,-1.536732 6.073452,-1.829445 0.146448,-0.292718 -0.07292,-1.097903 -0.07292,-1.097903 0,0 -0.08602,0.03534 -0.241103,0.07762 l -0.950888,-1.736532 0.331076,1.850615 c -0.157665,0.01694 -0.333665,0.02823 -0.529252,0.02823 -0.0052,0 -0.01169,4.97e-4 -0.01705,5.88e-4 l -0.296969,-0.08644 -0.329312,-0.366359 -0.436926,0.655095 c -0.0543,0.01413 -0.112023,0.03012 -0.168184,0.04528 l -0.455744,-0.334017 -0.384002,0.575708 c -0.02808,0.0085 -0.05598,0.01672 -0.08409,0.02529 l -0.22699,-0.455156 -0.22699,0.595701 c -0.05862,0.0185 -0.110981,0.03565 -0.168772,0.0541 l -0.372828,-0.429869 -0.07292,0.548657 0.04058,0.01235 c -0.749937,0.245015 -1.307274,0.439611 -1.363116,0.459272 0.4509,-0.458406 1.030175,-0.938166 1.620685,-1.420157 l 0.222873,0.196411 0.06175,-0.432222 c 0.07115,-0.05822 0.139439,-0.115923 0.209937,-0.174065 l 0.386941,0.386942 V 77.04349 c 0.04662,-0.03957 0.09773,-0.07993 0.143486,-0.119375 l 0.661564,0.571591 -0.214053,-0.97735 c 0.02504,-0.02336 0.05136,-0.0467 0.07586,-0.06998 l 0.613931,0.64451 -0.29344,-0.966765 c 0.02972,-0.03145 0.05397,-0.06225 0.08233,-0.0935 0.276474,0.259286 0.82365,0.758625 0.796229,0.621576 -0.02423,-0.121073 -0.23102,-0.675453 -0.396351,-1.112016 0.08136,-0.123436 0.152122,-0.245197 0.199351,-0.363419 0.04089,0.01569 0.07567,0.02885 0.12408,0.04822 0.365848,0.146356 1.2802,1.755938 1.2802,1.755938 0,0 0.03669,-0.402292 -0.365771,-1.060855 C 56.958626,75.303417 56.405505,74.579702 56.337582,74.491322 56.034817,72.844549 54.47109,71.07236 54.47109,71.07236 Z m -2.483365,8.274548 -0.636277,0.935599 c 0.101241,-0.29397 0.334319,-0.609249 0.636277,-0.935599 z" /> + style="opacity:0.0481931;fill:#ffaacc;stroke-width:0.301085;stroke-miterlimit:0" + d="m 63.080818,36.399344 a 7.4739308,14.460315 0 0 0 -4.10993,2.419266 v 24.081518 a 7.4739308,14.460315 0 0 0 4.10993,2.419854 7.4739308,14.460315 0 0 0 3.551863,-1.760642 V 38.139993 a 7.4739308,14.460315 0 0 0 -3.551863,-1.740649 z" /> @@ -1558,80 +1556,360 @@ id="path146" sodipodi:nodetypes="cccccc" /> + + + + + + + + id="g90" + transform="matrix(0.82289645,0,0,0.82289645,11.19772,37.237875)" + inkscape:label="unmasked" + style="display:inline" + sodipodi:insensitive="true"> + + + + + + + - - + id="g51" + style="display:inline;mix-blend-mode:normal" + transform="matrix(2.5315377,-1.6192625,1.6192625,2.5315377,-1136.3762,344.19004)"> + + + + + + + + + transform="matrix(0.73644121,0.47105426,-0.53688965,0.83936755,185.6395,-152.2614)"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + id="g13"> + + + + + + - - - - - - + + id="g48"> + style="opacity:0.757135;fill:url(#linearGradient108);stroke-width:0.529167;stroke-miterlimit:0" + d="m 52.513614,156.03038 c 0,0 3.692426,4.8229 6.934358,8.73433 10.876062,2.33264 18.555901,8.38017 18.577176,12.17037 0.03343,5.95552 -18.503867,17.2369 -23.414738,15.60026 -2.986528,-0.99532 -1.086309,-12.72791 -3.487864,-21.72042 -2.704703,-3.73641 -6.068938,-8.87051 -6.068938,-8.87051 1.166451,-3.00391 3.901036,-4.94914 7.460006,-5.91403 z" + id="path16" + sodipodi:nodetypes="ccssccc" /> - + id="path93" + style="opacity:0.757135;fill:url(#linearGradient93);stroke-width:0.529167;stroke-miterlimit:0" + d="m 50.303194,156.90909 c -1.743352,0.70072 -3.013842,1.67673 -3.794922,2.94141 0.782245,1.18482 4.32847,6.43958 6.575712,9.54403 0.173823,0.23959 0.302248,0.50902 0.378907,0.79492 1.30958,4.90366 1.407159,10.23384 1.603515,14.36914 0.09818,2.06765 0.228611,3.84766 0.451172,4.94727 0.07668,0.37886 0.144202,0.52117 0.210938,0.69726 0.439277,-0.0221 1.86201,-0.1223 3.759765,-0.84179 2.215797,-0.84007 4.878616,-2.21753 7.376953,-3.81836 2.498338,-1.60084 4.846486,-3.43761 6.466797,-5.11133 1.620312,-1.67372 2.272767,-3.25389 2.271485,-3.48242 -0.0015,-0.26675 -1.201859,-2.59175 -4.177735,-4.65625 -2.975876,-2.0645 -7.353519,-4.0593 -12.486328,-5.16016 -0.53199,-0.11383 -1.010154,-0.40348 -1.357422,-0.82226 -2.730813,-3.29475 -6.333182,-8.17347 -7.278837,-9.40146 z" + sodipodi:nodetypes="ccccsscsssssccc" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + style="opacity:1;fill:#5fd38d;fill-opacity:1;stroke:none;stroke-width:0.599862;stroke-miterlimit:0;stroke-dasharray:none" + d="m 55.870443,178.08205 c 0,0 14.09414,-2.96007 16.168202,-0.681 2.074064,2.27906 -0.927776,4.97544 -0.927776,4.97544 0,0 -13.135584,8.34625 -14.878981,7.75253 -1.743402,-0.59373 -0.983659,-10.30192 -0.361445,-12.04697 z" + id="path49" + sodipodi:nodetypes="cscsc" /> + id="path4-8" + style="display:inline;fill:url(#linearGradient5-5);stroke-width:0.530532;stroke-miterlimit:0" + d="m 109.59979,161.54253 c -2.0916,0.0625 -3.99588,0.97099 -5.46242,3.11464 0,0 -0.48321,12.85498 -5.125594,15.95035 -3.416052,2.2777 -14.958942,5.12177 -26.773836,10.15989 -2.32279,-3.54345 -20.431033,-3.52609 -21.501547,-1.32909 -0.8332,1.70996 -0.737616,6.32066 -3.129752,6.86455 -2.392139,0.54386 0.632121,6.57431 0.632121,6.57431 l 0.907256,0.0126 2.607812,-0.34817 7.689963,-0.0252 c 2.400334,2.47625 12.467384,1.0741 12.467384,1.0741 h 49.572353 c 0,0 7.27846,-23.43472 6.24755,-28.0771 -0.8054,-3.62687 -10.66127,-14.19406 -18.13129,-13.97088 z" + sodipodi:nodetypes="scscssccccccss" /> - - - - - + style="display:inline;fill:url(#linearGradient23-7);fill-opacity:1;stroke-width:0.530532;stroke-miterlimit:0" + d="m 6.0146431,187.26815 c 6.5705849,-9.05514 2.1319888,-4.63154 8.4060049,-7.97779 6.274007,-3.34625 25.228558,-4.1838 28.146278,-7.83142 0.68168,-0.8522 2.217637,-4.89839 3.427427,-5.87534 1.20873,-0.9761 2.09097,1.1171 3.52978,0.16508 3.284877,-2.1735 6.729477,-4.23883 8.725304,-4.86765 1.308666,-0.41232 2.539058,-0.2406 2.539058,-0.2406 0,0 1.601573,-0.91201 2.98757,0.55061 0.10439,0.11017 1.062255,0.45471 1.541199,0.94487 0.516648,0.52876 0.926282,0.82198 1.037472,0.96525 0.63742,0.82136 1.00797,0.17687 1.586477,0.87142 0.5685,0.68254 2.110001,1.81275 2.142551,2.19123 0.20723,2.40959 -0.66417,2.51468 -0.66417,5.07792 0,2.08014 -7.718007,8.16835 -14.965494,13.99189 -7.997877,6.4265 -13.309174,14.9828 -14.074994,16.13056 -1.45979,2.18782 -19.393131,1.26608 -21.580951,1.26608 -2.187827,0 -19.35411316,-6.30698 -12.7835219,-15.36211 z" + id="path2-2" + sodipodi:nodetypes="zzsssscssssssssszz" /> diff --git a/public/images/peoples_lab_masked.svg b/public/images/peoples_lab_masked.svg new file mode 100644 index 00000000..5ccd2f99 --- /dev/null +++ b/public/images/peoples_lab_masked.svg @@ -0,0 +1,1962 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/lab/LabFactoryBanner/index.tsx b/src/components/lab/LabFactoryBanner/index.tsx index 50d5e45c..0faf919a 100644 --- a/src/components/lab/LabFactoryBanner/index.tsx +++ b/src/components/lab/LabFactoryBanner/index.tsx @@ -1,26 +1,29 @@ -import React, { FC } from 'react'; +import React, { useRef } from 'react'; + +import classNames from 'classnames'; import { Group } from '~/components/containers/Group'; import styles from './styles.module.scss'; -interface LabFactoryBannerProps {} +const LabFactoryBanner = () => { + const masked = useRef(Math.random() <= 0.5).current; -const LabFactoryBanner: FC = () => ( - - - Лаборатория! + return ( + + + Лаборатория! - - - - Всё, что происходит здесь — всего лишь эксперимент, о котором - не узнает никто за пределами Убежища. - - + + + + Всё, что происходит здесь — всего лишь эксперимент, о + котором не узнает никто за пределами Убежища. + + + - - -); - + + ); +}; export { LabFactoryBanner }; diff --git a/src/components/lab/LabFactoryBanner/styles.module.scss b/src/components/lab/LabFactoryBanner/styles.module.scss index bfdf5e21..02a7eb28 100644 --- a/src/components/lab/LabFactoryBanner/styles.module.scss +++ b/src/components/lab/LabFactoryBanner/styles.module.scss @@ -5,10 +5,13 @@ display: flex; aspect-ratio: 0.7; - background: url('/images/peoples_lab.svg') 50% 100%; - background-size: cover; + background: url('/images/peoples_lab.svg') 50% 100% / cover; padding: $gap; border-radius: $radius; + + &.masked { + background-image: url('/images/peoples_lab_masked.svg'); + } } .title {
- - Всё, что происходит здесь — всего лишь эксперимент, о котором - не узнает никто за пределами Убежища. - -
+ + Всё, что происходит здесь — всего лишь эксперимент, о + котором не узнает никто за пределами Убежища. + +