-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (99 loc) · 2.88 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width" />
<meta name="description" content="A little landingpage showcasing demos of data driven apps with dynamic sidebars." />
<meta name="author" content="Daniel Eckelt" />
<title>Design Patterns Landingpage</title>
</head>
<body>
<h1>Welcome to the Design Patterns Repository 👋</h1>
<p>Here you can find a collection of design patterns implemented in HTML, CSS, and JavaScript. Each pattern is a
self-contained example that you can run in your browser.</p>
<section class="main">
<div class="links">
<a href="reserved/index.html">Reserved Area Example</a>
<a href="overlapping/index.html">Overlapping Sidebar Example</a>
<a href="condensing/index.html">Condensing Sidebar Example</a>
</div>
<img src="assets/landingpage_hero.png" alt="Design Patterns Hero Image" width="528px" height="300px" />
</section>
<style>
body {
background-color: #e5e5f7;
opacity: 0.8;
background-size: 10px 10px;
background-image: repeating-linear-gradient(45deg, #444df722 0, #444df720 1px, #e5e5f720 0, #e5e5f721 50%);
}
* {
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
h1 {
font-weight: 200;
text-align: center;
}
p {
text-align: center;
}
.main {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: center;
gap: 3rem;
margin: 2rem auto;
width: 100%;
}
img {
display: inline-block;
height: auto;
width: 100%;
border-radius: 1rem;
}
@media (min-width: 768px) {
img {
height: auto;
width: 45%;
}
}
.links {
display: flex;
flex-flow: column nowrap;
align-items: flex-start;
justify-content: center;
gap: 1.75rem;
font-size: 1.5rem;
}
a {
--b: 2px;
/* border thickness */
--s: .2em;
/* size of the corner */
--c: #697fe1;
text-decoration: none;
padding: calc(.15em + var(--s)) calc(.3em + var(--s));
color: var(--c);
--_p: var(--s);
background:
conic-gradient(from 90deg at var(--b) var(--b), #0000 90deg, var(--c) 0) var(--_p) var(--_p)/calc(100% - var(--b) - 2*var(--_p)) calc(100% - var(--b) - 2*var(--_p));
transition: .3s linear, color 0s, background-color 0s;
outline: var(--b) solid #0000;
outline-offset: .2em;
}
a:hover,
a:focus-visible {
--_p: 0px;
outline-color: var(--c);
outline-offset: .05em;
}
a:active {
background: var(--c);
color: #fff;
}
</style>
</body>
</html>