grg's picture
Adding per model pages
b845998
raw
history blame
3.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ model_name }}</title>
<!-- Include Bootstrap CSS for styling -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.1.3/css/bootstrap.min.css">
<!-- Custom CSS for additional styling -->
<style>
body {
background-color: #f8f9fa;
font-family: 'Arial', sans-serif;
}
.container {
max-width: 1200px; /* Limit the width of the container */
margin: auto; /* Center the container */
padding: 20px; /* Add some padding */
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
h1 {
color: #333;
text-align: center;
}
.model-name {
font-size: 24px;
font-weight: bold;
text-align: center;
margin-top: 40px;
margin-bottom: 40px;
padding: 20px; /* Add padding for more margin around text */
background-color: #610b5d;
color: #fff; /* Ensure text is readable on dark background */
border-radius: 15px; /* Rounded edges */
}
.back-button {
text-align: center;
margin-top: 20px;
}
.image-section {
text-align: center;
margin-top: 40px;
}
.image-section h2 {
font-size: 30px;
margin-bottom: 20px;
}
.image-container {
width: 100%;
margin-bottom: 40px;
}
.image-container img {
max-width: 100%;
height: auto;
display: block;
margin: auto;
border: 1px solid #dee2e6;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.custom-button {
background-color: #610b5d;
color: #fff; /* Set white text color */
border-radius: 15px; /* Rounded edges */
padding: 10px 20px; /* Padding for the button */
font-size: 18px; /* Increase font size */
text-decoration: none; /* Remove underline */
}
.custom-button:hover {
background-color: #812b7d;
color: #fff;
}
</style>
</head>
<body>
<div class="container">
<h1 class="mt-5">Stick To Your Role! Leaderboard</h1>
<div class="model-name">{{ model_name }}</div>
<div class="image-section">
<h2>Structure</h2>
<p>This image shows .....</p>
<div class="image-container">
<a href="{{ url_for('static', filename='figures/' + model_name + '/structure.svg') }}" target="_blank">
<img src="{{ url_for('static', filename='figures/' + model_name + '/structure.svg') }}" alt="Structure">
</a>
</div>
</div>
<div class="image-section">
<h2>Ranks</h2>
<p>This image shows .....</p>
<div class="image-container">
<a href="{{ url_for('static', filename='figures/' + model_name + '/ranks.svg') }}" target="_blank">
<img src="{{ url_for('static', filename='figures/' + model_name + '/ranks.svg') }}" alt="Ranks">
</a>
</div>
</div>
<div class="back-button">
<a href="{{ url_for('index') }}" class="custom-button mt-3">Back</a>
</div>
</div>
<!-- Include Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.1.3/js/bootstrap.bundle.min.js"></script>
</body>
</html>