generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from codeKraken19/codeKraken-artifact
[UI] Add Shared Components
- Loading branch information
Showing
4 changed files
with
191 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
import styled from "styled-components"; | ||
|
||
const DiscussWrapper = styled.div` | ||
background-color:none; | ||
margin: 1.5rem 0.625rem 1rem; | ||
overflow: hidden; | ||
h2{ | ||
font-weight: 500; | ||
} | ||
h2 span{ | ||
color:#fff; | ||
} | ||
.logo{ | ||
width: 200px; | ||
} | ||
.explain { | ||
padding-top: 0rem; | ||
text-align: center; | ||
p { | ||
text-align: center; | ||
color: #fff; | ||
padding: 0px 3.125rem; | ||
} | ||
h2 { | ||
color: #fff; | ||
} | ||
h1 { | ||
padding: 1.25rem 0px; | ||
} | ||
.cards { | ||
margin: 0.15rem auto 0 ; | ||
max-width: 50rem; | ||
padding: 1.5rem 2rem 0rem 2rem; | ||
background-color: none; | ||
border-radius: 25px; | ||
.card { | ||
-webkit-transition: 450ms all; | ||
transition: 450ms all; | ||
margin: auto; | ||
background-color: #1E2117; | ||
border-radius: 25px; | ||
overflow: hidden; | ||
.parentcard { | ||
padding: 1.25rem; | ||
} | ||
p { | ||
text-align: center; | ||
padding: 0px 0px 1px 0px; | ||
letter-spacing: 0; | ||
font-size: 1.25rem; | ||
} | ||
h2 { | ||
text-align: center; | ||
font-size: 28px; | ||
text-transform:uppercase; | ||
clear: both; | ||
margin-bottom: 0rem; | ||
margin-top: 1rem; | ||
} | ||
&:hover, | ||
&:focus { | ||
outline: none; | ||
} | ||
&:hover{ | ||
transform: translateY(0.03rem); | ||
box-shadow: 0 2px 10px #00d3a9; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
button{ | ||
color: #1E2117; | ||
padding: 0.2em 1em; | ||
border: 2px solid; | ||
background: none; | ||
transition: color 0.25s,border-color 0.25s,transform 0.25s,box-shadow 0.25s; | ||
cursor: pointer; | ||
} | ||
@media only screen and (min-width: 990px){ | ||
@media only screen and (min-width: 1211px){ | ||
.explain { | ||
.cards { | ||
padding: 0 0.5rem 1rem 0.5rem; | ||
.card { | ||
width: 23.25rem; | ||
} | ||
} | ||
} | ||
} | ||
@media only screen and (max-width: 1210px){ | ||
.explain { | ||
.cards { | ||
padding: 0 0.5rem 1rem 0.5rem; | ||
h2 { | ||
font-size: 25px; | ||
line-height: 35px; | ||
} | ||
p { | ||
font-size: 1.1rem; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
@media only screen and (max-width: 1100px){ | ||
.explain { | ||
.cards { | ||
padding: 0 0.5rem 1rem 0.5rem; | ||
.card { | ||
h2 { | ||
font-size: 22px; | ||
line-height: 32px; | ||
} | ||
p { | ||
font-size: 1rem; | ||
line-height: 23px; | ||
} | ||
} | ||
} | ||
button { | ||
padding: 0; | ||
} | ||
} | ||
} | ||
} | ||
@media only screen and (max-width: 450px){ | ||
.explain { | ||
.cards { | ||
padding: 1rem 1rem 1rem 1rem; | ||
.card { | ||
.parentcard { | ||
padding: 0.5rem; | ||
} | ||
h2 { | ||
font-size: 25px; | ||
} | ||
p{ | ||
font-size: 1.1rem; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
@media only screen and (max-width: 375px){ | ||
.explain { | ||
.cards { | ||
padding: 1rem .5rem 1rem .5rem; | ||
h2 { | ||
font-size: 22px; | ||
} | ||
p{ | ||
font-size: 1rem; | ||
} | ||
} | ||
} | ||
} | ||
`; | ||
|
||
export default DiscussWrapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from "react"; | ||
import DiscussWrapper from "./discuss.style"; | ||
|
||
import Discuss from "../../assets/images/meshery-learn-logo-white.png"; | ||
|
||
const DiscussCallout = () => { | ||
return ( | ||
<DiscussWrapper> | ||
<div className="explain"> | ||
<div className="cards"> | ||
<div className="card"> | ||
<a href="http://discuss.meshery.io/"> | ||
<div className="parentcard"> | ||
<div className="section-title"> | ||
<h2>Join the Conversation</h2> | ||
<p>Ask questions, find answers and share knowledge on our Discussion Forum</p> | ||
<button><img className="logo" alt="Discussion Forum" src={Discuss} /></button> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</DiscussWrapper> | ||
); | ||
}; | ||
|
||
export default DiscussCallout; |