🎮ArcadeLab

iPhone Simülatörü

by ElectricViper19
314 lines9.7 KB
▶ Play
<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>iPhone Simülatörü</title>
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            user-select: none;
        }

        body {
            background-color: #0f0f12;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden;
        }

        /* iPhone Premium Dış Kasa */
        .iphone {
            width: 360px;
            height: 740px;
            background: #1c1c1e;
            border-radius: 50px;
            padding: 12px;
            box-shadow: 0px 25px 60px rgba(0, 0, 0, 0.8), 
                        inset 0px 0px 0px 4px #48484a,
                        inset 0px 0px 8px 2px rgba(0,0,0,0.5);
            position: relative;
            border: 4px solid #2c2c2e;
        }

        /* Güç Tuşu (Sağ Yan) */
        .power-btn {
            width: 4px;
            height: 75px;
            background: #48484a;
            position: absolute;
            right: -8px;
            top: 180px;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            box-shadow: 2px 0 5px rgba(0,0,0,0.5);
            transition: transform 0.1s ease;
        }
        .power-btn:active {
            transform: translateX(-1px);
        }

        /* Ses Tuşları (Sol Yan) */
        .volume-btn {
            width: 4px;
            height: 50px;
            background: #48484a;
            position: absolute;
            left: -8px;
            border-radius: 5px 0 0 5px;
            box-shadow: -2px 0 5px rgba(0,0,0,0.5);
        }
        .volume-up { top: 160px; }
        .volume-down { top: 220px; }

        /* Ekran Çerçevesi */
        .screen {
            width: 100%;
            height: 100%;
            background: url('https://unsplash.com') center/cover;
            border-radius: 40px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            background-color: #000;
        }

        /* Ekran Kapatma Maskesi */
        .screen.turned-off {
            filter: brightness(0);
            background: #000 !important;
        }
        .screen.turned-off .ui-element {
            opacity: 0 !important;
            pointer-events: none;
        }

        /* Dinamik Ada (Dynamic Island) */
        .dynamic-island {
            width: 110px;
            height: 30px;
            background: #000;
            border-radius: 20px;
            position: absolute;
            top: 15px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        }

        /* Üst Durum Çubuğu (Status Bar) */
        .status-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 32px 0 32px;
            color: white;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: -0.2px;
            position: relative;
            z-index: 10;
            transition: opacity 0.2s ease;
        }

        .status-right {
            display: flex;
            gap: 6px;
            align-items: center;
        }

        /* Widget ve Tarih Alanı */
        .lock-screen-info {
            color: white;
            text-align: center;
            margin-top: 40px;
            position: relative;
            z-index: 10;
            transition: opacity 0.2s ease;
        }

        .date-text {
            font-size: 16px;
            font-weight: 500;
            letter-spacing: -0.1px;
            opacity: 0.9;
            margin-bottom: 5px;
        }

        .main-clock {
            font-size: 72px;
            font-weight: 200;
            letter-spacing: -1.5px;
            line-height: 1;
        }

        /* Uygulama Izgarası (Grid) */
        .apps-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            row-gap: 24px;
            column-gap: 16px;
            padding: 0 24px;
            position: absolute;
            top: 240px;
            width: 100%;
            z-index: 10;
            transition: opacity 0.2s ease;
        }

        .app-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: transform 0.1s ease;
        }
        .app-icon:active {
            transform: scale(0.9);
        }

        .app-icon .icon {
            width: 54px;
            height: 54px;
            border-radius: 14px;
            background: #fff;
            box-shadow: 0 8px 20px rgba(0,0,0,0.25);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
        }

        /* Uygulama Arka Plan Renk Geçişleri */
        .app-icon:nth-child(1) .icon { background: linear-gradient(135deg, #afb4ba, #e2e8f0); }
        .app-icon:nth-child(2) .icon { background: linear-gradient(135deg, #34c759, #10b981); }
        .app-icon:nth-child(3) .icon { background: linear-gradient(135deg, #007aff, #3b82f6); }
        .app-icon:nth-child(4) .icon { background: linear-gradient(135deg, #ff9500, #f59e0b); }

        .app-icon span {
            color: rgba(255, 255, 255, 0.95);
            font-size: 11px;
            font-weight: 500;
            text-align: center;
            letter-spacing: -0.1px;
            text-shadow: 0 1px 4px rgba(0,0,0,0.6);
        }

        /* Alt Sabit Menü (iOS Dock) */
        .dock {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 88%;
            height: 80px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(30px) saturate(190%);
            -webkit-backdrop-filter: blur(30px) saturate(190%);
            border-radius: 28px;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 0 12px;
            z-index: 10;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            transition: opacity 0.2s ease;
        }

        .dock-icon {
            width: 52px;
            height: 52px;
            border-radius: 13px;
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transition: transform 0.1s ease;
        }
        .dock-icon:active {
            transform: scale(0.9);
        }
        
        .dock-icon.phone { background: linear-gradient(135deg, #2ecc71, #27ae60); }
        .dock-icon.safari { background: linear-gradient(135deg, #74b9ff, #0984e3); }
        .dock-icon.music { background: linear-gradient(135deg, #ff7675, #d63031); }
        .dock-icon.store { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }

        /* iOS Ev Çubuğu (Home Bar) */
        .home-bar {
            width: 120px;
            height: 5px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
            position: absolute;
            bottom: 6px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 20;
            transition: opacity 0.2s ease;
        }
    </style>
</head>
<body>

    <!-- iPhone Cihaz Modeli -->
    <div class="iphone">
        <!-- Donanım Tuşları -->
        <div class="dynamic-island" id="island"></div>
        <div class="power-btn" onclick="toggleScreen()"></div>
        <div class="volume-btn volume-up"></div>
        <div class="volume-btn volume-down"></div>

        <!-- Akıllı Ekran Katmanı -->
        <div class="screen" id="phoneScreen">
            
            <!-- Üst Bar (Saat, Şebeke, Batarya) -->
            <div class="status-bar ui-element">
                <span id="statusBarTime">00:00</span>
                <div class="status-right">
                    <span>📶</span>
                    <span>5G</span>
                    <span>🔋</span>
                </div>
            </div>

            <!-- Lockscreen Tarih ve Saat Bilgisi -->
            <div class="lock-screen-info ui-element">
                <div class="date-text" id="lockDate">18 Ekim Pazar</div>
                <div class="main-clock" id="mainClock">00:00</div>
            </div>

            <!-- Ana Ekran Uygulamaları -->
            <div class="apps-grid ui-element">
                <div class="app-icon" onclick="triggerIsland('📷 Kamera Açıldı')">
                    <div class="icon">📷</div>
                    <span>Kamera</span>
                </div>
                <div class="app-icon" onclick="triggerIsland('💬 Mesajlar Açıldı')">
                    <div class="icon">💬</div>
                    <span>Mesajlar</span>
                </div>
                <div class="app-icon" onclick="triggerIsland('🗺️ Harita Açıldı')">
                    <div class="icon">🗺️</div>
                    <span>Harita</span>
                </div>
                <div class="app-icon" onclick="triggerIsland('⚙️ Ayarlar Açıldı')">
                    <div class="icon">⚙️</div>
                    <span>Ayarlar</span>
                </div>
            </div>

            <!-- Sabit Alt Menü (Dock) -->

Game Source: iPhone Simülatörü

Creator: ElectricViper19

Libraries: none

Complexity: complex (314 lines, 9.7 KB)

The full source code is displayed above on this page.

Remix Instructions

To remix this game, copy the source code above and modify it. Add a ARCADELAB header at the top with "remix_of: iphone-sim-lat-r-electricviper19" to link back to the original. Then publish at arcadelab.ai/publish.