@uqds/hero 0.0.5-alpha.0 → 0.0.8-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/dist/css/main.css +1 -0
- package/package.json +9 -5
- package/src/scss/_component.scss +140 -140
- package/src/scss/_global.scss +2 -2
- package/src/scss/main.scss +1 -0
package/README.md
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# `@uqds/hero`
|
|
2
|
-
|
|
3
|
-
> Hero component
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
### Installation
|
|
8
|
-
|
|
9
|
-
With Yarn:
|
|
10
|
-
```shell
|
|
11
|
-
yarn add @uqds/hero
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
With NPM:
|
|
15
|
-
```shell
|
|
16
|
-
npm i @uqds/hero
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Dependency graph
|
|
22
|
-
|
|
23
|
-
```shell
|
|
24
|
-
@uqds/hero
|
|
25
|
-
└─ @uqds/core
|
|
26
|
-
```
|
|
1
|
+
# `@uqds/hero`
|
|
2
|
+
|
|
3
|
+
> Hero component
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
### Installation
|
|
8
|
+
|
|
9
|
+
With Yarn:
|
|
10
|
+
```shell
|
|
11
|
+
yarn add @uqds/hero
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
With NPM:
|
|
15
|
+
```shell
|
|
16
|
+
npm i @uqds/hero
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Dependency graph
|
|
22
|
+
|
|
23
|
+
```shell
|
|
24
|
+
@uqds/hero
|
|
25
|
+
└─ @uqds/core
|
|
26
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.uq-hero{position:relative;background-color:#51247a}.uq-hero__content{margin-left:1rem;margin-right:1rem;padding-left:.5rem;padding-right:.5rem;color:#fff;padding-top:3rem;padding-bottom:3rem;position:relative;z-index:2}@media(min-width: 32.5rem){.uq-hero__content{margin-left:auto;margin-right:auto;max-width:30.5rem}}@media(min-width: 37.5rem){.uq-hero__content{margin-left:3.25rem;margin-right:3.25rem;max-width:none}}@media(min-width: 64.25rem){.uq-hero__content{margin-left:auto;margin-right:auto;max-width:57.75rem}}@media(min-width: 75rem){.uq-hero__content{margin-left:8.375rem;margin-right:8.375rem;max-width:none}}@media(min-width: 90rem){.uq-hero__content{margin-left:auto;margin-right:auto;max-width:73.25rem}}@media(min-width: 37.5rem){.uq-hero__content{padding-left:.75rem;padding-right:.75rem}}@media(min-width: 75rem){.uq-hero__content{padding-left:1rem;padding-right:1rem}}@media(min-width: 37.5rem){.uq-hero__content{padding-top:6.5rem;padding-bottom:6.5rem}}.uq-hero__text .uq-hero__title{color:inherit;font-family:"Montserrat",Helvetica,Arial,sans-serif;font-size:2.5rem;margin-top:0;margin-bottom:.5rem}@media(min-width: 37.5rem){.uq-hero__text .uq-hero__title{font-size:3rem}}.uq-hero__text *:last-child{margin-bottom:0}.uq-hero__subtext{margin-bottom:1.5rem}.uq-hero__image{position:absolute;top:0;left:0;right:0;bottom:0;z-index:0}.uq-hero__image picture,.uq-hero__image img{position:absolute;height:100%;width:100%;top:0;left:0;object-fit:cover}.uq-hero__image::before{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(100deg, rgb(81, 36, 122) 36%, transparent 70%);mix-blend-mode:normal;opacity:1;z-index:1}@media(min-width: 37.5rem){.uq-hero__image--small{display:none}}.uq-hero__image--small img{position:relative;height:auto}.uq-hero__image--large{display:none}@media(min-width: 37.5rem){.uq-hero__image--large{display:block}}@media(max-width: 37.4375rem){.uq-hero__image{position:relative;min-height:6rem}.uq-hero__image::before{background:linear-gradient(360deg, rgb(81, 36, 122) 3%, transparent 50%)}}.uq-hero--feature-image .uq-hero__content{padding-top:0}@media(min-width: 37.5rem){.uq-hero--feature-image .uq-hero__content{padding-top:6.5rem}}@media(min-width: 37.5rem){.uq-hero--feature-image .hero__text{width:50%}}@media(min-width: 37.5rem){.uq-hero--large .uq-hero__content{padding-top:10rem;padding-bottom:10rem}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uqds/hero",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8-alpha.0",
|
|
4
4
|
"description": "Hero component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"uqds",
|
|
@@ -26,8 +26,12 @@
|
|
|
26
26
|
"lib": "src"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
|
-
"src/*"
|
|
29
|
+
"src/*",
|
|
30
|
+
"dist/*"
|
|
30
31
|
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"prepare": "gulp -f ../../gulpfile.js --cwd=. prepare"
|
|
34
|
+
},
|
|
31
35
|
"repository": {
|
|
32
36
|
"type": "git",
|
|
33
37
|
"url": "git+https://github.com/uq-its-ss/design-system.git"
|
|
@@ -36,8 +40,8 @@
|
|
|
36
40
|
"url": "https://github.com/uq-its-ss/design-system/issues"
|
|
37
41
|
},
|
|
38
42
|
"dependencies": {
|
|
39
|
-
"@uqds/core": "^0.0.
|
|
40
|
-
"@uqds/grid": "^0.0.
|
|
43
|
+
"@uqds/core": "^0.0.8-alpha.0",
|
|
44
|
+
"@uqds/grid": "^0.0.8-alpha.0"
|
|
41
45
|
},
|
|
42
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "ec1e27ff2c58ae9bdcd0eef7516ad5d57a00bafb"
|
|
43
47
|
}
|
package/src/scss/_component.scss
CHANGED
|
@@ -1,141 +1,141 @@
|
|
|
1
|
-
@use '@uqds/core/src/scss/global' as core;
|
|
2
|
-
@use '@uqds/grid/src/scss/global' as grid;
|
|
3
|
-
|
|
4
|
-
// Hero
|
|
5
|
-
|
|
6
|
-
.uq-hero {
|
|
7
|
-
position: relative;
|
|
8
|
-
background-color: #51247A;
|
|
9
|
-
|
|
10
|
-
&__content {
|
|
11
|
-
@include grid.layout-containment;
|
|
12
|
-
@include grid.grid-col-padding;
|
|
13
|
-
color: white;
|
|
14
|
-
padding-top: 3rem;
|
|
15
|
-
padding-bottom: 3rem;
|
|
16
|
-
position: relative;
|
|
17
|
-
z-index: 2;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
@media #{core.$screen-md-up} {
|
|
21
|
-
padding-top: 6.5rem;
|
|
22
|
-
padding-bottom: 6.5rem;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&__text {
|
|
27
|
-
|
|
28
|
-
& .uq-hero__title {
|
|
29
|
-
|
|
30
|
-
color: inherit;
|
|
31
|
-
font-family: core.$montserrat;
|
|
32
|
-
font-size: 2.5rem;
|
|
33
|
-
margin-top: 0;
|
|
34
|
-
margin-bottom: core.$space-s;
|
|
35
|
-
|
|
36
|
-
@media #{core.$screen-md-up} {
|
|
37
|
-
font-size: 3rem;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
& *:last-child {
|
|
42
|
-
margin-bottom: 0;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&__subtext {
|
|
47
|
-
margin-bottom: core.$space-m;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&__image {
|
|
51
|
-
position: absolute;
|
|
52
|
-
top: 0;
|
|
53
|
-
left: 0;
|
|
54
|
-
right: 0;
|
|
55
|
-
bottom: 0;
|
|
56
|
-
z-index: 0;
|
|
57
|
-
|
|
58
|
-
& picture,
|
|
59
|
-
& img {
|
|
60
|
-
position: absolute;
|
|
61
|
-
height: 100%;
|
|
62
|
-
width: 100%;
|
|
63
|
-
top: 0;
|
|
64
|
-
left: 0;
|
|
65
|
-
object-fit: cover;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&::before {
|
|
69
|
-
content: "";
|
|
70
|
-
display: block;
|
|
71
|
-
position: absolute;
|
|
72
|
-
top: 0;
|
|
73
|
-
left: 0;
|
|
74
|
-
width: 100%;
|
|
75
|
-
height: 100%;
|
|
76
|
-
background: linear-gradient(100deg, rgb(81, 36, 122) 36%, transparent 70%);
|
|
77
|
-
mix-blend-mode: normal;
|
|
78
|
-
opacity: 1;
|
|
79
|
-
z-index: 1;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&--small {
|
|
83
|
-
@media #{core.$screen-md-up} {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
& img {
|
|
88
|
-
position: relative;
|
|
89
|
-
height: auto;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&--large {
|
|
94
|
-
display: none;
|
|
95
|
-
|
|
96
|
-
@media #{core.$screen-md-up} {
|
|
97
|
-
display: block;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@media #{core.$screen-md-down} {
|
|
102
|
-
position: relative;
|
|
103
|
-
min-height: 6rem;
|
|
104
|
-
|
|
105
|
-
&::before {
|
|
106
|
-
background: linear-gradient(360deg, rgb(81, 36, 122) 3%, transparent 50%);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&--feature-image {
|
|
112
|
-
|
|
113
|
-
& .uq-hero__content {
|
|
114
|
-
|
|
115
|
-
padding-top: 0;
|
|
116
|
-
|
|
117
|
-
@media #{core.$screen-md-up} {
|
|
118
|
-
padding-top: 6.5rem;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
& .hero__text {
|
|
123
|
-
@media #{core.$screen-md-up} {
|
|
124
|
-
width: 50%;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&--large {
|
|
131
|
-
|
|
132
|
-
& .uq-hero__content {
|
|
133
|
-
@media #{core.$screen-md-up} {
|
|
134
|
-
padding-top: core.$space-uuuul;
|
|
135
|
-
padding-bottom: core.$space-uuuul;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
1
|
+
@use '@uqds/core/src/scss/global' as core;
|
|
2
|
+
@use '@uqds/grid/src/scss/global' as grid;
|
|
3
|
+
|
|
4
|
+
// Hero
|
|
5
|
+
|
|
6
|
+
.uq-hero {
|
|
7
|
+
position: relative;
|
|
8
|
+
background-color: #51247A;
|
|
9
|
+
|
|
10
|
+
&__content {
|
|
11
|
+
@include grid.layout-containment;
|
|
12
|
+
@include grid.grid-col-padding;
|
|
13
|
+
color: white;
|
|
14
|
+
padding-top: 3rem;
|
|
15
|
+
padding-bottom: 3rem;
|
|
16
|
+
position: relative;
|
|
17
|
+
z-index: 2;
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
@media #{core.$screen-md-up} {
|
|
21
|
+
padding-top: 6.5rem;
|
|
22
|
+
padding-bottom: 6.5rem;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__text {
|
|
27
|
+
|
|
28
|
+
& .uq-hero__title {
|
|
29
|
+
|
|
30
|
+
color: inherit;
|
|
31
|
+
font-family: core.$montserrat;
|
|
32
|
+
font-size: 2.5rem;
|
|
33
|
+
margin-top: 0;
|
|
34
|
+
margin-bottom: core.$space-s;
|
|
35
|
+
|
|
36
|
+
@media #{core.$screen-md-up} {
|
|
37
|
+
font-size: 3rem;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
& *:last-child {
|
|
42
|
+
margin-bottom: 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__subtext {
|
|
47
|
+
margin-bottom: core.$space-m;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__image {
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 0;
|
|
53
|
+
left: 0;
|
|
54
|
+
right: 0;
|
|
55
|
+
bottom: 0;
|
|
56
|
+
z-index: 0;
|
|
57
|
+
|
|
58
|
+
& picture,
|
|
59
|
+
& img {
|
|
60
|
+
position: absolute;
|
|
61
|
+
height: 100%;
|
|
62
|
+
width: 100%;
|
|
63
|
+
top: 0;
|
|
64
|
+
left: 0;
|
|
65
|
+
object-fit: cover;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&::before {
|
|
69
|
+
content: "";
|
|
70
|
+
display: block;
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
background: linear-gradient(100deg, rgb(81, 36, 122) 36%, transparent 70%);
|
|
77
|
+
mix-blend-mode: normal;
|
|
78
|
+
opacity: 1;
|
|
79
|
+
z-index: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&--small {
|
|
83
|
+
@media #{core.$screen-md-up} {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
& img {
|
|
88
|
+
position: relative;
|
|
89
|
+
height: auto;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&--large {
|
|
94
|
+
display: none;
|
|
95
|
+
|
|
96
|
+
@media #{core.$screen-md-up} {
|
|
97
|
+
display: block;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media #{core.$screen-md-down} {
|
|
102
|
+
position: relative;
|
|
103
|
+
min-height: 6rem;
|
|
104
|
+
|
|
105
|
+
&::before {
|
|
106
|
+
background: linear-gradient(360deg, rgb(81, 36, 122) 3%, transparent 50%);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&--feature-image {
|
|
112
|
+
|
|
113
|
+
& .uq-hero__content {
|
|
114
|
+
|
|
115
|
+
padding-top: 0;
|
|
116
|
+
|
|
117
|
+
@media #{core.$screen-md-up} {
|
|
118
|
+
padding-top: 6.5rem;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
& .hero__text {
|
|
123
|
+
@media #{core.$screen-md-up} {
|
|
124
|
+
width: 50%;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&--large {
|
|
131
|
+
|
|
132
|
+
& .uq-hero__content {
|
|
133
|
+
@media #{core.$screen-md-up} {
|
|
134
|
+
padding-top: core.$space-uuuul;
|
|
135
|
+
padding-bottom: core.$space-uuuul;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
141
141
|
}
|
package/src/scss/_global.scss
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@use '@uqds/core/src/scss/global' as core;
|
|
2
|
-
|
|
1
|
+
@use '@uqds/core/src/scss/global' as core;
|
|
2
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use 'component';
|