Skip to content

Commit

Permalink
Merge pull request #64 from simonyiszk/59-app-tile
Browse files Browse the repository at this point in the history
59 app tile
  • Loading branch information
Tschonti authored Mar 16, 2024
2 parents e4e9f9e + 4a1dbdc commit 7f6202c
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 7 deletions.
Binary file added public/img/app-screens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
147 changes: 147 additions & 0 deletions public/img/apple-store-hu-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/google-play-badge-hu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { metadata } from '@/app/layout';
import { ImageCarouselSection } from '@/components/image-carousel/image-carousel-section';
import Presentation from '@/components/presentation/Presentation';
import { SponsorSection } from '@/components/sponsors/sponsor-section';
import CountdownTile from '@/components/tiles/countdown-tile/countdown-tile';
import { GiveawayTile } from '@/components/tiles/giveaway-tile';
import MapTile from '@/components/tiles/map-tile/map-tile';
import { MobilAppTile } from '@/components/tiles/mobil-app-tile';
import { RegisterTile } from '@/components/tiles/register-tile';
import { StatTile } from '@/components/tiles/stat-tile';
import { WorkshopTile } from '@/components/tiles/workshop-tile';
Expand Down Expand Up @@ -71,7 +71,8 @@ export default async function Landing() {

{data.giveaway.pictureUrl && <GiveawayTile data={data.giveaway} showLink={true} />}

<CountdownTile />
{/* <CountdownTile /> */}
{(data.mobilApp.androidUrl || data.mobilApp.iosUrl) && <MobilAppTile data={data.mobilApp} />}
{/* <NewsletterTile /> */}
<WorkshopTile />
<MapTile />
Expand Down
27 changes: 22 additions & 5 deletions src/components/tiles/mobil-app-tile.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
import { MobilAppData } from '@/models/models';

import { Tile } from './tile';

type Props = {
data: MobilAppData;
};

export function MobilAppTile({ data: { description } }: Props) {
export function MobilAppTile({ data }: Props) {
return (
<div className='tile sm:col-span-3 p-10'>
<h1>Konferenciapp</h1>
<p>{description}</p>
</div>
<Tile className='sm:col-span-6 md:col-span-3'>
<Tile.Body>
<h2 className='text-3xl sm:text-[34px]'>KonferenciApp</h2>
<div className='flex flex-col gap-4 lg:gap-0 lg:flex-row w-full justify-between mt-4 items-center'>
<img src='img/app-screens.png' className='object-cover rounded-3xl h-[300px] mr-3' alt='App screens' />
<p className='text-stone-200 text-[20px] whitespace-pre-line w-full h-full items-center'>
Töltsd le a mobil appot, hogy élőben követhesd a konferencia eseményeit és kérdezhess az előadóktól!
</p>
</div>
<div className='w-full flex lg:flex-row flex-col justify-center lg:gap-10 gap-4 items-center mt-4'>
<a href={data.androidUrl} className='h-fit'>
<img className='h-[57px] min-w-[190]' src='img/google-play-badge-hu.png' alt='Play Store' />
</a>
<a href={data.iosUrl}>
<img className='h-[60px] min-w-[180]' src='img/apple-store-hu-black.svg' alt='Apple Store' />
</a>
</div>
</Tile.Body>
</Tile>
);
}

0 comments on commit 7f6202c

Please sign in to comment.