From 5bec3b201c01e8a6cca228183180921f02b020c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Szab=C3=B3?= <tamas@szaboo.com> Date: Thu, 1 Feb 2018 22:41:44 +0100 Subject: [PATCH] text is not duplicated --- src/components/pages/Home.css | 14 +-- src/components/pages/Home.js | 164 +++++++++++++++++----------------- 2 files changed, 87 insertions(+), 91 deletions(-) diff --git a/src/components/pages/Home.css b/src/components/pages/Home.css index 7a16b07..727ae7b 100644 --- a/src/components/pages/Home.css +++ b/src/components/pages/Home.css @@ -1,12 +1,12 @@ .car-image-kszk { - position: relative; - width: 100%; /* for IE 6 */ - /* height: 1000px; */ + position: relative; } .car-text-kszk { - position: absolute; - left: 0; - width: 100%; - top: 0; + position: absolute; + width: 100%; + top: 0px; + -webkit-text-fill-color: white; + -webkit-text-stroke-color: black; + -webkit-text-stroke-width: 0.75px; } diff --git a/src/components/pages/Home.js b/src/components/pages/Home.js index 8f12920..304e332 100644 --- a/src/components/pages/Home.js +++ b/src/components/pages/Home.js @@ -33,94 +33,90 @@ const range = (count) => { return newArray; }; -const RegisterHeader = ({ image }) => ( - <div className='car-image-kszk'> - <img src={`images/${image}.JPG`} width='100%' alt='' /> - <div className='car-text-kszk'> - <Segment textAlign='center' vertical> - <Header - as='h1' - content='ĂdvĂśzlĂźnk a' - inverted - style={{ - fontSize: '3em', - fontWeight: 'normal', - marginBottom: 0, - marginTop: '0.5em', - }} - /> - <Header - as='h1' - content='KollĂŠgiumi SzĂĄmĂtĂĄstechnikai KĂśr' - inverted - style={{ - fontSize: '4em', - fontWeight: 'bold', - marginBottom: '0.5em', - marginTop: '0.5em', - }} - /> - <Header - as='h1' - content='ĂŠrdeklĹdĹinek szĂĄnt weboldalĂĄn!' - inverted - style={{ - fontSize: '3em', - fontWeight: 'normal', - marginBottom: 0, - marginTop: '0.5em', - }} - /> - <Image - verticalAlign='middle' - size='small' - src={KSZKbiglogo} - style={{ marginTop: '4em' }} - /> - <Header - as='h1' - content='Mindenkit szeretettel vĂĄrunk a KSZKĂŠpzĂŠs-re!' - inverted - style={{ - fontSize: '3em', - fontWeight: 'normal', - marginBottom: 0, - marginTop: '1em', - }} - /> - <Container> - <Button - href='/api/v1/login/authsch/' - primary - size='huge' - style={{ - fontSize: '2em', - marginTop: '1em', - marginBottom: '1em', - }} - > - JelentkezĂŠs - <Icon name='right arrow' /> - </Button> - </Container> - </Segment> - </div> - </div> -); - export default class Home extends Component { render() { return ( <div> - <Slider {...settings}> - { - range(23).map(image => ( - <div key={image}> - <RegisterHeader image={image} /> - </div> - )) - } - </Slider> + <div className='car-image-kszk'> + <Slider {...settings}> + { + range(23).map(image => ( + <div key={image}> + <img src={`images/${image}.JPG`} width='100%' alt='' /> + </div> + )) + } + </Slider> + <div className='car-text-kszk'> + <Segment textAlign='center' vertical> + <Header + as='h1' + content='ĂdvĂśzlĂźnk a' + inverted + style={{ + fontSize: '3em', + fontWeight: 'normal', + marginBottom: 0, + marginTop: '0.5em', + }} + /> + <Header + as='h1' + content='KollĂŠgiumi SzĂĄmĂtĂĄstechnikai KĂśr' + inverted + style={{ + fontSize: '4em', + fontWeight: 'bold', + marginBottom: '0.5em', + marginTop: '0.5em', + }} + /> + <Header + as='h1' + content='ĂŠrdeklĹdĹinek szĂĄnt weboldalĂĄn!' + inverted + style={{ + fontSize: '3em', + fontWeight: 'normal', + marginBottom: 0, + marginTop: '0.5em', + }} + /> + <Image + verticalAlign='middle' + size='small' + src={KSZKbiglogo} + style={{ marginTop: '4em' }} + /> + <Header + as='h1' + content='Mindenkit szeretettel vĂĄrunk a KSZKĂŠpzĂŠs-re!' + inverted + style={{ + fontSize: '3em', + fontWeight: 'normal', + marginBottom: 0, + marginTop: '1em', + }} + /> + <Container> + <Button + href='/api/v1/login/authsch/' + primary + size='huge' + style={{ + fontSize: '2em', + marginTop: '1em', + marginBottom: '1em', + }} + > + JelentkezĂŠs + <Icon name='right arrow' /> + </Button> + </Container> + </Segment> + </div> + </div> <Segment style={{ padding: '8em 0em' }} vertical> <Container text> <Header as='h3' style={{ fontSize: '2em' }}> -- GitLab