mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
added Inter font
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
/>
|
||||
<link href="../../../../css/ionic.bundle.css" rel="stylesheet" />
|
||||
<link href="../../../../scripts/testing/styles.css" rel="stylesheet" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">
|
||||
|
||||
<script src="../../../../scripts/testing/scripts.js"></script>
|
||||
<script nomodule src="../../../../dist/ionic/ionic.js"></script>
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
/>
|
||||
<link href="../../../../css/ionic.bundle.css" rel="stylesheet" />
|
||||
<link href="../../../../scripts/testing/styles.css" rel="stylesheet" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">
|
||||
|
||||
<script src="../../../../scripts/testing/scripts.js"></script>
|
||||
<script nomodule src="../../../../dist/ionic/ionic.js"></script>
|
||||
|
||||
252
core/src/theme-ionic/test/dear-designer-tag/index.html
Normal file
252
core/src/theme-ionic/test/dear-designer-tag/index.html
Normal file
@@ -0,0 +1,252 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" dir="ltr" theme="ionic">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Ionic Theme</title>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
|
||||
/>
|
||||
<link href="../../../../css/ionic.bundle.css" rel="stylesheet" />
|
||||
<link href="../../../../scripts/testing/styles.css" rel="stylesheet" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">
|
||||
|
||||
<script src="../../../../scripts/testing/scripts.js"></script>
|
||||
<script nomodule src="../../../../dist/ionic/ionic.js"></script>
|
||||
<script type="module" src="../../../../dist/ionic/ionic.esm.js"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<ion-app>
|
||||
<ion-content>
|
||||
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-grid>
|
||||
<ion-row>
|
||||
<ion-col></ion-col>
|
||||
<ion-col size="10">
|
||||
<h5>Dear Designer</h5>
|
||||
<h1 class="">Tag</h1>
|
||||
</ion-col>
|
||||
<ion-col></ion-col>
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-grid>
|
||||
<ion-row>
|
||||
<ion-col></ion-col>
|
||||
<ion-col size="10">
|
||||
<ion-card shape="rectangular" class="preview">
|
||||
<ion-card-content>
|
||||
<ion-avatar size="xlarge">
|
||||
<img alt="Silhouette of a person's head" src="/src/theme-ionic/test/assets/avatar.png" />
|
||||
</ion-avatar>
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
</ion-col>
|
||||
<ion-col></ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
|
||||
<ion-col></ion-col>
|
||||
<ion-col size="10">
|
||||
<h2 class="title">Image</h2>
|
||||
<ion-text class="subtitle">The user image displayed in the avatar.</ion-text>
|
||||
<ion-avatar>
|
||||
<img alt="Silhouette of a person's head" src="/src/theme-ionic/test/assets/avatar.png" />
|
||||
</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col></ion-col>
|
||||
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
|
||||
<ion-col></ion-col>
|
||||
<ion-col size="10">
|
||||
<h2 class="title">User Name</h2>
|
||||
<ion-text class="subtitle">The name of the user. The initials will be used to define the avatar content (2 initials, except 2s that accepts only 1).</ion-text>
|
||||
<ion-avatar shape="round" size="medium">AB</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col></ion-col>
|
||||
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
|
||||
<ion-col></ion-col>
|
||||
<ion-col size="10">
|
||||
<h2 class="title">Icon</h2>
|
||||
<ion-text class="subtitle">Default avatars come in 6 sizes. The default Size is md (40px). <br>
|
||||
Note: All avatars show 2 characters except 2xs - only 1 char.</ion-text>
|
||||
|
||||
<ion-avatar shape="round" size="medium">
|
||||
<ion-icon src="/src/theme-ionic/test/assets/user.svg"></ion-icon>
|
||||
</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col></ion-col>
|
||||
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
|
||||
<ion-col></ion-col>
|
||||
<ion-col size="10">
|
||||
<h2 class="title">Size</h2>
|
||||
<ion-text class="subtitle">Default avatars come in 6 sizes. <br>
|
||||
The default Size is md (40px). </ion-text>
|
||||
</ion-col>
|
||||
<ion-col></ion-col>
|
||||
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
<ion-col size="1"></ion-col>
|
||||
<ion-col class="center">
|
||||
<h6>xs</h6>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<h6>sm</h6>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<h6>md</h6>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<h6>lg</h6>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<h6>xl</h6>
|
||||
</ion-col>
|
||||
<ion-col size="1"></ion-col>
|
||||
</ion-row>
|
||||
<ion-row>
|
||||
<ion-col size="1"></ion-col>
|
||||
<ion-col class="center">
|
||||
<ion-avatar shape="round" size="xsmall">AB</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<ion-avatar shape="round" size="small">AB</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<ion-avatar shape="round">AB</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<ion-avatar shape="round" size="large">AB</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<ion-avatar shape="round" size="xlarge">AB</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col size="1"></ion-col>
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
|
||||
<ion-col></ion-col>
|
||||
<ion-col size="10">
|
||||
<h2 class="title">Shape</h2>
|
||||
<ion-text class="subtitle">Default avatars come in 3 shapes: Rounded, Soft and Rectangular. <br>
|
||||
The default Shape is Round. </ion-text>
|
||||
</ion-col>
|
||||
<ion-col></ion-col>
|
||||
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
<ion-col size="1"></ion-col>
|
||||
<ion-col class="center">
|
||||
<h6>Round</h6>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<h6>Soft</h6>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<h6>Rectangular</h6>
|
||||
</ion-col>
|
||||
<ion-col size="1"></ion-col>
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
<ion-col size="1"></ion-col>
|
||||
<ion-col class="center">
|
||||
<ion-avatar shape="round" >AB</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<ion-avatar shape="soft" >AB</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col class="center">
|
||||
<ion-avatar shape="rectangular">AB</ion-avatar>
|
||||
</ion-col>
|
||||
<ion-col size="1"></ion-col>
|
||||
</ion-row>
|
||||
|
||||
</ion-grid>
|
||||
|
||||
|
||||
</ion-content>
|
||||
<ion-footer>
|
||||
<ion-toolbar>
|
||||
</ion-toolbar>
|
||||
</ion-footer>
|
||||
|
||||
</ion-app>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
<style>
|
||||
|
||||
ion-header ion-toolbar{
|
||||
--background:#105CEF;
|
||||
color: white;
|
||||
--padding-top:30px;
|
||||
--padding-bottom:30px;
|
||||
}
|
||||
|
||||
ion-toolbar h1{
|
||||
margin-top:0px;
|
||||
font-size:55px;
|
||||
}
|
||||
|
||||
ion-card.preview{
|
||||
margin-top: 50px;
|
||||
--background:#F2F2F2;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 200px;
|
||||
border:0px;
|
||||
}
|
||||
|
||||
.center{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
h2.title{
|
||||
margin-top: 50px;
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
color: #2D4665;
|
||||
}
|
||||
|
||||
ion-text,ion-avatar{
|
||||
font-family: "Inter";
|
||||
}
|
||||
|
||||
.subtitle{
|
||||
margin-top: 10px;
|
||||
float: left;
|
||||
width: 100%;
|
||||
margin-bottom: 15px;
|
||||
line-height: 150%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user