agi 타임라인을 예측하는 웹사이트를 만들어줘
- User
agi 타임라인을 예측하는 웹사이트를 만들어줘
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
agi 타임라인을 예측하는 웹사이트를 만들어줘
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
AGI 타임라인 예측 웹사이트를 만들기 위한 간단한 HTML, CSS, JavaScript 코드를 제공해 드리겠습니다.
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AGI 타임라인 예측</title>
<style>
body {
font-family: 'Noto Sans KR', sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
line-height: 1.6;
color: #333;
}
h1 {
text-align: center;
color: #2c3e50;
margin-bottom: 30px;
}
.timeline {
position: relative;
margin: 40px 0;
padding: 20px 0;
}
.timeline::before {
content: '';
position: absolute;
top: 0;
left: 50%;
width: 4px;
height: 100%;
background: #3498db;
transform: translateX(-50%);
}
.event {
position: relative;
margin-bottom: 30px;
width: 45%;
}
.event:nth-child(odd) {
left: 0;
}
.event:nth-child(even) {
left: 55%;
}
.event-content {
padding: 15px;
background: #f9f9f9;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.event-year {
font-weight: bold;
color: #3498db;
margin-bottom: 5px;
}
.prediction-form {
background: #f5f5f5;
padding: 20px;
border-radius: 5px;
margin-bottom: 30px;
}
.prediction-form h2 {
margin-top: 0;
}
button {
background: #3498db;
color: white;
border: none;
padding: 10px 15px;
border-radius: 3px;
cursor: pointer;
}
button:hover {
background: #2980b9;
}
input, select {
padding: 8px;
margin: 5px 0;
width: 100%;
}
.form-group {
margin-bottom: 15px;
}
</style>
</head>
<body>
<h1>AGI 타임라인 예측</h1>
<div class="prediction-form">
<h2>나의 AGI 예측 추가하기</h2>
<div class="form-group">
<label for="year">예상 연도:</label>
<input type="number" id="year" min="2025" max="2100" value="2030">
</div>
<div class="form-group">
<label for="confidence">확신도 (%):</label>
<input type="number" id="confidence" min="1" max="100" value="50">
</div>
<div class="form-group">
<label for="description">예측 설명:</label>
<input type="text" id="description" placeholder="AGI 발전에 대한 예측을 설명해주세요">
</div>
<button onclick="addPrediction()">예측 추가하기</button>
</div>
<h2>AGI 타임라인</h2>
<div class="timeline" id="timeline">
<!-- 기본 예측 이벤트들이 여기에 표시됩니다 -->
</div>
<script>
// 초기 예측 데이터
const predictions = [
{ year: 2025, confidence: 10, description: "좁은 영역에서 인간 수준의 AI 시스템 등장" },
{ year: 2030, confidence: 30, description: "다중 영역에서 인간 수준의 AI 시스템 상용화" },
{ year: 2035, confidence: 45, description: "제한적 AGI 시스템 첫 등장" },
{ year: 2045, confidence: 60, description: "완전한 AGI 시스템 개발" },
{ year: 2060, confidence: 75, description: "AGI가 대부분의 지식 노동 대체" }
];
// 페이지 로드 시 타임라인 표시
window.onload = function() {
renderTimeline();
};
// 타임라인 렌더링 함수
function renderTimeline() {
const timeline = document.getElementById('timeline');
timeline.innerHTML = '';
// 연도순으로 정렬
const sortedPredictions = [...predictions].sort((a, b) => a.year - b.year);
sortedPredictions.forEach((prediction, index) => {
const event = document.createElement('div');
event.className = 'event';
event.innerHTML = `
<div class="event-content">
<div class="event-year">${prediction.year} (확신도: ${prediction.confidence}%)</div>
<p>${prediction.description}</p>
</div>
`;
timeline.appendChild(event);
});
}
// 새 예측 추가 함수
function addPrediction() {
const year = parseInt(document.getElementById('year').value);
const confidence = parseInt(document.getElementById('confidence').value);
const description = document.getElementById('description').value;
if (year && confidence && description) {
predictions.push({ year, confidence, description });
renderTimeline();
// 입력 필드 초기화
document.getElementById('description').value = '';
} else {
alert('모든 필드를 입력해주세요.');
}
}
</script>
</body>
</html>
이 코드를 설명해 드릴까요?