]> git.lizzy.rs Git - antifa-generator.git/commitdiff
Corrige design do texto no logo
authorVitor Duarte <vitor.alves.duarte@gmail.com>
Tue, 2 Jun 2020 22:39:05 +0000 (19:39 -0300)
committerVitor Duarte <vitor.alves.duarte@gmail.com>
Tue, 2 Jun 2020 22:39:05 +0000 (19:39 -0300)
index.html
styles.css

index e90c046a301078483c165891ad528486c62ee1e7..080b27e543db78fb2b5a17d4191ce0bd94f951e2 100644 (file)
@@ -5,20 +5,27 @@
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <script src="dist/circletype.min.js"></script>
+    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet">
     <link rel="stylesheet" href="styles.css">
     <title>Antifa Generator</title>
 </head>
 
 <body>
     <section class="logo">
-        <h2 class="logo-text" id="antifa-group"> Grupo </h2>
-        <h2 class="logo-text" id="antifa"> Antifacistas </h2>
+        <div id="top-text">
+            <h2 class="logo-text" id="antifa-group"> Desenvolvedores </h2>
+        </div>
+        <div id="bottom-text">
+            <h2 class="logo-text" id="antifa"> Antifacistas </h2>
+        </div>
 
     </section>
     <script>
         const antifaGroup = document.getElementById('antifa-group')
         const antifa = document.getElementById('antifa')
-        const radius = 500;
+        const logo = document.getElementsByClassName('logo')[0]
+        const radius = logo.offsetHeight / 2;
+        console.log('radius :>> ', radius);
 
         new CircleType(antifaGroup)
             .radius(radius);
index 7278c09a56714c8aaa574af94ba9a9ef085eda84..eab469c6287e98edbbf0c85a925ffc85b4ddcbd5 100644 (file)
   display: flex;
   margin: 0;
   color: white;
-  font-size: 50px;
+  font-size: 80px;
   padding: 1%;
+  font-family: 'Roboto', sans-serif;
+  text-transform: capitalize;
 }
 
-#antifa-group {
+#top-text {
   padding-left: 50%;
 }
 
-#antifa {
+#bottom-text {
+  /* padding-top: 80%; */
   align-self: flex-end;
 }