3个卡片一页
<div class="tools-container">
<div class="tool-card">
<img src="/sites/default/files/images/BLAST.png" alt="Gene Density" />
<h2>Blast</h2>
<p>Align sequences to database for similarity</p>
<a href="http://10.202.40.91:5088/viroblast/" class="btn">Try Blast Tools</a>
</div>
<div class="tool-card">
<img src="/sites/default/files/images/JBrowse.jpg" alt="JBrowse" />
<h2>JBrowse</h2>
<p>Visualize genome annotations and alignments</p>
<a href="/jbrowse" class="btn">Try GO/KEGG Enrichment</a>
</div>
<div class="tool-card">
<img src="/sites/default/files/images/KEGG.png" alt="Tps Gene Family Tree" />
<h2>GO/KEGG Enrichment</h2>
<p>Analyze gene enrichment in biological pathways</p>
<a href="/kegg_go_enrich_analysis" class="btn">Try GO/KEGG</a>
</div>
<div class="tool-card">
<img src="/sites/default/files/images/GO.png" alt="Expression Heatmap" />
<h2>Expression Heatmap</h2>
<p>Visualize gene expression patterns across samples</p>
<a href="/analysis_expression" class="btn">Try GO Enrichment</a>
</div>
<div class="tool-card">
<img src="/sites/default/files/images/KEGG.png" alt="KEGG Enrichment" />
<h2>GO/KEGG Enrichment</h2>
<p>Analyze GO/KEGG terms enrichment of a gene list</p>
<a href="#" class="btn">Try GO/KEGG Enrichment</a>
</div>
<div class="tool-card">
<img src="/sites/default/files/images/GO.png" alt="GO Enrichment" />
<h2>GO Enrichment</h2>
<p>Analyze GO terms enrichment of a gene list</p>
<a href="#" class="btn">Try GO Enrichment</a>
</div>
</div>
<style>
/* 全局样式 */
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
color: #333;
}
.tools-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 增大每个卡片的最小宽度 */
gap: 10px; /* 设置卡片之间的间隔为 10px */
padding: 20px;
max-width: 1240px;
margin: 0 auto;
}
.tool-card {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
min-width: 300px; /* 增大每个卡片的宽度 */
}
.tool-card:hover {
transform: translateY(-10px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.tool-card img {
width: 100px;
height: auto;
margin-bottom: 15px;
}
.tool-card h2 {
font-size: 22px;
margin: 10px 0;
}
.tool-card p {
font-size: 14px;
color: #555;
margin-bottom: 15px;
}
/* 更新按钮样式 */
.tool-card .btn {
display: inline-block;
padding: 10px 20px;
background-color: #28a745; /* 绿色背景 */
color: white;
text-decoration: none;
border-radius: 5px;
font-size: 14px;
transition: background-color 0.3s ease;
}
.tool-card .btn:hover {
background-color: #218838; /* 深绿色背景 */
}
</style>
4个卡片一页
<div class="tools-container">
<div class="tool-card">
<img src="/sites/default/files/images/BLAST.png" alt="Gene Density" />
<h2>Blast</h2>
<p>Align sequences to database for similarity</p>
<a href="http://10.202.40.91:5088/viroblast/" class="btn">Try Blast Tools</a>
</div>
<div class="tool-card">
<img src="/sites/default/files/images/JBrowse.jpg" alt="JBrowse" />
<h2>JBrowse</h2>
<p>Visualize genome annotations and alignments</p>
<a href="/jbrowse" class="btn">Try GO/KEGG Enrichment</a>
</div>
<div class="tool-card">
<img src="/sites/default/files/images/KEGG.png" alt="Tps Gene Family Tree" />
<h2>GO/KEGG</h2>
<p>Analyze gene enrichment in biological pathways</p>
<a href="/kegg_go_enrich_analysis" class="btn">Try GO/KEGG</a>
</div>
<div class="tool-card">
<img src="/sites/default/files/images/GO.png" alt="Expression Heatmap" />
<h2>Expression Heatmap</h2>
<p>Visualize gene expression patterns across samples</p>
<a href="/analysis_expression" class="btn">Try GO Enrichment</a>
</div>
</div>
<style>
/* 全局样式 */
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
color: #333;
}
.tools-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
/* 自动调整列数 */
gap: 15px;
padding: 20px;
max-width: 1240px;
margin: 0 auto;
}
.tool-card {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tool-card:hover {
transform: translateY(-10px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.tool-card img {
width: 100px;
height: auto;
margin-bottom: 15px;
}
.tool-card h2 {
font-size: 22px;
margin: 10px 0;
}
.tool-card p {
font-size: 14px;
color: #555;
margin-bottom: 15px;
}
/* 更新按钮样式 */
.tool-card .btn {
display: inline-block;
padding: 10px 20px;
background-color: #28a745;
/* 绿色背景 */
color: white;
text-decoration: none;
border-radius: 5px;
font-size: 14px;
transition: background-color 0.3s ease;
}
.tool-card .btn:hover {
background-color: #218838;
/* 深绿色背景 */
}
</style>