Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. import styled from "styled-components";
  2.  
  3.  
  4. export const Wrapper = styled.div`
  5. display: flex;
  6. align-items: center;
  7. justify-content: center;
  8. flex-direction: row;
  9. flex-wrap: wrap;
  10.  
  11.  
  12. `;
  13.  
  14. export const Hero = styled.div`
  15. width: 400px;
  16. height: 400px;
  17. margin-top: 10px;
  18. margin-left: 80px;
  19. background-size: cover;
  20. background-image: url("${props => props.img}");
  21.  
  22. `;
  23.  
  24. export const HeaderName = styled.h1`
  25. font-size: 50px;
  26. text-align: center;
  27.  
  28. `
  29. export const Data = styled.div`
  30. display: flex;
  31. width: 100%;
  32. align-items: center;
  33. justify-content: center;
  34. flex-wrap: wrap;
  35. &:nth-child(n+2){
  36. width: 20%;
  37. }
  38. `;
  39.  
  40. export const Category = styled.div`
  41. height: 30px;
  42. margin-top: 50px;
  43. opacity: 0.7;
  44. padding: 20px;
  45. flex: 1 0 ${props => props.type === "small" ? 35 : 100}%;
  46. position: relative;
  47. background-color: #000;
  48. border-radius: 0px 15px 15px 15px;
  49. margin-left: ${props => props.margin === "true" ? 10 : 0}px;
  50. color: white;
  51. &::after{
  52. content: "sdfsdfsdffsdfdsf";
  53. background-color: #00b179;
  54. padding: 10px 25px;
  55. border-radius: 15px 15px 0px 0px;
  56. position: absolute;
  57. top: -50%;
  58. color: white;
  59. left: 0;
  60. margin-bottom: 120px;
  61. }
  62.  
  63. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement