好看的首页展示

代码

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>/* RESET STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&display=swap");:root {--height: 80vh;--half-height: calc(var(--height) / 2);--transition: all 1s;}* {box-sizing: border-box;}body {font-family: "Bitter", serif;margin: 20px 0;padding: 0 15px;background: #cae9ff;}a {color: inherit;}.notification {display: none;position: absolute;top: 0;right: 0;padding: 10px;font-size: 0.85em;background: #e9c46a;}/* MAIN STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */.grid,.sub-grid,.grid .card {transition: var(--transition);}.grid {max-width: 1600px;margin: 0 auto;box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);}.card {cursor: pointer;figure,img {width: 100%;height: 100%;}figure {position: relative;margin: 0;overflow: hidden;}img {object-fit: cover;background: #333;}figcaption {position: absolute;top: 0;left: 0;width: 100%;height: 100%;display: grid;place-items: center;font-size: 1.5em;line-height: 1.3;text-align: center;padding: 10px;color: white;background: rgba(0, 0, 0, 0.5);span {display: block;font-size: 0.75em;}}}@media (max-width: 899px) {.card {height: var(--half-height);}}@media (min-width: 900px) {.grid,.sub-grid {display: grid;}.grid {grid-template-columns: 2fr 1fr 1fr;}.sub-grid {grid-template-rows: var(--half-height) var(--half-height);}.sub-grid-1 {grid-template-columns: 1fr 1fr auto;}.sub-grid-1 .card:last-child {grid-column: 1/-1;}/*.sub-grid-2 {grid-template-columns: 1fr;}*/.grid>.card {height: var(--height);}}@media (hover: hover) and (min-width: 900px) {.notification {display: block;}.grid:has(.sub-grid-1 .card:first-of-type:hover) .sub-grid-1 {grid-template-columns: 1fr 0fr auto;}.grid:has(.sub-grid-1 .card:nth-of-type(2):hover) .sub-grid-1 {grid-template-columns: 0fr 1fr auto;}.grid:has(.sub-grid-1 .card:last-of-type:hover) .sub-grid-1 {grid-template-rows: 0 var(--height);}.grid:has(> .card:hover) {grid-template-columns: 0fr 1fr 0fr;}.grid:has(.sub-grid-2 .card:first-of-type:hover) .sub-grid-2 {grid-template-rows: var(--height) 0;}.grid:has(.sub-grid-2 .card:last-of-type:hover) .sub-grid-2 {grid-template-rows: 0 var(--height);}.card {filter: grayscale(1);figcaption {opacity: 0;}&:hover {filter: grayscale(0);figcaption {opacity: 1;transition: opacity 0.5s 0.5s;}}}}/* FOOTER STYLES–––––––––––––––––––––––––––––––––––––––––––––––––– */.page-footer {position: fixed;right: 0;bottom: 50px;display: flex;align-items: center;padding: 5px;font-size: 0.9em;background: white;}.page-footer a {display: flex;margin-left: 4px;}</style>
</head><body><div class="grid"><div class="sub-grid sub-grid-1"><article class="card"><figure><img width="1600" height="900" src="https://assets.codepen.io/162656/beach2.jpg" alt=""><figcaption><div>Santorini, Greece<span>by <a href="https://unsplash.com/photos/white-sun-lounger-lot-KrGbdPfIYD4"target="_blank">Khamkéo</a></span></div></figcaption></figure></article><article class="card"><figure><img width="1600" height="1067" src="https://assets.codepen.io/162656/beach6.jpg" alt=""><figcaption><div>Kvalvika Beach, Moskenes, Norway<span>by <a href="https://unsplash.com/photos/beach-near-mountain-range-wnRvXXzZK7w"target="_blank"></a>Martine Jacobsen</span></div></figcaption></figure></article><article class="card"><figure><img width="1600" height="1036" src="https://assets.codepen.io/162656/beach3.jpg" alt=""><figcaption><div>San Lorenzo, Italy<span>by <a href="https://unsplash.com/photos/photo-of-seashore-d7M5Xramf8g"target="_blank">Camille Minouflet</a></span></div></figcaption></figure></article></div><article class="card"><figure><img width="1600" height="900" src="https://assets.codepen.io/162656/beach4.jpg" alt=""><figcaption><div>McWay Falls, California, USA<span>by <ahref="https://unsplash.com/photos/aerial-photography-of-boulders-on-body-of-water-07mSKrzKiRw"target="_blank">Chor Tsang</a></span></div></figcaption></figure></article><div class="sub-grid sub-grid-2"><article class="card"><figure><img width="1600" height="1064" src="https://assets.codepen.io/162656/beach5.jpg" alt=""><figcaption><div>Inisheer, County Galway, Ireland<span>by <ahref="https://unsplash.com/photos/a-beach-with-a-boat-on-it-and-people-walking-on-it-Il4WLGeMsUk"target="_blank">Ulrike R. Donohue</a></span></div></figcaption></figure></article><article class="card"><figure><img width="1600" height="898" src="https://assets.codepen.io/162656/beach1.jpg" alt=""><figcaption><div>Beaches, Jacksonville Beach, Florida, United States<span>by <a href="https://unsplash.com/photos/man-surfing-on-waves-L5aI2jU0i50"target="_blank">Lance Asper</a></span></div></figcaption></figure></article></div></div><p class="notification">Hover over a card</p><footer class="page-footer"><span>made by </span><a href="https://georgemartsoukos.com/" target="_blank"><img width="24" height="24" src="https://assets.codepen.io/162656/george-martsoukos-small-logo.svg"alt="George Martsoukos logo"></a></footer>
</body></html>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.xdnf.cn/news/1547584.html

如若内容造成侵权/违法违规/事实不符,请联系一条长河网进行投诉反馈,一经查实,立即删除!

相关文章

【BUG】静读天下|静读天下无法设置段间距解决方案

【BUG】静读天下&#xff5c;静读天下无法设置段间距解决方案 文章目录 【BUG】静读天下&#xff5c;静读天下无法设置段间距解决方案前言解决办法 凑质量分静读天下的特点与优势功能布局与使用技巧个人使用心得结语 前言 03-23 求助&#xff5c;关于排版的问题【静读天下吧】_…

数字孪生平台,助力制造设备迈入超感知与智控新时代!

痛点剖析 当前&#xff0c;制造业面临系统分散导致的数据孤岛问题&#xff0c;严重阻碍了有效监管与统计分析&#xff1b;同时&#xff0c;设备多样化且兼容性不足&#xff0c;增加了管理难度&#xff1b;台账记录方式混乱&#xff0c;工单审批流程繁琐且效率低下&#xff1b;…

Stable Diffusion零基础学习

Stable Diffusion学习笔记TOP11 _插件篇之ControlNet功能篇 ControlNet目前支持的10多种预处理器&#xff0c;根据数据检测种类可分为两种类型&#xff1a; 1、功能型&#xff1a;拥有着不同的能力 2、构图型&#xff1a;控制着SD扩散图形的构图规则 Shuffle洗牌/转换&#…

基于Ubuntu 20.04 LTS上部署MicroK8s(最小生产的 Kubernetes)

目录 文章目录 目录简介Kubernetes简介MicroK8s简介Ubuntu系统MicroK8s的优势安装环境基本要求执行安装命令加入群组(使用非 root 用户访问)开启 dashboard 仪表盘查看服务名称查看仪表盘开放的端口打开浏览器检查状态打开你想要的服务(使用附加组件)开始使用 microk8s访问 Kub…

【【通信协议之ICMP协议的FPGA实现】】

通信协议之ICMP协议的FPGA实现 整体的实现框图如下所示 arp_rx.v module arp_rx#(//开发板MAC地址 00-11-22-33-44-55parameter BOARD_MAC 48h00_11_22_33_44_55, //开发板IP地址 192.168.1.10 parameter BOARD_IP {8d192,8d168,8d1,8d10} )(input …

RFID手持机——物联网时代的核心工具

一、行业背景 在当今物联网技术高速发展的时代&#xff0c;RFID技术作为核心的数据采集与识别手段&#xff0c;在物流、仓储、资产管理等众多领域发挥着至关重要的作用。以物流行业为例&#xff0c;利用RFID技术能够对货物进行全程精准跟踪&#xff0c;从入库、存储、搬运到出…

Keepalived+Nginx 高可用集群(双主模式)

1.基础环境配置 [rootlb1 ~]# systemctl stop firewalld # 关闭防火墙 [rootlb1 ~]# sed -i s/^SELINUX.*/SELINUXdisabled/ /etc/sysconfig/selinux # 关闭selinux&#xff0c;重启生效 [rootlb1 ~]# setenforce 0          …

从Elasticsearch到RedisSearch:探索更快的搜索引擎解决方案

文章目录 RedisSearch 的关键功能与 ElasticSearch 对比性能对比产品对比 如何使用 Docker 安装 RedisSearch1. 获取 RedisSearch Docker 镜像2. 启动 RedisSearch 容器3. 验证安装 RedisSearch 使用示例1. 连接到 RedisSearch2. 创建索引3. 添加文档4. 执行搜索搜索所有包含 &…

C++ | Leetcode C++题解之第440题字典序的第K小数字

题目&#xff1a; 题解&#xff1a; class Solution { public:int getSteps(int curr, long n) {int steps 0;long first curr;long last curr;while (first < n) {steps min(last, n) - first 1;first first * 10;last last * 10 9;}return steps;}int findKthNum…

Ubuntu20.04 安装汉语拼音后重启登入黑屏

在虚拟机上装了一个Ubuntu用来学C&#xff0c;默认没有安装中文输入。于是按照网上教程装了几个汉语包。切换输入法的时候突然死机&#xff0c;重启登入直接黑屏。百度后发现有不少老哥和我这个问题一模一样&#xff0c;按照他们的方法也终于整好了&#xff0c;虚惊一场。 解决…

Windows 10 系统安装 FFmpeg 查看、转换、编辑音频文件

1、FFmpeg官网&#xff1a;FFmpeg 点击下载 可以选择下载full版本 下载之后解压到指定目录&#xff0c;在系统环境变量 Path 里面新增环境变量 打开CMD终端运行 ffmpeg -version 查看是否安装成功。 2、基本命令 查看音频基本信息 ffprobe 1.mp3 ##输出 [mp3 000002ab334405…

DataLight(V1.4.5) 版本更新,新增 Ranger、Solr

DataLight&#xff08;V1.4.5&#xff09; 版本更新&#xff0c;新增 Ranger、Solr DataLight 迎来了重大的版本更新&#xff0c;现已发布 V1.4.5 版本。本次更新对平台进行了较多的功能拓展和优化&#xff0c;新增了对 Ranger 和 Solr 服务组件的支持&#xff0c;同时对多项已…

傅里叶级数在机器人中的应用(动力学参数辨识)

B站首发&#xff01;草履虫都能看懂的【傅里叶变换】讲解&#xff0c;清华大学李永乐老师教你如何理解傅里叶变换&#xff0c;辨清美颜和变声原理&#xff0c;&#xff01;&#xff01;_哔哩哔哩_bilibiliB站首发&#xff01;草履虫都能看懂的【傅里叶变换】讲解&#xff0c;清…

macOS安装MySQL以后如何配置环境变量

当安装了MySQL,解决了远程链接的问题以后, 还没有完事大捷, 还需要配置环境变量. 因为我需要使用mysql命令, 以及备份相关的命令. 下面是mysql的默认配置截图: 接着我查看了/usr/local/mysql/bin这个目录. 果然很多命令都在这个里面. 所以我将这个目录加载到了path中. e…

XSS | 反射型 XSS 攻击

关注这个漏洞的其他相关笔记&#xff1a;XSS 漏洞 - 学习手册-CSDN博客 0x01&#xff1a;反射型 XSS — 理论篇 反射型 XSS 又称非持久型 XSS&#xff0c;这种攻击方式往往具有一次性。 常见的攻击方式&#xff1a; 攻击者通过电子邮件等方式将包含 XSS 代码的恶意链接发送给…

Linux标准IO(五)-I/O缓冲详解

1.简介 出于速度和效率的考虑&#xff0c;系统 I/O 调用&#xff08;即文件 I/O&#xff0c;open、read、write 等&#xff09;和标准 C 语言库 I/O 函数&#xff08;即标准 I/O 函数&#xff09;在操作磁盘文件时会对数据进行缓冲&#xff0c;本小节将讨论文件 I/O 和标准 I/…

蓝桥杯--STM32G431RBT6(TIM定时器的输出频率和占空比,含详细原理介绍和使用方法)

目录 一、前言 二、代码 实现功能&#xff1a;​编辑 按如图配置 定义变量 编写执行代码 显示在LCD上 加入按键效果 三、效果展示 四、代码开源 一、前言 ARR 即自动重装载值&#xff08;Auto Reload Register&#xff09;。相当于一个水杯&#xff0c;水杯容量&am…

【EXCEL数据处理】000002 案列 条件格式之重复值。使用的软件是微软的Excel操作的。处理数据的目的是让数据更直观的显示出来,方便查看。

【EXCEL数据处理】000002 案列 条件格式之重复值。使用的软件是微软的Excel操作的。处理数据的目的是让数据更直观的显示出来&#xff0c;方便查看。 在日常的数据处理和分析工作中&#xff0c;Excel 是一款强大而广泛使用的工具。其中&#xff0c;条件格式中的重复值功能对于快…

Golang | Leetcode Golang题解之第438题找到字符串中所有字母异位词

题目&#xff1a; 题解&#xff1a; func findAnagrams(s, p string) (ans []int) {sLen, pLen : len(s), len(p)if sLen < pLen {return}count : [26]int{}for i, ch : range p {count[s[i]-a]count[ch-a]--}differ : 0for _, c : range count {if c ! 0 {differ}}if diff…

Java | Leetcode Java题解之第438题找到字符串中所有字母异位词

题目&#xff1a; 题解&#xff1a; class Solution {public List<Integer> findAnagrams(String s, String p) {int sLen s.length(), pLen p.length();if (sLen < pLen) {return new ArrayList<Integer>();}List<Integer> ans new ArrayList<Int…